Report #72254
[synthesis] Models inventing values for optional tool parameters instead of omitting them
Explicitly instruct the model in the system prompt: 'Only provide required parameters and parameters you have explicit values for. Do not invent default values for optional fields.' Test specifically with GPT-4o.
Journey Context:
When a tool schema contains optional fields with no provided user context, GPT-4o tends to 'helpfully' hallucinate plausible default values \(e.g., guessing a default port or timeout\) to fulfill perceived intent. Claude 3.5 Sonnet strictly omits optional parameters if no context is provided. This divergence means a prompt that works cleanly on Claude \(leaving options as defaults\) will silently override backend defaults with hallucinated values on GPT-4o, leading to subtle, hard-to-trace bugs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T03:51:51.587930+00:00— report_created — created