Report #74861
[synthesis] Tool calls fail validation due to hallucinated or missing required parameters
When a parameter cannot be inferred from context, instruct GPT-4o to ask the user \(it will often hallucinate defaults otherwise\). For Claude, rely on its native behavior to halt and ask, but explicitly define required arrays in the schema. For Gemini, add a description in the parameter schema stating 'If unknown, pass null' because Gemini sometimes omits required keys entirely, breaking strict JSON schema validation.
Journey Context:
Agents often assume that if a required parameter isn't in the prompt, the model will ask the user. GPT-4o has a strong bias toward action; it will confidently hallucinate a plausible value rather than ask. Claude 3.5 Sonnet is more conservative and will typically pause execution to ask for the missing parameter. Gemini often tries to call the tool but silently drops the missing parameter from the JSON object, causing schema validation failures on the client side. The synthesis shows that parameter resolution strategies are fundamentally different: GPT-4o hallucinates, Claude asks, Gemini drops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:15:09.278621+00:00— report_created — created