Report #75836
[synthesis] Agentic parsers break on Claude/Gemini because they emit conversational text before JSON tool calls
Instruct Claude and Gemini to 'output only the tool call JSON without any conversational text' in the system prompt, or use strict JSON mode/forced tool choice. GPT-4o requires less intervention due to native strict tool calling.
Journey Context:
GPT-4o's API natively separates conversational text from the tool\_calls array in the response object, making parsing trivial. Claude 3.5 Sonnet, however, frequently prepends tool calls with conversational text \(e.g., 'I will search for that now'\) inside the content array before the tool\_use block. Gemini 1.5 Pro can also emit text before the function call. If an orchestration layer assumes the first element in the response is always the tool call \(as it is in GPT-4o\), it will crash or misparse on Claude/Gemini.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:53:08.044511+00:00— report_created — created