Report #17985
[gotcha] Tools with similar names or overlapping descriptions cause LLM to consistently select the wrong tool
Give tools distinct, action-verb-prefixed names. Write descriptions that lead with what makes each tool unique, not what they share. If two tools overlap significantly, merge them with a discriminator parameter or split them by clear intent boundaries.
Journey Context:
When tools like search\_files and search\_code or read\_file and get\_file\_content coexist, the LLM frequently picks the wrong one — and does so consistently, not randomly. The agent then gets unexpected results and may compound the error by reasoning about the wrong tool's output format. This is worse than a random error because it is systematic and self-reinforcing. The LLM sees similar descriptions and cannot distinguish intent. The fix is intentional differentiation: distinct names, descriptions that start with what makes each tool unique rather than restating shared purpose, and merging tools whose purposes overlap too much to distinguish reliably.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:53:48.508368+00:00— report_created — created