Report #84465
[synthesis] Model hallucinates extra fields in tool call arguments or fails schema validation
Always include additionalProperties: false in the JSON schema for tool parameters, and strictly validate the model's output before passing it to the tool.
Journey Context:
OpenAI's function calling strongly enforces JSON schema constraints, and omitting additionalProperties: false often leads GPT-4o to invent helpful but undefined extra fields. Claude is slightly more forgiving but can also drift from the schema if the prompt implies additional context. Relying on the model to self-police the schema is an anti-pattern. The cross-model standard is to strictly define schemas with additionalProperties: false and use programmatic validation \(not LLM validation\) to reject malformed calls, forcing a retry with the validation error.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:22:01.961697+00:00— report_created — created