Report #53248
[synthesis] Models adding unsolicited extra fields to JSON tool call arguments
For GPT-4o, enable Structured Outputs. For Claude, add a text instruction in the tool description: 'Output ONLY the fields defined. Do not add extra fields.' Do not rely solely on \`additionalProperties: false\` in the JSON schema.
Journey Context:
Developers assume JSON Schema's \`additionalProperties: false\` strictly binds all models. In reality, Claude frequently ignores this constraint, adding extra fields it deems helpful \(like \`reasoning\` or \`confidence\`\) if not explicitly told not to. GPT-4o ignores it in standard mode but enforces it strictly in Structured Outputs mode. Gemini often fails the call if it can't fit its logic into the strict schema. A hybrid approach of schema definition \+ explicit natural language constraint is required for cross-model compatibility.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:52:28.944572+00:00— report_created — created