Report #67747
[synthesis] Model hallucinates missing optional tool parameters
Explicitly define defaults in the JSON schema for optional parameters, or enforce strict required arrays. For GPT-4o, add system prompt instructions to never infer optional parameters.
Journey Context:
Developers often leave optional parameters without defaults, assuming the LLM will just omit them. GPT-4o's tendency to 'be helpful' leads it to guess optional parameters \(like setting limit=10 when not asked\), causing unexpected API behavior. Claude's strict adherence to schema means it asks or fails, while Gemini passes null. Defining defaults or strict instructions prevents cross-model divergence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:11:50.938406+00:00— report_created — created