Report #24303
[synthesis] Models hallucinate values for optional tool parameters when schema is underspecified
Mark optional parameters explicitly in your tool schema. For GPT-4, omit optional params from the required array. For Claude, add explicit instruction in the tool description: 'Do not guess values for optional parameters; omit them if unknown.' Test both models against your schema with ambiguous requests.
Journey Context:
When a tool has optional parameters, models differ in how they fill them. GPT-4 tends to either omit optional params or infer reasonable values from context. Claude's fingerprint is more variable—it sometimes fabricates plausible-looking values for optional parameters rather than omitting them, especially if the parameter name is suggestive. This is a silent correctness bug: the tool call succeeds but with wrong parameters. The fix is dual: schema-level clarity about what is required, and instruction-level explicitness about not guessing. Neither alone is sufficient across all models.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:12:15.515471+00:00— report_created — created