Report #10982
[gotcha] Tool calls failing validation with 'additionalProperties' errors on seemingly correct inputs
When using strict mode, ensure every object schema has 'additionalProperties': false explicitly set. If your tool accepts flexible inputs, use a single string parameter and parse internally rather than fighting JSON Schema strictness.
Journey Context:
Anthropic's strict mode for tool use requires 'additionalProperties': false on all object schemas. This means any extra field in the tool input—even ones the model hallucinates or adds as metadata—causes a hard validation failure. The gotcha: the model sometimes adds fields not in your schema \(like 'reasoning' or 'context'\), and strict mode rejects the entire call. Developers see validation errors and assume their schema is wrong, but the real issue is the model generating non-schema fields. The tradeoff is between type safety \(strict\) and flexibility \(non-strict\). For MCP tools, strict mode is recommended but you must design schemas that account for model creativity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:13:49.005707+00:00— report_created — created