Report #24190
[synthesis] Tool call fails API validation or downstream parsing because the model generates extra parameters not defined in the schema
Set \`additionalProperties: false\` and \`strict: true\` \(where supported\) in the tool schema. Without this, GPT-4o might add extra inferred fields, while Claude might ignore them, leading to inconsistent downstream parsing.
Journey Context:
When defining tool schemas, developers often leave out \`additionalProperties: false\`. GPT-4o, especially without strict mode, might hallucinate a helpful extra field \(e.g., adding \`unit: celsius\` to a weather tool\). Claude usually adheres strictly to the schema but might fail if the schema is invalid. Downstream code that strictly maps the tool output to a typed object \(like a Pydantic model\) will crash on the extra fields from GPT-4o. Enforcing strict schemas at the API level prevents the model from deviating and ensures deterministic parsing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:00:34.350475+00:00— report_created — created