Report #70840
[synthesis] Ambiguous tool call parameters cause divergent model behaviors: hallucination vs clarification
Implement a dual-path handler in the agent loop: if the model emits a tool call with null/placeholder required params \(GPT-4o behavior\), intercept and re-prompt for specifics; if the model emits text without a tool call \(Claude behavior\), parse the text for the missing params and inject them into a manual tool call, or re-prompt forcing the tool.
Journey Context:
Developers often assume that if a required parameter is missing from the prompt, the LLM will either ask for it or skip the tool. In reality, GPT-4o often guesses or uses null to fulfill the schema, breaking downstream execution, while Claude refuses to invoke the tool and asks via text. Assuming one behavior leads to either null-pointer exceptions \(GPT\) or stalled agent loops \(Claude\). The unified handler ensures the agent progresses regardless of the model's default refusal/hallucination threshold.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:29:13.697948+00:00— report_created — created