A Tale of 2 Tools: An MCP Server That Grows Without Adding Tools
Many MCP servers register one tool per API operation, and clients that load every definition upfront pay for all of them before the agent starts. A Fused MCP server always shows two: search_docs to find what it can do, and execute to do it.
Plenty of MCP servers for big APIs expose one tool per operation. Connect an agent to one and look at its tool list: create issue, get issue, update issue, list transitions, add comment, and on through a few hundred more. Connect a second service built the same way and its whole set joins the list.
Every one of those tools has a name, a description and an input schema. A client that loads definitions upfront puts all of them into the model's context before the agent has done anything, and the model then has to pick the right one from a long list of near neighbours. More tools means more tokens spent on definitions, more chances to pick getIssues when you meant searchIssues, and less room left for the task itself. Some clients now load definitions selectively or let the model search for them, which helps where it's available.
A Fused MCP server moves discovery into the server instead. However many services or operations it can reach, the agent sees two tools: search_docs and execute. The two tools are the visible part. The point is that finding a capability and using it are separate steps, so definitions arrive when the agent needs them rather than all at once.
One tool to find, one tool to act
search_docs is how the agent finds out what it can do. It searches only the services on this server and returns guidance for the task plus the exact input each matching capability needs. It works like a skill the agent loads when it needs it, instead of a manual it has to carry the whole time. Those definitions still cost tokens when they arrive. The difference is that only the matching ones do.
execute is how the agent does it. It takes a short piece of TypeScript that calls the operations search_docs returned, or runs an attached Unified App. Engine checks each call is allowed, attaches the right credential, and sends the agent the result. The code can be a single call or a few in a row; the section on where execute runs covers the second case.
Ask an agent with access to Stripe to find a customer's latest invoice, and the exchange looks like this:
sequenceDiagram
accTitle: An agent using search_docs then execute
accDescr: The agent asks search_docs how to find an invoice and gets back the matching operation and its inputs. It then calls execute with a short piece of code that calls that operation. Engine checks access, adds the credential, calls Stripe and returns the result.
participant A as Agent
participant F as Fused MCP server
participant S as Stripe
A->>F: search_docs "find a customer's latest invoice"
F-->>A: Matching operation and its inputs
A->>F: execute with code calling that operation
F->>S: Call with the stored credential
S-->>F: Invoice
F-->>A: Result
The agent never sees the Stripe key. It sees the Stripe definitions its search returned, not the rest of Stripe's API, and nothing from services the server doesn't include.
What the agent gets from this
A tool list that stays short. It's two entries long whether the server reaches one service or ten. Definitions come back with search results for the task in hand, so the upfront cost stays flat as the server grows. Each search adds its results to the conversation, so how much context you save depends on how much of the catalogue a task touches.
Fewer options to choose between. The agent doesn't have to tell apart a few hundred tool names. It describes what it's trying to do, and search_docs returns the few capabilities that fit, with the parameters spelled out. A smaller choice is easier to make, though it still depends on search returning the right few.
The same pattern everywhere. Every Fused MCP server works the same way. An agent, or a prompt you've written for one, doesn't need to learn a new tool vocabulary for each service you add.
What you get from this
You can grow a server without changing its interface. Adding a service or an operation adds to what search_docs can find. It doesn't add tools, so clients don't need reconfiguring. The interface stays stable, but behaviour can still shift: a bigger catalogue gives search more to sift through, and instructions that point the agent at particular workflows may need a line when you add one.
1. Start small
Create a server with only the operations the job needs:
fused-cli init support-agent --mcp \
--description 'Update support issues and notify the owning team in Slack.' \
--service 'jira=issueUpdate;slack=chatPostMessage'
The agent sees search_docs and execute. Between them they can reach two operations.
2. Add a service
Later the agent needs to look up which channel to post in:
fused-cli extend support-agent --service 'slack=conversationsList'
The server moves to a new version. The agent still sees the same two tools. search_docs can now find a third operation.
3. Hand over a process
For work with a fixed order, attach a Unified App. search_docs returns the app and its inputs, and execute runs it. The agent decides when to run it; your reviewed code decides the steps.
The description stays short. A server's description is a sentence or three on what it helps an agent do, shown when a client connects. Operation IDs stay out of it, because the agent finds them through search_docs. See Deploy an MCP server.
Scope works the same way. The server sets the most an agent could ever reach. A token can narrow that to an exact list of operations, and anything outside the list doesn't come up in search_docs at all. If the agent tries to call it anyway, execute is refused before anything reaches the provider. Letting an agent act as you walks through that setup.
Every call leaves a record. Each execute records the operation, the credential context it ran under, how long the provider took and the full response that came back. When you want to know what an agent did, you read the record instead of asking the agent. Because responses are kept in full, give the record the same care as the data the server can reach.
Where execute runs
execute doesn't run on your agent's machine or in the provider's. It runs in Engine, in a sandbox with no filesystem and no open network access. Provider calls go out only through Engine, which adds credentials as each call leaves and never hands them back to the code or the agent.
Because its input is code, one execute call can do more than one request. It can make a few calls in a row and shape the result, such as listing open issues and returning only the ones assigned to you, so the agent gets back what it asked for rather than every field of every response. Each call inside it is still checked against the server's scope.
When the same sequence keeps coming up, move it into a Unified App. Then it's reviewed code with one name, and your applications can call it as well as your agents.
The trade-offs
Two tools isn't free, and it's worth knowing what you give up.
- Approval prompts become coarse. Some clients ask you to approve each tool. With two tools, approving
executecovers everything the server allows, so a short tool list can still carry a lot of authority. Choose what goes on a server with that in mind, and use a token's allow list to narrow a session that runs unattended. - There's an extra round trip. Before the agent can use a capability, it spends a call finding it.
- Search has to find the right capability. If
search_docsreturns the wrong operation, or misses the right one, the agent works with what it got. - Searching first is an instruction, not a guarantee. Models often search first without being told. If yours guesses instead, add a line to its instructions: search first, then execute what search returns. That makes guessing less likely but doesn't stop it. Scope still holds, so a guessed operation outside the allowed list is refused, but a guessed input to an allowed operation is only as good as the guess.
Try it
- Deploy an MCP server with one or two operations.
- Connect your MCP client to its stable URL. It should list
search_docsandexecute. - Ask the agent for something the server can do, and watch it search first and then act.
Join the conversation.
A good story is the beginning of a conversation. Leave a thoughtful note.
What does this really mean?