MCP Shipyard
← Rules catalog

Too many MCP tools: why 40 is the practical ceiling and how to trim

More than 40 tools warns and over 100 fails. Models choose worse as the list grows and IDE clients warn. Trim, merge or split servers.

minorcount.too-manyGeneral, Grok Build

Keep the tool list to 40 or fewer. The rule count.too-many is a minor finding for general clients and Grok Build (formerly Cursor). It warns above 40 tools and fails above 100.

What you see

  • A scan reports 62 tools as a warning, or as a failure above 100.
  • In use, the model picks the wrong tool more often, and IDE clients may warn about the number of enabled tools. The client-side warning wording is not verified here.

Why it happens

Servers grow by mirroring an API one endpoint at a time. Each tool definition is loaded into the model's context, so more tools means more tokens on every turn and more near-duplicates to choose between.

The 40-tool figure is community-documented for Grok Build (formerly Cursor) and is not stated on the pages we fetched, so treat it as a heuristic and not a documented limit. For hard limits, see count.vscode-limit for VS Code's 128-tool ceiling, which is also community-documented in this scanner. Claude's directory policy 5.B asks MCP servers to be "frugal with their use of tokens", and the total size of your tool definitions counts toward that. OpenAI's server guide advises one tool per distinct action and focused operations over one tool with many modes, which pulls the other way (catchall.mode-parameter), so the goal is to remove tools nobody needs, not to merge unrelated ones.

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 '.result.tools | length'

If the server paginates, follow nextCursor and add the counts.

Fix

  1. Remove tools nobody calls. Check your logs for tools with no calls in 30 days.
  2. Merge true duplicates (get_order_by_id and get_order_by_number) into one with a clear parameter.
  3. Split rarely used admin or reporting tools into a second server URL, so users enable them on purpose.
  4. Where the list depends on scopes, return only the tools the token can use. The 2026-07-28 spec allows tools/list to vary by the authorization presented.

Verify

The count is 40 or lower, the key tasks still work, and the re-scan passes.

Which clients care

General and Grok Build (formerly Cursor), per the rule.

Source

Grok Build (formerly Cursor) MCP docs, as cited in the rule: https://cursor.com/docs/context/mcp

OpenAI MCP server guide: https://developers.openai.com/plugins/build/mcp-server

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.

Scan a server