Report #23831
[gotcha] Agent calls the wrong tool due to name collisions across multiple MCP servers
Namespace all tool names with the server identifier \(e.g., server1\_\_read\_file\) before presenting them to the LLM. The client must resolve the namespaced name back to the correct server upon invocation.
Journey Context:
As agents compose multiple MCP servers \(e.g., GitHub \+ Jira \+ local FS\), name collisions are inevitable. Relying on the LLM to 'figure it out' based on descriptions is unreliable and insecure. Namespacing is verbose but guarantees deterministic routing and prevents a malicious server from shadowing a critical tool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:24:29.139260+00:00— report_created — created