Duplicate MCP tool names: each tool name must be unique
Two tools with the same name in tools/list make clients drop or overwrite one. Give every tool a distinct name; the MCP spec says names are unique.
Give every tool in tools/list a distinct name. The rule naming.duplicate is a blocker. Its fix text says duplicate names make clients drop or overwrite tools; that outcome differs per client and is not verified here.
What you see
- A scan reports
naming.duplicateper name:"search" is listed 2 times. - Some SDKs refuse to register the second tool and throw at startup. Others quietly list both.
Why it happens
- Two modules each register a tool called
searchorget_item. - A tool list is built by merging several sources (an OpenAPI import plus hand-written tools) without checking collisions.
- Pagination bugs return the same page twice, so one tool appears twice in the combined list.
- A proxy server forwards the tools of several upstream servers without prefixing them.
The MCP tools spec says tool names SHOULD be unique within a server. Its note adds that a client or proxy aggregating several servers may meet collisions, and should disambiguate, for example with a server prefix. Uniqueness inside your own server is your job.
Check it yourself
curl -s -X POST https://mcp.acme.example/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "Authorization: Bearer $TOKEN" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
| jq -r '.result.tools[].name' | sort | uniq -d
Every line printed is a duplicated name. If your server paginates, follow nextCursor and check the combined list.
Fix
- Rename one of each pair so the names say what differs:
search_ordersandsearch_shipments. - When merging sources, build a map keyed by name and fail the build on a collision.
- For a proxy, prefix each upstream's tools (
carrier_get_rate). - Check
naming.confusableas well: names that differ only by case or plural also confuse models.
Verify
The uniq -d command prints nothing, then re-scan.
Which clients care
Tagged general: any client that builds a name-to-tool map is affected.
Source
MCP tools spec: https://modelcontextprotocol.io/specification/2026-07-28/server/tools
Run a free scan at https://mcpshipyard.com/scan to check every rule at once.
Check every rule at once
A free scan runs this check and the other 152 against your live URL.