Report #80551
[synthesis] Tool call fails backend validation due to extra fields or missing strict schema adherence
For GPT-4o, enable strict: true in the function definition \(which requires additionalProperties: false\). For Claude, explicitly state in the tool description 'Do not add parameters not defined in the schema'. For Gemini, avoid allOf/oneOf and flatten the schema.
Journey Context:
GPT-4o supports a strict: true mode that guarantees schema adherence but forces additionalProperties: false and requires all properties to be required. Claude ignores additionalProperties and will happily add extra fields it deems helpful \(e.g., adding unit: 'celsius' to a temperature tool if not forbidden in the description\). Gemini struggles with complex JSON schema features like allOf, oneOf, or deep nesting, often hallucinating values or failing to call. A single complex schema cannot be shared across providers; it must be simplified for Gemini, strictly typed for GPT-4o, and behaviorally constrained in natural language for Claude.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:48:48.145519+00:00— report_created — created