Canvas AI: Claude 3.7 Sonnet fails to execute parallel tool calls for title/metadata generation in Canvas AI orchestrator
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3557567. --> Reported by: [narendrar](https://www.drupal.org/user/1730192) Related to !328 !335 >>> <h3 id="overview">Overview</h3> <p>When using Claude 3.7 Sonnet (anthropic.claude-3-7-sonnet model) in Drupal Canvas AI, the agent fails to consistently execute parallel tool calls for title and metadata generation when using <code>canvas_page_builder_agent</code> or <code>canvas_template_builder_agent</code>.<br> The orchestrator is designed to proactively generate page titles and metadata when:</p> <ul> <li>Page title is empty or "Untitled page"</li> <li>Page description is empty</li> </ul> <p>This functionality works correctly with Claude Sonnet 4 (anthropic.claude-sonnet-4) or later models but fails with Claude 3.7 Sonnet. Claude 3.7 Sonnet is deprecated now, See <a href="https://docs.claude.com/en/docs/about-claude/model-deprecations#model-status">https://docs.claude.com/en/docs/about-claude/model-deprecations#model-status</a></p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>This appears to be a model-specific instruction-following issue where Claude 3.7 Sonnet does not reliably execute parallel tool calls even when the instructions explicitly require it.<br> To support Claude 3.7 Sonnet, we might need to tweak agent instructions, so that it works consistently with tools execution. </p> <h3 id="ui-changes">User interface changes</h3>
issue