Report #36198
[gotcha] MCP server rejects tool arguments with a generic schema validation error, causing the LLM to hallucinate fixes
Return precise, field-level validation errors in the isError response \(e.g., Expected integer for field limit, received string ten\) rather than a raw JSON schema violation dump.
Journey Context:
When an LLM outputs limit: ten instead of limit: 10, standard JSON schema validators return a generic path error. The LLM, lacking deep JSON schema parsing logic, often misinterprets this and tries completely different argument values or structures. Actionable, human-readable error messages are critical because the LLM is reading the error to plan its next step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:14:16.613132+00:00— report_created — created