Your agent has 90 tools. That's the bug.
On August 22 the MCP maintainers put tool-catalog scale on the roadmap by name: connect to a server with a hundred tools and the model pays for that entire surface before the user asks a question. Benchmarks agree: retrieval errors account for nearly half of all failures on a 527-tool suite. The fix is deciding what your agent is allowed to see for each task. Here's the audit, the four patterns, and the numbers behind each.
A week ago the MCP maintainers published a new roadmap, and buried in the "improved primitives" section is the most honest sentence anyone has written about agent tooling this year:
"Connecting to a server with a hundred tools means the model pays for that entire surface before the user has asked a single question, and tool selection tends to get worse as the list grows."
That's from "The New MCP Roadmap", published August 22, 2026 by lead maintainers David Soria Parra and Den Delimarsky. They're now starting a formal progressive discovery effort so a server can offer a small entry point and reveal more of its catalog as the conversation narrows.
Good. But that's a future spec release. If your agent is degrading right now, you can't wait for the protocol to fix it, and you shouldn't want to. Tool sprawl is a design decision you made by accident, one npx install at a time.
What tool sprawl actually is
Tool sprawl is when an agent is given more tools than it can reliably choose between, so every request pays a token cost and an accuracy cost for capabilities that request will never use.
The mechanics are unglamorous. Most MCP clients load every connected server's full tool catalog into context up front. Each tool definition (name, description, parameter schema, return shape) runs a few hundred tokens. Connect six or seven servers and you're carrying somewhere north of fifty tools before the user types anything.
Two bills come due at once.
The token bill is the obvious one and the smaller one. Fifty verbose tool definitions is real money at scale but it's not what breaks you.
The attention bill is the one that ruins your week. When a model is choosing between github_search_issues, github_list_issues, github_search_repositories, linear_search_issues, and jira_search_issues, it is doing a retrieval problem, not a reasoning problem, and it's doing it against a list of near-synonyms with no ranking signal. Selection degrades. Then, because the wrong tool returns something plausible-looking, the failure doesn't announce itself. It just produces a worse answer.
The numbers, from people who measured
"AI agents struggle with many tools" is a claim that rarely comes with a citation, so here are the sources.
LiveMCPBench (arXiv 2508.01780) is the most useful thing published on this. The Institute of Software, Chinese Academy of Sciences team built a reproducible suite of 70 MCP servers exposing 527 tools and ran 95 real-world tasks against 12 frontier models, specifically to stress large-scale retrieval and multi-server routing instead of the single-server, tools-injected-directly setup most benchmarks assume.
Results worth memorizing:
- Claude Sonnet 4 topped the board at 78.95% task success. Most models landed at 30–50%.
- Retrieval errors accounted for nearly half of all failures. Not reasoning errors. Not tool errors. The agent failing to find and select the right tool from the catalog.
- Active tool composition correlated strongly with success: the models that won were the ones chaining tools well, not the ones with access to more of them.
Half of failures being retrieval failures is the headline. It means the highest-leverage fix in a sprawling agent is not a better model or a better prompt. It's a smaller, better-organized menu.
The RAG-MCP paper (arXiv 2505.03275) attacks it from the other end: index tool descriptions in a vector space, retrieve the top few for the query, inject only those. WRITER's engineering team wrote a clear walkthrough with a working prototype. The paper reports the approach more than triples tool-selection accuracy while cutting prompt tokens by over half. Same model. Same tools available. Different set placed in front of it.
And Anthropic's own code execution with MCP writeup gives the extreme version: for a workflow where tools were exposed as files on a filesystem for the agent to read on demand rather than loaded up front, token usage went from 150,000 to 2,000, a 98.7% reduction.
Three independent lines of evidence, one conclusion: what the model can see is a bigger lever than what the model is.
Signals you have this problem
You probably don't need a benchmark to diagnose this. In order of how often I see them:
- Your agent picks a plausible wrong tool and nobody notices for a week. It called
list_issueswhen it neededsearch_issues, got twenty irrelevant results, and summarized them confidently. - It invents tool names. A classic attention-dilution symptom: the model blends two similar tools into one that doesn't exist.
- Cost per task crept up without the workload changing. You added a server in June. Every request since has carried it.
- Latency got worse on simple requests. Time-to-first-token scales with what's in the prompt, and a fat tool catalog is in every prompt.
- Nobody on the team can name every tool the agent has. If you can't list them, you can't reason about them, and neither can the model.
- You connected a server for one tool. The GitHub MCP server is the canonical example: teams wire it up to read PR descriptions and inherit several dozen tools they will never call.
That last one is the most common and the easiest to fix.
The audit: two hours, do it before you change anything
Before you reach for a pattern, get the actual numbers. This is the first thing we do in production-hardening work when an agent "got worse and nobody knows why," and it takes an afternoon.
1. Dump the catalog. Call tools/list against every server your agent connects to and get a flat list: server, tool name, description length, schema token count. As of the 2026-07-28 spec, list responses carry ttlMs and cacheScope, so you can also see what your client should be caching instead of re-fetching.
2. Count the tax. Total tokens for the whole catalog. Divide by your model's context window. That percentage is what every single request pays before it starts. If it's north of 5%, you have a real problem; north of 15% and it's the main problem.
3. Pull call counts from the last 30 days. Group by tool. You want the long tail: tools called zero times, tools called once. In every catalog I've audited, the distribution is steeply Pareto: a handful of tools do nearly all the work.
4. Find the near-synonyms. Sort tool names and descriptions and look for clusters that a model would have to disambiguate. Every cluster is a coin flip you're asking it to make on every request.
5. Map tools to jobs. For each distinct job the agent does, list which tools that job actually needs. If the union of all jobs is much smaller than the catalog, you already have your answer.
You now have a defensible target. Usually it's "this agent needs 12 tools, not 90."
Four patterns that shrink the menu
There's no single right fix. The four patterns trade capability, complexity, and infrastructure differently. Pick by how much variety your agent's work actually has.
Pattern 1: Just delete things
What it is: Curate the catalog by hand. Turn off servers you connected for one tool. Filter the tool list your client exposes down to what the audit says gets used.
Least fashionable, highest ROI, and where I start every time. Most clients now support per-server tool filtering; if yours doesn't, a thin proxy that drops tools from tools/list responses is a couple hours of work. The 2026-07-28 header-based routing (Mcp-Method and Mcp-Name travel in HTTP headers now) makes that proxy easier to build than it used to be, because your gateway can route and filter without cracking open request bodies.
Cost: an afternoon. Ceiling: you can only cut what's genuinely unused. If the agent legitimately needs breadth, you'll hit the floor fast.
Use it when: always, first, before anything else.
Pattern 2: A gateway with tool search
What it is: Put a layer between the agent and the servers that exposes a small number of entry points (typically a search_tools call) and loads full schemas only for what matches.
This is the pattern the MCP roadmap is standardizing as progressive discovery, and it's what Anthropic ships today as Tool Search (tool definitions tagged defer_loading: true, replaced by a semantic search tool). It's also what WRITER built into their MCP Gateway, and what RAG-MCP describes academically.
One design detail worth stealing from Anthropic's writeup: give your search_tools a detail-level parameter: name only, name plus description, or full schema. The agent picks how much it needs and conserves context on the cheap passes.
Cost: real engineering. You're operating an index, keeping it in sync with catalogs that change, and accepting that a retrieval miss now fails silently in a new place. Ceiling: high. This scales to hundreds of tools.
Use it when: you genuinely have 50+ tools across many domains and the audit can't get you under 20.
Pattern 3: Code execution over tool calls
What it is: Expose MCP servers to the agent as code APIs on a filesystem rather than as tool definitions in context. The agent explores the directory, reads only the tool files it needs, and writes code that calls them.
This is the 98.7% number. It works because it fixes two problems at once: tool definitions load on demand, and intermediate results stay in the execution environment instead of round-tripping through the model. If your agent is passing a 10,000-row spreadsheet or a two-hour meeting transcript between tools, that second half matters more than the first. Cloudflare converged on the same idea independently and calls it Code Mode.
There's a bonus that isn't about tokens: intermediate data never enters model context unless the agent explicitly logs it. That's a meaningful containment property if you've been thinking about the lethal trifecta: private data, untrusted content, and exfiltration reach in the same agent. Filtering in the sandbox is one fewer place for private data to leak into a context window that later touches the outside world.
Cost: the highest of the four. You need a real sandbox with resource limits and monitoring. Anthropic says this plainly in their own post, and they're right. Ceiling: the highest of the four.
Use it when: you're already running sandboxed execution, or your bottleneck is data volume flowing between tools rather than tool count.
Pattern 4: Split the agent
What it is: Stop building one agent with every tool. Build several narrow ones, each with the tools for its job, and route between them.
The cheapest way to get a small catalog is to have a small job. An agent that only does invoice intake needs six tools and will pick correctly among them essentially always. A router in front costs one classification call.
This is when to fan out applied to tool surface instead of parallelism, and it's the pattern most small teams under-use because splitting feels like more infrastructure. It usually isn't. It's the same tools, partitioned.
Cost: low to medium. Routing logic plus per-agent config. The real cost is coordination: shared state between agents has to live somewhere deliberate, which is what Agent Memory exists for.
Use it when: your agent does three or more genuinely different jobs. Which is most of them.
What I'd actually do, in order
If you're staring at a 90-tool agent on a Monday:
- Run the audit. Two hours. Don't skip to a pattern.
- Delete. Pattern 1 until it stops yielding. This alone routinely cuts catalogs by half.
- Split. Pattern 4 along job boundaries. Cheap, and it compounds with everything else.
- Measure again. Token tax, tool-selection accuracy on a fixed eval set, cost per task. You need a before and after or you're guessing.
- Only then reach for a gateway (Pattern 2) or code execution (Pattern 3), and only for the agents that still need breadth after 2 and 4.
Steps 2 and 3 are boring and fix most of it. Steps 2 and 3 are also the ones people skip because building a retrieval gateway is more fun than deleting six tools nobody uses.
Build an eval set before you change anything: twenty or thirty representative requests with known-correct tool selections. Without it, you're guessing whether each change helped. With it, this whole exercise takes a day and you can prove the result.
Where this fits in an operator stack
Tool catalogs are infrastructure, and they rot like infrastructure. Somebody connects a server for a demo, it never gets removed, and eighteen months later nobody remembers why it's there. That's the same failure mode as an operator stack without a memory layer: the reasoning behind a configuration lives in one person's head until it doesn't.
Concretely: keep the catalog inventory versioned next to your agent config, with a one-line reason per server. When someone asks in six months why the agent talks to Linear, the answer is in the repo instead of in Slack. That's the boring discipline Operator Vault is built around, and it's the difference between an agent you can prune and one you're afraid to touch.
This also pairs with the stateless migration work most teams are doing right now anyway. You're already inventorying every MCP server you run for the 2026-07-28 transport changes. Do the tool-catalog audit in the same pass. It's the same inventory, and you'll never have a cheaper moment to cut.
The SMB version
If you bought agent tooling rather than built it, you don't control the catalog, but you can ask about it, and the answer is diagnostic.
Ask your vendor: how many tools does your agent load per request, and does it load them all up front? A vendor who knows the number and has an opinion about it has thought about reliability. A vendor who's confused by the question is shipping a demo.
The version that matters to you: agents that get slower, pricier, and less accurate as vendors add integrations aren't hitting a model limitation. They're hitting a design decision. It's fixable, and it's fair to ask when.
FAQ
How many MCP tools is too many? There's no hard cap, but degradation is measurable well before the model's context limit. Industry practice in 2026 puts the comfortable ceiling around 5–7 connected servers, and tool selection noticeably worsens somewhere in the 30–50 tool range depending on how similar the tools are to each other. The better test than counting is measuring: total your tool-definition tokens as a percentage of your context window, and check tool-selection accuracy on a fixed eval set. If tool definitions exceed roughly 5% of context, or accuracy drops when you add a server, you're past your limit regardless of the raw count.
Why does adding more MCP tools make my agent worse? Two reasons. First, every tool definition consumes context on every request (name, description, and parameter schema, typically a few hundred tokens each), so a large catalog is a tax paid before the user's question is even read. Second and more damaging, tool selection becomes a retrieval problem: the model's attention spreads across near-synonymous tools, so it picks wrong or invents tool names that blend two real ones. LiveMCPBench, testing 12 models against 527 tools across 70 servers, found retrieval errors accounted for nearly half of all task failures.
What is progressive discovery in MCP?
Progressive discovery is the pattern where an MCP server exposes a small entry point up front and reveals more of its tool catalog as the conversation narrows, instead of loading every tool definition into the model's context at connection time. The MCP maintainers named it a priority area in the roadmap published August 22, 2026, with work starting toward standardizing it in a future specification release. Until it's in the spec, teams implement the same idea themselves with a gateway that offers a search_tools call, or by exposing tools as code files the agent reads on demand.
What is a tool gateway for MCP?
A tool gateway is a layer between your agent and its MCP servers that controls which tool definitions reach the model's context. Rather than passing through every server's full catalog, it typically exposes a small number of entry points (most commonly a semantic search_tools call) and loads full schemas only for tools that match the current request. Anthropic ships this as Tool Search, using a defer_loading: true flag on tool definitions; WRITER built one for their enterprise agents; and the RAG-MCP paper describes the retrieval approach behind it, reporting more than triple the tool-selection accuracy with over 50% fewer prompt tokens.
What is code execution with MCP? Code execution with MCP means presenting MCP servers to an agent as code APIs on a filesystem rather than as tool definitions loaded into context. The agent explores the directory to find servers, reads only the tool files it needs, and writes code that calls them. It cuts context two ways: tool definitions load on demand, and intermediate results stay in the execution environment instead of round-tripping through the model. Anthropic reported a workflow dropping from 150,000 to 2,000 tokens (98.7%) using this approach. The tradeoff is that you must run a properly sandboxed execution environment with resource limits and monitoring.
Should I fix tool sprawl by building a gateway? Usually not first. The audit-then-delete pass and splitting one broad agent into several narrow ones are cheaper, faster, and fix most of the problem, and both compound with anything you build later. A gateway is real engineering: you're operating a retrieval index, keeping it synced with changing catalogs, and accepting a new class of silent failure when retrieval misses. Earn it: cut the catalog by hand, split by job, measure, and build the gateway only for the agents that still need genuine breadth afterward.
Does the stateless MCP spec fix tool sprawl?
No, and it isn't meant to. The 2026-07-28 release addressed transport and scale: removing protocol sessions, adding header-based routing, and making list results cacheable with ttlMs and cacheScope. Cacheable tool catalogs reduce redundant fetching but don't reduce what sits in the model's context on each request. Catalog size is handled separately, under the "improved primitives" priority area in the August 22, 2026 roadmap, where progressive discovery work is just beginning.
If your agent worked at six tools and got unreliable at sixty, that's a production-hardening problem, not a model problem. We run the catalog audit, build the eval set, cut and partition the tool surface, and hand you the before-and-after numbers. If you'd rather start smaller, an Operations Audit gets you a straight read on what your agent actually uses and what it's paying for.
Fact-reviewed August 29, 2026.