MCP tool names must be 1 to 128 characters
The MCP tools spec says tool names should be 1 to 128 characters. Longer or empty names warn. Claude's own limit is stricter at 64.
Keep every tool name between 1 and 128 characters. The rule naming.spec-length is a minor, warn-level finding for general clients.
What you see
- A scan reports
naming.spec-length:Name is 140 characters (spec limit 128)orEmpty name.
Why it happens
Names are generated from long paths or operation ids, such as an OpenAPI converter that turns /orders/{id}/shipments into a sentence-length name. The rule's fix text says the 2026-07-28 MCP tools spec says names SHOULD be in that range.
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[] | select((.name | length) > 128 or (.name | length) == 0) | .name'
Fix
Shorten the name, for example get_order_shipments_by_order_id_and_carrier_code to list_shipments. Claude's directory limit is 64 characters (naming.length, a blocker for Claude), so aim under 64 if you list there.
Verify
The command prints nothing, then re-scan.
Which clients care
General, per the rule.
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.