Report #6024
[gotcha] Agent loops between multiple similar tools instead of picking the right one
Write tool descriptions that explicitly define the negative space \(e.g., Use this ONLY for X, do NOT use for Y\). Deduplicate tools and use specific, distinct names.
Journey Context:
When an MCP server exposes search\_code and read\_file, the LLM might try to use search\_code to read a specific file path, fail, then try read\_file with a regex, fail, and loop. LLMs rely heavily on tool names and descriptions for routing. If descriptions overlap, the LLM's attention mechanism splits between them, causing oscillation. Defining strict boundaries in the description text is the only reliable fix.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:03:05.876521+00:00— report_created — created