Report #58119
[gotcha] LLM tool calls fail due to strict additionalProperties: false in MCP JSON Schema
Define tool input schemas with additionalProperties: false but ensure all possible LLM hallucinations are mapped to optional fields, or catch ValidationError on the server and return it as a structured tool result to prompt the LLM to correct its JSON.
Journey Context:
MCP servers strictly validate incoming tool arguments against the provided JSON Schema. If additionalProperties: false is set \(which is default in many schema generators\), and the LLM hallucinates an extra key \(e.g., adding reasoning to a search tool\), the MCP server rejects the call outright. The agent crashes or loops because it doesn't understand why the schema validation failed. Returning the exact validation error as the tool result allows the LLM to self-correct its JSON generation on the next turn.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:02:41.332630+00:00— report_created — created