MCP server has too many tools: limits, costs and five fixes
Past 30–50 tools, agents pick the wrong MCP tool and some clients refuse the request. Five ways to shrink what an agent sees, and what each one costs you.
CrabTalk Team
An MCP server that exposes every tool it has works fine at ten tools. At a few hundred it breaks in three places at once: the agent's context fills with definitions, the model picks the wrong tool, and some clients refuse the request outright. This post collects the limits clients publish today, then compares five ways to keep an agent's tool list small, and what each one gives up.
Where a large tool list breaks
Context. Every tool's name, description and JSON Schema goes into the model's context before it does any work. Anthropic measured a typical setup of five servers (GitHub, Slack, Sentry, Grafana and Splunk) at about 55,000 tokens of definitions (tool search docs).
Selection accuracy. The same docs say Claude's ability to pick the right tool degrades past 30–50 available tools. OpenAI's function calling guide suggests fewer than 20 functions at the start of a turn, as a soft rule.
Hard caps. Some clients stop sending tools past a fixed count:
| Client | Limit | Source |
|---|---|---|
| VS Code (Copilot chat) | 128 tools per chat request; "Cannot have more than 128 tools per request" | VS Code docs |
| Cursor | Reported in 2025 to send only the first 40 tools to the agent | Cursor forum |
| Claude API with tool search | Up to 10,000 deferred tools per request | Anthropic docs |
| MCP specification | No cap | MCP tools spec |
A server can't control which client connects, so it has to assume the smallest of these.
Fix 1: turn tools off in the client
Most clients let the person deselect tools or whole servers: the tools picker in VS Code, the server list in Cursor and Claude Code. It costs nothing to build, but every person has to do it by hand, and it fails silently: the agent never learns that the tool it needed exists.
Use it when a person connects a few servers and knows which tools they use.
Fix 2: let the client search, and load tools on demand
The client keeps every definition, shows the model a search tool, and loads only what a search finds. Anthropic's tool search does this with defer_loading: true: Claude searches tool names, descriptions and argument names and descriptions with regex or BM25, and each search returns 5 tools by default. Anthropic says this typically cuts definition tokens by over 85 percent. VS Code 1.103 added an experimental virtual tools mode that groups tools past the cap and lets the model activate a group. OpenAI's guide also pairs function calling with tool search.
This fixes context and accuracy without touching the server. It depends on the client supporting it, and the server still sends every definition on every tools/list.
Use it when you control the client, or your users' clients already do it.
Fix 3: a different tool list per user
The server lists only what this user has chosen: their own tools, plus the ones they've added. Adding is a small step, like installing an app, and the server sends notifications/tools/list_changed so the client fetches the new list (MCP spec). The list grows with what one user needs, not with the catalog.
Two costs. The server needs somewhere to store each user's choices, and a way to add a tool, either a button on a web page or an add tool the agent can call. And clients have to act on list_changed: users have reported clients that don't refetch mid-session.
Use it when your server is a catalog, with many publishers and many tools any one user ignores.
Fix 4: a few generic tools: search, inspect, call
The server exposes three tools instead of hundreds. search finds tools by text, inspect returns one tool's schema, and call runs a tool by name with arguments. The list is fixed at three tools no matter how big the catalog grows, and any client works.
The cost is everything a client does per tool. A client can't show a permission prompt for "send email" when every call is call. Tool annotations such as readOnlyHint and destructiveHint no longer describe one operation, and the model has to read a schema through a tool result instead of having it as a native tool definition.
The CrabTalk CLI's local MCP interface works this way, as search → inspect → call, because a developer's local host runs whatever is under development.
Use it when the catalog is unbounded and the client is your own, or permission prompts don't matter.
Fix 5: pagination, which doesn't help
tools/list supports a cursor, so a server can return its tools in pages. That keeps one response small, but a client that follows nextCursor still ends up with every tool in context. One that doesn't (users have reported clients that read only the first page) quietly loses the rest.
Comparing the five
| Fix | Who does the work | Tools the model sees | Per-tool permissions | Works in any client |
|---|---|---|---|---|
| Turn tools off | Each person, by hand | What they leave on | Yes | Yes |
| Client tool search | The client | A search tool, plus what it finds | Yes | No |
| Per-user list | The server, plus one "add" per tool | What the user added | Yes | Yes, if it refetches on list_changed |
| Search, inspect, call | The server | Three | No | Yes |
| Pagination | The server | All of them | Yes | Partly |
Fixes 2 and 3 work together. A per-user list keeps the server's answer small, and client-side search handles a user who adds many tools.
The server pays too
A large list also costs the server. If it builds tools/list from many backends (one service, one OpenAPI document, one plugin each), every list request fetches every definition. A call that looks a tool up by name shouldn't rebuild the whole list to find one entry. Two habits keep this cheap:
- Cache definitions by version. A tool's definition changes when its service is redeployed, not between requests.
- Resolve a call through one service. Namespace tool names, as in
github_create_issue, so a call names the service that owns it.
Make the tools you keep findable
Whichever fix you choose, search does the selecting, and search matches text. Anthropic's tips apply to any search: name tools with a consistent prefix per service, and put the words people use for a task into the description. We cover names, titles and descriptions in How to name MCP tools.