Search, Then Call: A Practical Guide to Progressive Tool Discovery
What happens when your agent has hundreds of tools but only needs one? A simple issue lookup shows how to find the right tool without loading the whole catalog.
You ask an assistant to show you five open issues. Before it can do that, you hand it instructions for deploying an app, updating a customer record, and sending a calendar invite. It isn't going to use any of those instructions. But if you put the entire tool catalog in the model's context, it gets all of them anyway.
A handful of tool definitions is easy enough to pass along up front. The part I wanted to understand was what happens when that handful becomes hundreds. Does the model really need the whole catalog just to find the one tool it wants?
This is where progressive tool discovery comes in. You start the model with a way to search for tools. When it finds a relevant one, you give it the instructions for using that tool. Then it can make the call.
Keep the toolbox near the workbench
Think of the model's context as a workbench. If you're fixing a loose cabinet hinge, you probably want a screwdriver on the bench. You don't need to dump out every socket and drill bit you own just in case. Leave the toolbox nearby and grab what you need as you go.
A tool definition is a bit like the label and instructions for one of those tools. It gives the model a name, a description, and a schema that says which arguments it takes. Those details help the model use it correctly. The question is when to bring them onto the workbench.
In an MCP app, the host can use tools/list to get the catalog from the server. It can keep and search that catalog without putting it all in the model's context. What the app knows about and what the model sees don't have to be the same list. That's the bit that made this click for me.
Let's find one tool
Say you ask, “Show me up to five high-priority open issues in the website project.” In our example, the only tool the model starts with is search_tools. It might ask for this:
search_tools("list open issues by project and priority")That search finds list_issues. It hasn't actually looked up an issue yet. The host makes the matching tool callable and gives the model its definition: filter by project, status, and priority, and optionally limit the result. With that schema in hand, the model can now make a normal tool call. Here's the payload in simplified form:
{
"name": "list_issues",
"arguments": {
"project": "website",
"status": "open",
"priority": "high",
"limit": 5
}
}The host sends the MCP tools/call request, the issue tracker returns the matching issues, and the model shows you their titles. Not once did it need the schema for sending a calendar invite. That schema can sit in the toolbox, entirely unbothered. 😄
Search the catalog → Load the matching schema → Call the toolThe search step is an implementation choice, not a new MCP method. For instance, Anthropic's Tool Search Tool lets developers defer tool definitions until the model finds them. The name search_tools above is just illustrative.
What if the server only exposes search and execute?
In the example above, the host hands the model a new callable tool after search. Another design keeps the exposed tool list fixed: the model calls search_tools to find list_issues and get its input schema, then passes that name and its arguments to a generic execute tool:
{
"name": "execute",
"arguments": {
"tool": "list_issues",
"arguments": {
"project": "website",
"status": "open",
"priority": "high",
"limit": 5
}
}
}The outer MCP call names execute. The server uses the inner name to look up an operation it knows about, checks that the caller has access and that the arguments fit its schema, then runs it. The model still learns how to use list_issues only when it needs it; it just doesn't get list_issues as a new top-level tool. Discovery works the same way from the model's point of view. The difference is where the call gets routed.
Try the same lookup both ways
Search for the tool, then run the call. Try switching between Direct call and Via execute. The issue filters don't change. Look at the outer name field to see what does.
“Show me up to five high-priority open issues in the website project.”
Tool catalog
- deploy_app
- get_issue
- list_issues
- send_calendar_invite
- update_customer
What the model sees
search_tools
None of the catalog definitions are loaded yet.
Step 1 of 3: Ready to search the catalog.
The search has to be good enough
There is a cost here: you've added a step that can be slow or pick the wrong thing. Imagine the search returning get_issue instead of list_issues. It sounds close, but it expects an issue ID you don't have. Good descriptions help. I'd give the model enough information to tell those two apart, and a way to try a different query if neither result fits. I wouldn't make it guess at a tool name or invent arguments.
I also wouldn't defer everything. If almost every request starts with list_issues, leave it available. If you only have half a dozen tools, start with all six. The place I'd try discovery first is a larger catalog where any one request normally touches a small slice. Check whether it finds the right tools, then compare how many tokens and model turns a typical request takes before and after. Fewer tool definitions aren't much of a win if the model spends three turns searching for the same screwdriver.
One other thing worth keeping straight: discovery is about what the model sees, not what it's allowed to do. The server still has to check permissions when the tool runs. Leaving a tool out of the model's initial context doesn't revoke anyone's access to it.
Start with the tools you actually reach for
If you're building your first agent, hand it a few tools and see which ones it uses. When the list starts growing, try moving one group of rarely used tools behind search. Then watch what the model asks for when it needs one. That's the part I enjoy about this pattern: you can start with a tiny workbench, make it a little bigger when you need to, and still know what everything on it is for.