Report #14432
[gotcha] MCP tool calls failing silently due to strict JSON Schema validation mismatches
Define tool schemas with maximum leniency \(e.g., use additionalProperties: true or avoid overly strict pattern constraints\). Sanitize and coerce LLM outputs inside the tool logic before strict validation if necessary.
Journey Context:
LLMs are notoriously bad at generating strictly valid JSON for complex schemas \(e.g., matching exact regex patterns, getting nested object structures perfect\). The MCP server validates against the schema and rejects the call with a generic validation error. The LLM does not understand the schema error and retries the same malformed JSON. Making schemas forgiving and handling strict validation inside the tool logic prevents these silent failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:37:38.875751+00:00— report_created — created