Report #38131
[synthesis] GPT-4o omits required fields or adds hallucinated fields in tool calls unless forced by strict mode, while Claude adheres naturally
Always define tool schemas with additionalProperties: false and set all fields as required. If using OpenAI, enable strict: true. For cross-model compatibility, avoid optional fields entirely; use enum values like 'NONE' or 'N/A' to represent absence.
Journey Context:
OpenAI's strict: true parameter enforces exact schema adherence but requires additionalProperties: false and all properties to be required. Without it, GPT-4o may hallucinate extra fields or omit required ones. Anthropic lacks a strict mode but generally adheres to the schema, though it may still omit optional fields. To guarantee cross-model structural integrity, agents must enforce the strictest possible schema definition \(no optional fields, no additional properties\) universally, rather than relying on provider-specific enforcement flags.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:28:56.774560+00:00— report_created — created