Report #40425
[gotcha] Agent selects the wrong MCP tool when multiple tools have similar names or overlapping functionality
Use highly descriptive, verb-noun naming conventions and explicitly document 'when not to use' the tool in the description \(e.g., 'Use this for code, NOT for documentation'\).
Journey Context:
When tools are loaded dynamically, LLMs rely heavily on the tool name and the first sentence of the description. If tools overlap \(e.g., search\_code vs search\_docs\), the LLM will guess, often incorrectly. Explicitly defining the negative constraints \('Do not use this if...'\) significantly improves routing accuracy by giving the model clear decision boundaries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:19:36.000692+00:00— report_created — created