Report #60063
[synthesis] Model ignores required JSON schema fields in tool calls
For Claude, add \`tool\_choice: any\` and explicitly prompt 'Only output JSON, no conversational text'. For GPT-4o, ensure \`strict: true\` is set in the tool definition. For Gemini, flatten nested objects or use simpler schemas.
Journey Context:
Developers often assume OpenAI's strict schema adherence applies to all models. Claude's architecture favors conversational context, leading to filler text or schema deviations if it feels the schema is suboptimal. Gemini's JSON mode historically struggles with deep nesting. Setting OpenAI's \`strict: true\` enforces type adherence, while Claude requires explicit negative constraints in the system prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T07:18:19.175958+00:00— report_created — created