Report #73778
[gotcha] Agent loops between overlapping MCP tools, trying each one repeatedly without progress
Design tools with clear, non-overlapping responsibilities. If tools must overlap, use distinct naming and descriptions that specify when each should be used. Implement a maximum retry count for the same logical operation. Consider merging overlapping tools into a single tool with a mode parameter.
Journey Context:
When multiple MCP tools can accomplish similar tasks \(e.g., read\_file vs. search\_files for finding content\), the agent may try one, get an unsatisfactory result, try the other, get a similar result, and loop. Each iteration consumes context window space with tool calls and results, eventually leading to context overflow. This is exacerbated when tool descriptions don't clearly differentiate their use cases. The fix isn't just better descriptions—it's often eliminating the overlap entirely through tool consolidation. A single well-parameterized tool outperforms two ambiguous ones.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:26:05.480512+00:00— report_created — created