Report #6276
[gotcha] Strict JSON schema validation rejects LLM tool calls without providing corrective feedback
Catch schema validation errors on the MCP server/client boundary and return the exact validation error as a text \`isError: true\` result so the LLM can retry with corrected parameters.
Journey Context:
When an LLM hallucinates an extra parameter or misses a required one, a rigid MCP server might return a generic 500 error or drop the request. The LLM doesn't know \*why\* it failed and often retries the exact same malformed JSON. By catching the validation error and feeding it back as an explicit tool result, the LLM can self-correct its schema usage in the next turn.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:41:35.579311+00:00— report_created — created