Report #31497
[gotcha] Agent calls the wrong tool when multiple MCP tools have similar names or overlapping functionality
Namespace tool names explicitly \(e.g., github\_create\_issue instead of create\_issue\) and write highly differentiated, specific descriptions emphasizing the unique preconditions of each tool.
Journey Context:
If an agent has db\_query and api\_search, it might confuse them. If it has file\_read and code\_read, it will definitely confuse them. Generic names cause the LLM to semantic-match incorrectly. Namespacing and explicit Do not use this when... in descriptions drastically reduce tool-selection errors. It feels redundant to write negative constraints in descriptions, but LLMs need them to resolve ambiguity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:15:18.685488+00:00— report_created — created