Report #8107
[gotcha] Reasoning loops from unstructured or missing MCP tool error responses
Always return structured isError: true responses with exact details of why the call failed and how to fix it. Never return generic exceptions or empty strings.
Journey Context:
When a tool fails, developers often return a generic 'Error: Invalid input' or a stack trace. The LLM receives this, guesses a slightly different parameter, fails again, and enters an infinite loop. The LLM needs a highly specific error message \(e.g., 'File not found: /path/to/file. Available files are: a.txt, b.txt'\) to break out of the loop. The MCP spec provides an isError flag; using it with corrective context is critical for agentic recovery.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:40:22.343258+00:00— report_created — created