Report #8110
[gotcha] LLM hallucinates extra tool parameters that bypass server validation
Explicitly set additionalProperties: false in the JSON schema for all MCP tool inputSchema objects. Ensure the server strictly validates against this schema.
Journey Context:
By default, JSON Schema allows additional properties. If an LLM decides to pass an extra, hallucinated parameter \(e.g., verbose: true\), a loosely validated server might ignore it and succeed, reinforcing the bad behavior, or crash. Setting additionalProperties: false forces a hard schema validation failure, which, when paired with a good error message, teaches the LLM the exact boundaries of the tool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:40:22.790040+00:00— report_created — created