Guide
Shrinking an MCP tool list
Most clients send a server's whole tool list to the model with every request. A large list costs tokens on every turn, takes room the conversation could use, and gives the model more tools to choose between. These are the ways to make it smaller, what each one costs, and how to check that the model still picks the right tool afterwards.
The suggestions come from server authors and agent builders who replied to the survey of 28 popular servers, on r/mcp and LinkedIn. The numbers are from the survey and the monthly scorecard, counted with OpenAI's o200k tokenizer.
First, measure
Lint prints the size of a tool list, where it comes from, and the largest tools:
npx -p mcp-master-tester -p gpt-tokenizer mcp-master-tester lint --tokenizer o200k -- node dist/index.js
Tool list: 22,019 o200k tokens (descriptions 4,453, input schemas 8,019, output schemas 8,062, other 1,485)
Largest: firecrawl_search 2,355, firecrawl_research_lookup_protein 2,126, firecrawl_scrape 1,804, ...
Parameters: 118 of 171 have no description
That's Firecrawl's server in the survey, the largest of the 28. The split matters more than the total: here the schemas, not the descriptions, carry most of the weight, so rewriting descriptions alone would save little. Without --tokenizer o200k, lint estimates characters divided by four, which comes out about 13% high.
Set a budget, so growth is a decision
One server author with about 80 tools said the change that helped most was a test that fails when the tool list grows past a budget, "so every new tool is a decision". Lint does this in CI:
npx mcp-master-tester lint --max-tokens 6000 --max-tool-tokens 800 -- node dist/index.js
When it fits: always; it's the only item here that keeps a list small after you've trimmed it. Cost: a number to choose, and a failing build when someone adds a tool without trimming another. See Token budget.
Trim what each tool sends
Descriptions
A description is read on every request, so it should say what the tool does, what it returns, and when to use another tool instead, and nothing else. Usage guides, long examples and changelogs belong in docs. Keep the "use X instead when..." lines: they cost a few tokens and prevent wrong picks between similar tools. Lint warns on a description over about 500 tokens.
Indentation
A description written as an indented multi-line string in Python or a template literal in TypeScript keeps its indentation, and every space is sent. In one server in the survey, indentation was about a quarter of the whole tool list. Dedent the string (inspect.cleandoc or textwrap.dedent in Python, or trim each line). Lint flags it.
Repeated parameter descriptions
The same long parameter description pasted into many tools is sent once per tool. Say it in full once, in the tool where it matters most, and keep the other copies to a short line. Lint flags a description of about 20 tokens or more repeated in three or more tools.
Output schemas
Output schemas were the largest single part of Firecrawl's list: 8,062 of its 22,019 tokens. They let a client check results and let a model read structured fields, but not every client passes them to the model, so their cost depends on who's calling. Keep them where the structure matters, and keep them tight: describe the fields a caller uses, not every field the backend returns. The scorecard shows each server's count with and without them.
Don't trim parameter descriptions to nothing
The opposite problem is common too: in the survey, 274 of 1,170 parameters had no description, so the model saw only a name. A short description of what a parameter accepts, with an example value, is some of the best value per token in a tool list.
Send fewer tools
Options on the server
Several servers can expose a subset of their tools through options: read-only modes, or groups of tools to turn on. If you run a large server, check its options before anything else; it's free. If you build one, offering groups of tools lets users pay only for what they use. Cost: users must know the options exist, and the defaults are what most people get.
Load tools on demand
A server can start with a few discovery tools and turn on groups of tools when asked, then tell the client with notifications/tools/list_changed. GitHub's MCP server does this with its dynamic toolsets. When it fits: large servers whose tools fall into clear groups. Cost: it only helps with clients that re-read the tool list when notified, and the model needs an extra step to turn a group on.
"List more" and "run one"
One author moved about 20 rarely used tools behind a pair of tools: one that lists them, and one that runs any of them by name. It works with every client, since the tool list itself doesn't change. Cost: the model calls a generic runner instead of a tool with its own schema, so it gets less help with the arguments, and the server has to check them itself. Keep the frequently used tools as real tools.
Per-agent allowlists
In a system with several agents, each agent can get only the tools its job needs, so a large server rides along on the one agent that uses it. One team sets up each agent by describing its job to an orchestrator, which proposes the tool list, then edits the list by hand. Tasks move between agents by explicit delegation. A useful side effect: a tool a server adds in an update stays off until someone adds it to an agent. Cost: the work moves to routing, and lists have to be kept up to date. To notice a server's new tools, run diff on a schedule against it.
What prompt caching does and doesn't fix
The tool list sits at the start of every request, so prompt caching applies to it, and cached tokens are billed at a fraction of the price. That makes a large list cheaper. It doesn't make it smaller: the list still takes the same room in the model's context, and the model still chooses among the same number of tools. Caching helps the bill; only the steps above help the context and the choice.
Check the model still picks the right tool
Trimming can go too far. A description that lost its "use X instead" line, or two tools merged into one, can change which tool the model picks. Before and after a change, run tool-selection evals: a list of requests a user might make and the tool each should lead to.
npx -p mcp-master-tester -p @anthropic-ai/sdk mcp-master-tester eval -- node dist/index.js
It tells you whether the smaller list still gets the same answers, and which tools the model mixes up.
I make MCP Master Tester, the tool these commands come from. If you shrink a tool list another way, or one of these doesn't work for you, please open an issue and I'll add it.