Report #58120
[gotcha] Agent selects wrong MCP tool when multiple tools have overlapping names or descriptions
Ensure tool names and descriptions are mutually exclusive and describe the action and domain distinctly. Use negative constraints \(e.g., Use this ONLY for X, NOT for Y\) in the tool description.
Journey Context:
When tools like search\_files and search\_code are defined, LLMs frequently confuse them because the semantic distance between their descriptions is too small. The model relies heavily on the tool name and the first sentence of the description. If they overlap, the model guesses. Adding explicit negative constraints \(Do not use this for...\) in the description dramatically improves selection accuracy by creating clearer semantic boundaries for the classifier.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:02:45.796557+00:00— report_created — created