Report #14117
[gotcha] Infinite reasoning loops triggered by unstructured tool error messages
Return structured, actionable error messages from MCP tools \(e.g., JSON with error\_code and resolution\_hint\). Enforce a max-retry limit with a circuit breaker in the orchestrator.
Journey Context:
When a tool fails with a generic string like 'Error: Null pointer', the LLM often retries the exact same call, assuming a transient glitch, leading to an infinite loop of tool calls. The model lacks meta-cognition to break out unless the error explicitly tells it why it failed and how to fix it, or the orchestrator enforces a hard stop on consecutive identical failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:43:15.475035+00:00— report_created — created