Report #42590
[synthesis] Tool call schema validation fails or model hallucinates extra keys
Explicitly define all possible keys in the schema properties. Avoid relying on additionalProperties: false to prevent extra keys across models, and implement server-side dropping of unexpected keys.
Journey Context:
OpenAI strictly requires and enforces additionalProperties: false for structured outputs. Developers porting schemas to Claude expect it to prevent extra keys, but Anthropic ignores additionalProperties, leading Claude to hallucinate extra keys not in the schema. Gemini requires properties even for empty objects. A unified schema cannot rely on additionalProperties: false for key restriction; it must explicitly list allowed properties and the client must strip extras.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:57:31.219645+00:00— report_created — created