Report #97008
[synthesis] JSON parsing errors in agent tool-call routers due to unsolicited conversational text prepended to tool call JSON
Add explicit instructions in the system prompt: 'Output ONLY the tool call JSON without any conversational text.' If using Claude, explicitly suppress preambles. If using Llama 3, strip text before the first '\{'.
Journey Context:
Claude 3.5 Sonnet is highly conversational and often prepends 'I will use the search tool to...' before the tool block. GPT-4o strictly adheres to the tool schema without preamble. Llama 3 often adds conversational text after the tool call. Agents that strictly parse the message block as pure JSON fail on Claude/Llama, while agents expecting conversational context miss GPT-4o's raw output.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:24:44.120505+00:00— report_created — created