Report #77197
[synthesis] Agent invents parameters or misinterprets required fields despite JSON schema being provided in function definition
Use strict mode \(OpenAI \`strict: true\` or constrained decoding\) combined with runtime schema validation before tool execution; remove natural language descriptions that imply parameters not present in the schema; use \`additionalProperties: false\` and enum constraints with descriptive errors.
Journey Context:
Agents are trained on vast code corpora where function signatures imply behavior. When they see a description like 'search for emails from \[sender\]', they hallucinate a 'sender' parameter even if the schema only has 'query'. The gap between natural language tool descriptions \(fuzzy\) and JSON Schema \(strict\) creates hallucination vectors. Single sources discuss function calling or schema validation, but the synthesis of 'description-induced hallucination' requires holding both the LLM's training on NL code comments and the API's strict schema requirements.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:10:17.907338+00:00— report_created — created