I have 46 MCP servers configured in Claude Code. Twenty-five are connected right now: Linear, Vercel, Slack, Gmail, Figma, my memory in Engram, the code graph. Together they add up to hundreds of tools.
If the agent loaded every tool's full definition at the start, it would eat a good part of the context window before reading my first sentence. It doesn't. And this week Google confirmed this is the way forward: on November 19 it added Tool Retrieval to the Gemini API.
What Google shipped
Tool Retrieval is in preview in the Interactions API (v1beta). The idea is simple: you declare all your tools as usual, but mark the ones that can wait with defer_loading: true and add a search tool.
[
{ "type": "tool_search" },
{
"type": "function",
"name": "save_issue",
"description": "Creates or updates an issue in Linear.",
"parameters": {
"type": "object",
"properties": { "title": { "type": "string" } }
},
"defer_loading": true
}
]According to its documentation, a deferred tool only takes up its name and one short sentence of description. The parameter schema enters the context, and is billed, only when the model asks for it. Search has no separate charge, although each server-side search is one more model call.
It works with the Gemini 4 family and with Gemini 3.8 and 3.6 Flash. It does not work with the classic generateContent endpoint.
Anthropic did it a year ago
This is not new. Anthropic published tool search on November 24, 2025, almost exactly a year earlier, and today it is documented as stable. The shape is the same: one flag per tool and a tool that searches.
[
{
"type": "tool_search_tool_regex_20251119",
"name": "tool_search_tool_regex"
},
{
"name": "save_issue",
"description": "Creates or updates an issue in Linear.",
"input_schema": {
"type": "object",
"properties": { "title": { "type": "string" } }
},
"defer_loading": true
}
]There are two variants: one searches with regular expressions, the other with BM25 in natural language. Both look at the name, the description and the arguments of each tool. Claude Code uses it under the hood with MCP servers: in my sessions, the Vercel or Linear tools show up as "deferred" until the agent needs them.
Google arriving at the same design, with the same flag name, is the signal. Loading tools on demand is no longer one vendor's trick.
How much a toolbox weighs
Anthropic gives a reference figure: five servers (GitHub, Slack, Sentry, Grafana and Splunk) add up to about 55K tokens in definitions alone, and tool search typically reduces that by over 85%. It is not only money: according to the same docs, accuracy at picking a tool degrades once there are 30 to 50 available.
Run the numbers for your own setup:
91% less context spent on tools.
The numbers in the demo are an estimate: 25 tokens per deferred tool (name and short sentence) and whatever average schema size you pick. Your servers may have longer or shorter definitions.
If you build an MCP server, the description is the interface
This is the part that affects me most as a designer who builds tools for agents. With everything loaded, the model saw the whole schema and worked out what each tool was for. With on-demand loading, it has to find the tool first, and it finds it by name and description.
A design system tool with a vague description does not show up when the agent searches for "button" or "props". It is like an undocumented component in Storybook: it exists, but nobody uses it.
"Gets a component."
"Source and props of a design system component (Button, Card, Dialog…) by name. Use it before writing UI that must match the system."
What I now apply to the servers I write:
- The name states the action and the object:
get_component_sourcebeatsget_component. - The first sentence stands on its own. Google keeps only one short sentence of each deferred tool; if the important one is the third, it never gets there.
- Use the words the searcher will use: the components, "props", "tokens", "dark mode".
- Keep the 3 to 5 you always use loaded. That is Anthropic's recommendation, and it makes sense: a search on every step is wasted latency.
When it is not worth it
Not every agent needs this. Both docs agree that with few tools it is better to load them all: Google draws the line at fewer than 20 stable tools, and Anthropic recommends tool search from 10 up.
Google also offers search in your own code ("execution": "client") for when tools depend on who is using the agent. And there is a practical detail in its preview: you have to resend the full tool list on every request, because tools are not stored between turns.
My takeaway: my 46 servers are not the problem they looked like. The problem is that many of them have descriptions written for people who already knew the tool. From now on I write them for someone who is searching for it.