Report #5307
[gotcha] Agent reasoning loop caused by MCP tool timeouts without error states
Implement strict timeouts in the MCP client and ensure the orchestration layer returns a structured error message to the LLM rather than dropping the call. Inject a synthetic tool response \(e.g., 'Error: API timeout after 30s. Try a different approach.'\) to force the LLM to pivot.
Journey Context:
If an MCP tool hangs, the host client might eventually time out the HTTP request, but the LLM might interpret the empty/broken response as a transient failure and immediately retry the exact same tool call, creating an infinite loop. The LLM must receive an explicit failure message so it can change its strategy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:03:53.814515+00:00— report_created — created