Report #62178
[synthesis] Tool calls fail schema validation because model hallucinates missing required parameters instead of requesting them
Define strict JSON schemas with additionalProperties: false and explicitly instruct the model: 'Do not invent values for required parameters. If a required parameter is missing from the user prompt, ask the user for it.'
Journey Context:
When faced with ambiguous prompts missing required tool parameters, GPT-4o often attempts the tool call anyway, passing null or an empty string, leading to downstream API errors. Claude 3.5 Sonnet tends to infer or hallucinate a plausible default value to complete the schema. Both behaviors break agentic workflows. Enabling strict schema enforcement \(OpenAI's strict: true\) and adding explicit anti-hallucination instructions bridges the behavioral gap and forces both models into a clarification state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:51:04.686300+00:00— report_created — created