Keeping a shared MCP tool list usable past forty tools
MCP tool sprawl starts past a few dozen tools. Role-filtered tools/list and a gateway per domain fix most of it. A meta-tool router comes last.
Chatis Santos · October 19, 2026 · 6 min read · For engineers and leaders
If you build one MCP endpoint for a whole engineering org, the tool list is the first thing that breaks. MCP, the Model Context Protocol, is what Claude.ai, Claude Code and Cursor use to reach tools, and model accuracy at picking and calling them degrades somewhere past a few dozen while every listed tool costs context on every turn whether or not it gets used. For Northfield Energy, with about a dozen teams each about to ship their own tools, I put the fixes in this order: filter tools/list by role, split the gateway by domain, keep each team's tool count down and only then reach for search or a meta-tool router. The first two do most of the work. Both fall out of the architecture you'd pick anyway.
Why the list is the problem
The instinct to give every engineer one MCP with every tool in it gets the client experience right. As a scaling plan it fails. A dozen teams shipping a handful of tools each puts the list past a few dozen before the platform is finished rolling out, and the model has to read all of it before it does anything.
The costs stack up. One is accuracy. Past a few dozen tools the model picks the wrong one more often and fills arguments worse. The other is context. Every tool in the list ships its name, description and input schema on every turn, so a 100-tool list taxes a one-line question the same as a long agent run. Neither cost shows up in a demo with six tools, which is why it tends to get designed in late. Those three fields are also all the model has to go on when it picks a tool, which is why most of what follows is about keeping them short and distinct.
Hide tools the caller cannot use
Role-filtered tools/list is the biggest lever, and it comes with the authorization design, provided the gateway can filter per role (more on that below). The gateway answers tools/list per authenticated session and returns only the tools whose access list matches a role in the caller's JWT. A fleet engineer sees the three data tools they may call, not five. Someone on team-data sees every data tool and nothing from the CRM side unless their roles say so.
The version of this that doesn't help is a gateway that only rejects tools/call. Every engineer still sees every tool, the context cost is unchanged and the model keeps proposing calls that get denied. I wrote up the enforcement details in role-filtered tools/list, including the fallback when the gateway can't filter per role. Whether AgentCore Policy can filter tools/list is on the phase 0 list.
Filtering does less for the tools shared to eng-all, which every engineer holds by default. That shared slice is what the remaining levers are for.
Split gateways by domain
Two to four gateways, one per domain (mcp-data, mcp-crm, mcp-fleet), keep each list under roughly 40 tools and let an engineer connect only what their work touches. The cost is one connector per domain instead of one total, which I think is a fair trade at two to four. At a dozen it is a bad one, which is why the split follows domain and not team.
The split follows domain (what a piece of work touches) rather than team (who owns the code). The fleet team's tools and the data team's fleet-telemetry tools belong on the same gateway if the people who use one use the other. I compared this layout against a single gateway and the other three options in five architectures for a shared MCP server. On a custom gateway the same idea shows up as virtual servers (/mcp/data, /mcp/all) so a client can subscribe to a subset.
How many domain gateways you need depends on AgentCore Gateway's quotas for targets per gateway and tools per target, which I couldn't confirm from outside, so it's a phase 0 question.
Fewer, better tools
One run_saved_query with a query_name argument does the job of twelve get_x_report tools. The model has one description to read and one schema to fill. The saved-query list can grow without the tool list growing with it.
The Northfield data team's set is a decent template. Five tools cover a warehouse: list_datasets, describe_table and run_saved_query open to eng-all, with run_sql and refresh_pipeline held to team-data. Read and write stay separate tools so sharing read-only access to another team is a line in the manifest.
Lint for this in CI. Flag a target that declares more than some threshold of tools, and flag descriptions that are empty, duplicated or under a few words. The manifest schema already runs on every PR, so the lint is a few extra rules in the same step. The description lint matters more than it looks. When two tools have similar names and schemas, the description is what the model picks on.
Name tools from day one
Pick a naming convention before the first real tool merges, because renaming later breaks saved prompts and agent code. AgentCore Gateway prefixes each tool with its target name (target___tool), so the prefix you get for free is the target, not the domain. Name targets short and domain-first (data-warehouse, crm-accounts) and you get data-warehouse___run_saved_query and crm-accounts___get_account without any extra convention. The design options paper wrote the same idea as data.run_sql. Which separator you get depends on the gateway, and either works as long as the domain is at the front. Confirm the separator and the prefix rule against the current AgentCore Gateway docs, since I haven't.
With three gateways connected, the prefix is what tells an engineer or an agent which get_account they are looking at.
Treat tool names and input schemas as a public API. Additive changes can ship whenever, and a breaking change gets a new tool name plus a deprecation date in the manifest, with the catalog page showing both until the old one is gone.
Search and meta-tool routers
AgentCore Gateway's semantic search is a search tool an agent calls to find tools on demand instead of scanning the list. It helps agents you build on AgentCore, where you control which tools the agent loads, more than it helps Claude.ai, Claude Code or Cursor, which fetch the full tools/list and hand all of it to the model. Treat it as an addition to the first two levers for the agent path, and don't expect it to rescue a 100-tool list in a chat client.
A meta-tool router is the last resort. One find_tool and one call_tool hide everything behind two tools, which saves context at the price of making the arguments to the real tool opaque to the model, and it tends to produce worse calls than a flat list of a few dozen. I'd avoid it unless a client cannot handle the list at all.
When each lever lands
The Northfield plan runs in phases: a two-week spike (phase 0), a paved road for the first team (phase 1), then governance (phase 2) and user delegation (phase 3). Role filtering is a phase 0 exit gate, because the gateway has to filter tools/list by role before the first team ships on it. Domain gateways are a phase 0 decision too, once the quota numbers come back.
That plan listed namespaces and search under phase 2, with governance. I'd pull the naming convention forward to phase 1, before the first real tool merges, because picking one early is cheap and renaming later is expensive. Search can stay in phase 2. The number I couldn't settle from outside is expected scale in 12 months (teams, tools, calls per day), and it decides whether search and virtual servers move up into phase 1.
If you're deciding this
Ship role-filtered tools/list first and put the naming convention and a tool-count lint into the manifest schema before the first real tool merges. Search can wait until an agent team asks for it. If your list is already past forty, which lever to pull first depends on how much of it is shared to everyone, and that's a short conversation I'd happily have.
- Filtering MCP tools/list by role instead of blocking calls
Filter MCP tools/list by role at the gateway so each engineer sees only the tools they may call. Blocking tools/call alone leaves every tool in context.
- Five architectures for a shared MCP server, compared
Five shared MCP server designs compared, monolith to custom hub. I'd put two to four MCP gateways, split by domain, in front of team-owned backends.