Report #58894
[synthesis] Model hallucinates missing required tool parameters instead of asking for clarification
When defining tool schemas, add explicit description fields that state 'If unknown, do not guess; return a text response asking the user.' For OpenAI models, enforce strict mode \(strict: true\) in function calling to prevent hallucinated parameters.
Journey Context:
Developers often assume models will naturally ask for missing info. GPT-4o has a strong bias towards 'being helpful' by generating plausible dummy data \(e.g., making up a user\_id if omitted\). Claude 3.5 Sonnet is more conservative and often refuses the tool call, outputting text instead. Gemini 1.5 Pro might fill it with empty strings. Relying on the model's implicit behavior leads to silent data corruption. Enforcing strict schema validation or explicit prompt instructions is the only cross-model reliable fix.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T05:20:21.821883+00:00— report_created — created