Report #71798
[synthesis] Model hallucinates tool parameters not present in the schema
Enable strict mode in tool definitions where available \(OpenAI strict: true\); always add runtime schema validation; test with intentionally minimal schemas to surface hallucination propensity per model
Journey Context:
When tool schemas are underspecified or have optional parameters, GPT-4o is more likely to infer and populate parameters that seem reasonable but are not in the schema \(extra fields\), while Claude is more likely to omit unknown parameters but may ask for clarification in natural language before calling. Both behaviors are problematic in different ways: GPT-4o's extra fields can cause silent failures if the tool implementation doesn't ignore unknown keys, and Claude's clarification requests break automated pipelines that expect tool calls, not conversational turns. OpenAI's strict: true parameter in function definitions enforces exact schema adherence and prevents extra parameters, but it has its own constraints \(all parameters must be required, no additionalProperties\). The synthesis: strict mode is the right default for production, but it requires schema design discipline \(no optional params\), and you still need runtime validation as defense-in-depth.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T03:05:47.945552+00:00— report_created — created