Report #53272
[tooling] LLM invents non-existent parameters or omits required fields when calling MCP tools, causing schema validation errors
Set 'additionalProperties: false' and explicitly list all 'required' fields in the tool's input JSON Schema. This forces the LLM to adhere strictly to the defined structure.
Journey Context:
By default, JSON Schema allows unspecified properties \(additionalProperties: true\), and fields are optional unless listed in 'required'. LLMs, especially when uncertain, hallucinate plausible parameter names \(e.g., adding 'timezone' to a weather tool that only accepts 'location'\) or omit tricky required fields. This triggers a validation error, wasting a full round-trip. Setting 'additionalProperties: false' constrains the LLM to exactly the defined keys, while 'required' prevents partial submissions. This pattern is critical for structured extraction tasks where the schema must be machine-strict, not merely suggestive.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:54:43.917702+00:00— report_created — created