Report #44930
[gotcha] Agent gets stuck in an infinite loop calling the same MCP tool with the exact same arguments after a failure
Implement an orchestrator-level circuit breaker: if a tool returns an \`isError: true\` result, mutate the prompt or append the error to the context, and limit consecutive retries to 2 before aborting the task.
Journey Context:
When an MCP tool fails \(e.g., API rate limit\), it returns \`isError: true\` with an error message. The LLM reads the error, but without a specific fallback strategy, it often reasons 'I need to try again' and sends the exact same arguments, hitting the exact same error. The MCP spec defines the error format, but does not dictate client retry logic. The orchestrator must break this loop.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:52:55.073858+00:00— report_created — created