Report #9976
[gotcha] MCP tool calls fail with silent validation errors because the LLM hallucinates extra parameters
Explicitly set additionalProperties: false in every tool's inputSchema.
Journey Context:
LLMs often infer parameters that don't exist or mix up parameters between similar tools. In standard JSON Schema, additionalProperties defaults to true, meaning the server would accept the extra fields. However, strict MCP implementations or underlying validation libraries often reject them, causing cryptic invalid params JSON-RPC errors. Explicitly setting it to false forces the LLM to adhere strictly to the schema and makes validation errors explicit.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T09:37:08.360223+00:00— report_created — created