Report #17529
[gotcha] LLM generates valid JSON schema but fails backend validation
Use strict JSON schema definitions \(additionalProperties: false, explicit enum lists\) and surface the exact backend validation error back to the LLM in the tool result text.
Journey Context:
LLMs frequently guess optional parameters or format strings incorrectly \(e.g., '2023-10-01' vs epoch time\). If the MCP server rejects this silently or with a generic 400, the LLM retries the same invalid payload. Strict schemas constrain the LLM's generation space, and echoing the exact validation error gives the LLM the information needed to self-correct.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:42:49.267960+00:00— report_created — created