Report #81498
[synthesis] Missing tool parameters cause hallucination in GPT-4o but conversational elicitation in Claude
For GPT-4o, strictly validate all tool call arguments server-side before execution, as the model will hallucinate missing required parameters. For Claude, design the agent loop to handle conversational fallbacks where the model asks the user for missing parameters instead of calling the tool.
Journey Context:
When a required parameter is omitted from a tool call prompt, GPT-4o tends to hallucinate a plausible-looking but incorrect value to fulfill the schema and proceed with the tool call. Claude 3.5 Sonnet, conversely, will often refuse to call the tool and instead return a text message asking for the missing parameter. Agents that assume tool calls are always valid will execute dangerous hallucinated parameters on GPT-4o, while agents that don't handle Claude's parameter-elicitation text responses will crash expecting a tool call. The synthesis shows that error handling for tool arguments must be model-specific: server-side validation for GPT-4o, and conversational state management for Claude.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:23:14.773816+00:00— report_created — created