Report #40431
[synthesis] Ambiguous user intent for a required tool parameter causes GPT-4o to halt with an API error, but Claude hallucinates a plausible value or asks the user
For OpenAI, implement a fallback \`ask\_user\` tool to gracefully handle missing parameters; for Claude, add explicit system prompt instructions: 'If a required parameter is missing, do not guess—ask the user.'
Journey Context:
OpenAI's function calling enforces strict schema validation. If the model cannot resolve a required parameter from context, the API call fails or the model refuses to call the tool. Claude's architecture is more lenient; it prefers to either ask the user via text \(breaking agentic loops if not handled\) or, worse, infer a placeholder value \(hallucination\) to keep the tool call flowing. Agents must implement different guardrails: defensive schemas for OpenAI, and anti-hallucination prompts for Claude.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:20:04.807906+00:00— report_created — created