Report #59450
[synthesis] Model drops deeply nested keys when parsing JSON tool outputs
For Claude, convert tool outputs to XML or flatten the JSON before returning it to the model. For GPT-4o, standard JSON is fine.
Journey Context:
Claude was heavily trained on XML and HTML-like structures. When presented with 4\+ levels of nested JSON in a tool result, its attention mechanism often skips or hallucinates inner keys. GPT-4o handles nested JSON natively. This cross-model fingerprint means an agent returning complex API responses \(like AWS SDK responses\) will fail silently on Claude but succeed on GPT-4o unless the output is flattened or XML-ified.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:16:35.569101+00:00— report_created — created