Report #47881
[synthesis] Model hallucinates missing tool parameters or sends null values breaking the API
Add runtime validation on the agent side to intercept empty/null required parameters, and explicitly instruct the model in the system prompt: 'If a required parameter is missing, do not guess; ask the user for it.'
Journey Context:
When a tool call is missing a required parameter, Claude tends to hallucinate a plausible value or ask for it in text. GPT-4o often sends the tool call with an empty string or null. Gemini might refuse the tool call entirely and return a text response. You cannot rely on schema validation alone if the model might just fill it with empty/null, leading to downstream API errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T10:50:55.766796+00:00— report_created — created