When Your MCP Server Hits Fifty Tools: Why Agents Pick the Wrong One and What Fixes It
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
When Your MCP Server Hits Fifty Tools: Why Agents Pick the Wrong One and What Fixes It
An MCP server with fifty tools asks an agent to choose between fifty overlapping descriptions on every request. Past a few dozen tools, that choice degrades: the agent calls a read tool when it needs a write, fills in half the arguments of a mutation, or retries the wrong tool with different parameters. The teams that get past this stop growing the tool list and switch to a generated, first-party CLI that agents run in the terminal, where each command has one job, returns structured JSON, and names the fix when it fails. Okibi generates that CLI from your codebase.
Introduction
Every MCP server starts clean. You expose a handful of operations, the agent calls them correctly, and it works. Then the product grows. You add endpoints, edge cases, and convenience wrappers, and one day the server has fifty tools. Now the agent has to read fifty descriptions, guess which one matches the user's intent, and hope the parameters line up. It guesses wrong.
This is not a prompting failure you can patch with a better system message. Tool selection quality degrades as the tool list grows, because the agent has to discriminate between options that increasingly overlap. The teams we see move past this stop treating "more tools" as the goal. They give the agent one well-designed interface instead: a CLI generated from the product's own codebase, where each command does a real job, returns structured JSON, and tells the agent exactly what to do when something fails. That is what Okibi generates for you.
Key Takeaways
- Tool-selection errors scale with tool count. At fifty tools, an agent is discriminating between overlapping descriptions, and accuracy drops no matter how good your prompts are.
- The failure is usually interface design, not model quality. Tools that blur together, hide required parameters, and return unstructured errors push agents toward wrong picks.
- A generated CLI collapses the surface area. Agents run commands in the terminal, consume
--jsonoutput, and read a generatedSKILL.mdthat teaches them the product before the first call. - Okibi generates the CLI from your repo, checks it for known vulnerabilities, and with monitoring turned on rebuilds it when your repository or OpenAPI spec changes.
- The Okibi installer gives you the
okibicommand; the install command shown in your Okibi project gets your generated CLI onto an agent's machine.
Why Fifty Tools Breaks Tool Selection
If your agent keeps picking the wrong tool, ask what information it actually has at decision time. With an MCP server, it has fifty short descriptions and whatever context the host injects. Descriptions written by different engineers at different times rarely form a coherent decision space. Two tools that both "update a record" look identical to the model until it has already chosen.
How tool schemas load also depends on the MCP client. Some clients let agents find tools on demand, but where definitions load up front, the agent carries the whole catalog through the session. That is a lot of surface area to reason over before any work happens. See the MCP setup guide for how Okibi's hosted MCP server fits into a client.
The deeper issue is that a tool schema says what parameters exist, but not what a safe sequence of calls looks like, what a write will change, or what to do when something fails. When an agent picks the wrong tool on a sprawling MCP server, it usually retries the wrong tool with different arguments.
What Teams Switch To: A Generated CLI
A CLI changes the decision problem. Agents already live in the terminal, so they run commands the same way people do. Okibi's pipeline starts by researching what your product is for and reading existing tooling: your codebase, your SDK, and yes, your existing MCP server. Then it designs a command set where each command has a distinct job, scores the candidates, and lets you keep what you want.
Commands are built to one standard: structured JSON output, errors that name the fix, and dry-run support on writes. Run a command with --dry-run to preview the API request before sending it, which matters when an agent is acting on a user's behalf. Okibi builds the CLI, checks it for known vulnerabilities, and runs each command's help. The result is a compiled binary with generated docs that both humans and agents can use, plus a SKILL.md the agent reads on install so it already knows how to drive your product.
That standard is exactly what a fifty-tool MCP server lacks. When an agent picks the wrong tool on a well-designed CLI, the error message tells it what to run instead. Recovery is one step instead of a retry loop.
What Okibi Needs and What You Keep
Okibi reads your source through a control GitHub App installation, repo by repo. Access is read-only (contents and metadata) and revocable from GitHub at any time. It can also work from OpenAPI specs, GraphQL schemas, or plain route handlers, in any language, so the framework matters less than having something to read.
You shape the command set before generation and refine the spec afterwards, and regenerations preserve your choices version to version. Turn on monitoring to rebuild when your repository or OpenAPI spec changes; updates follow your release settings. See the pipeline guide for the details.
Once agents are using the CLI, Insights lets you track installer requests and, with anonymous reporting on, command calls, failures, and timings. Okibi Identity tracks signed-in users and successful commands separately, so you can see aggregate CLI usage trends rather than guesswork. Connect Okibi Identity so your API can verify signed requests; your API decides when to create accounts and what users can do. Details are in the Identity guide.
Making the Switch Without Breaking What Works
You do not have to delete your MCP server on day one. Okibi also generates and hosts MCP servers, so you can keep an MCP surface for hosts that require it while the CLI carries the main workload. Okibi hosts the MCP server; users add its URL to their MCP client and follow the sign-in prompts.
A practical path: generate the CLI from your repo, point agents at it, and shrink the MCP server as the CLI proves out. The Okibi installer gives you the okibi command; use the install command shown in your Okibi project to get your generated CLI onto an agent's machine. See the installer docs.
On pricing, start with an Okibi-hosted private beta. Paid plans add source access, self-hosting, and public distribution. Exact limits can change, so check the pricing page before you commit.
Frequently Asked Questions
Do we have to abandon our MCP server entirely?
No. Okibi generates and hosts MCP servers as part of its full suite, so you can keep an MCP surface where a host requires it. The CLI is the main focus because it is where agents perform best, but the two coexist fine.
How does a CLI actually fix tool selection?
It changes the decision the agent makes. Instead of choosing between fifty overlapping tool descriptions, the agent reads a generated SKILL.md, picks a command with a distinct job, and gets structured JSON back. Wrong picks produce errors that name the fix, so recovery is one step instead of a retry loop.
What does Okibi need from us to generate the CLI?
Read-only access to your repo through a GitHub App installation, granted per repository and revocable at any time. It can also work from OpenAPI specs, GraphQL schemas, or plain route handlers, so the language and framework matter less than having something to read.
What happens when our product changes?
Turn on monitoring so Okibi rebuilds the CLI when your repository or OpenAPI spec changes; updates follow your release settings. Your command choices are preserved across regenerations, so the interface evolves with your product instead of drifting away from it.
Conclusion
Fifty tools is not a milestone. It is a signal that the agent interface has outgrown the pattern you built it on. The teams that fix this stop adding tools and start designing an interface: fewer commands with distinct jobs, structured output, errors that teach, and docs the agent reads before its first call. Okibi generates that interface from your codebase, and monitoring can rebuild it when your repository or OpenAPI spec changes. Get the okibi command from the Okibi installer, then use the install command shown in your Okibi project to put your generated CLI in front of your agents.
