It is two in the morning, and a customer wants forty dollars back for a damaged parcel. The agent on duty knows what to do. It has a refund tool, a returns tool and three hundred others. The problem is not knowledge. Before it can answer, it must re-read the manual for every one of those tools.
That is the quiet tax every AI agent pays today. Each tool comes with a full parameter schema — a long description of what it does and what inputs it takes. Until now, developers on Google’s Gemini API had to send every schema with every request, whether the agent needed it or not.
On November 19, Google quietly changed the rules. According to the company’s developers blog, a new preview feature called Tool Retrieval lets Gemini agents keep their whole tool library on standby, loading each tool’s full definition only when the task calls for it.
The hidden tax every AI agent pays
Tool calling is how an AI agent does real work. The model itself cannot issue a refund, check a warehouse or book a flight. It calls tools — small functions written by developers — to do those jobs.
But a tool is only useful if the model understands it. That understanding comes from the tool’s schema, a structured block of text that can run to hundreds of tokens for a single tool. With ten tools, the cost is barely noticeable.
With two hundred tools, the schemas can outweigh the actual conversation. The waste compounds with every turn. An agent handling a long support chat sends its full tool list again and again, paying in tokens, latency and accuracy for tools it may never touch.
Worse, a model staring at a wall of irrelevant tool descriptions is more likely to pick the wrong one. Google’s own example makes the point plainly. A customer-service agent asked to refund forty dollars on a damaged order, labelled A-1042, should only need one tool: the one that issues refunds.
How Gemini API Tool Retrieval works
Tool Retrieval splits every tool declaration in two. The name and a short description stay in the prompt, so the model always knows what exists. The heavy parameter schema stays out, held back until the model asks for it by name.
Switching it on takes two small changes, according to Google’s announcement by Lucia Loher, a product manager on the Gemini API, and Nora Kassner, a research scientist at Google DeepMind. Developers add a tool_search tool to the request, then set defer_loading to true on the tools they want to hold back.
From there, the flow is simple. The model reads the compact list of tool names and descriptions, decides which tool fits the task, and emits a tool_search_call naming it. The API loads that tool’s full schema and hands it back, and the model makes the function call.
All of that happens inside the same request. Each deferred tool costs only about twenty-six tokens while it waits, according to early analysis of Google’s documentation. A library of hundreds of tools becomes a one-line menu the model can scan at a glance.
Server-side or client-side: two ways to retrieve
Google ships two modes, and the default one does the heavy lifting for you. In server-side retrieval, Gemini searches for the right tool on Google’s own servers, loads the schema and resolves the call without any extra round trip.
Client-side retrieval hands the lookup back to the developer. The model still emits its tool_search_call, but the application performs the search itself and returns the schema. That costs an extra round trip per search, and puts the bookkeeping on the developer’s shoulders.
For most builders, the server-side default is the obvious choice. There is no index to build and no search service to host. The client-side mode exists for teams that need to control exactly how tools are found.
Tool Retrieval also works with remote MCP servers, the open protocol that lets agents reach tools hosted elsewhere. A developer can defer an entire MCP server with a single flag, and execution still happens remotely through the Gemini API’s MCP support.
What Gemini API Tool Retrieval costs — and what Google won’t say
There is no separate charge for the feature. Tokens are billed at the standard input and output rates of whichever model is called. Enabling tool_search adds a small fixed block of input tokens.
Each schema the model loads is billed as input for the rest of the conversation, much like a tool declared up front. What Google has not published is a savings figure — and that silence matters, because the savings depend on the shape of your agent.
Anthropic, which shipped a near-identical tool-search design in November 2025, claims token savings of around eighty-five percent in its tests. OpenAI, which followed in March 2026, reports forty-seven percent. Google offers no comparable number, only the mechanism and the invitation to measure it yourself.
An agent with twenty tools and one favourite will save little. An agent with five hundred tools, most of them idle on any given turn, stands to save a great deal. Google’s documentation also notes a subtle interaction with prefix caching: deferred schemas stay out of the prompt’s start, so the cached prefix stays stable.
Google is late — and it knows it
There is no polite way to say it: Google arrived last. Anthropic’s version has been live for a year. OpenAI’s has been in its Responses API since March. The design Google shipped — a tool_search tool, a defer_loading flag, the same names — closely matches both rivals.
Being late is not the same as being wrong. Gemini agents needed this feature, and the Gemini 4 family, which launched weeks ago with a focus on sustained agentic work, gives it a natural home. Tool Retrieval works with Gemini 3.6 and later models, including all Gemini 4 models.
Google’s own sample code runs on a model identified as Gemini 4 Hydrogen. The catch is where the feature runs. It lives only in the Interactions API, Google’s newer stateful interface for building agents, which entered public beta in December 2025.
Developers still using the older generateContent method will need to move before they can try it. Only one tool_search tool is allowed per request, and the preview runs on the v1beta version of the API.
What Tool Retrieval means for agent builders
The immediate winners are teams whose agents already feel bloated. Customer-support bots, coding assistants and enterprise agents that juggle dozens of internal systems are the obvious candidates. A support agent that can see a refund tool without paying for the other two hundred is cheaper to run and less likely to grab the wrong one.
The deeper change is architectural. Until now, the size of an agent’s tool library was capped by the context window and the budget. Tool Retrieval turns the library into a managed resource instead of a fixed cost.
Developers can register far more tools than any single task needs, and let the model pull in only what matters. That is the same bet Anthropic and OpenAI already made. The pattern is now standard across the three biggest agent platforms.
What happens next
For now, Tool Retrieval is a preview, and previews come with rough edges. Schemas loaded during a session cannot be unloaded mid-session. Developers must resend the complete tools array with every request, because tool declarations are not persisted.
In stateless mode, dropping a tool_search_call or its signature can trigger a four-hundred error. Deferring tools can also shrink a prompt below the minimum size for caching. Google has said nothing about when the feature reaches general availability.
There is no benchmark, no customer name and no promised savings figure attached to the launch. Developers can try it now through the Interactions API and leave feedback on the Gemini developer Discord.
The honest verdict is that this is a catch-up feature, not a breakthrough — but it is a catch-up that had to happen. Agents keep growing more tools, and stuffing every manual into every prompt was never going to scale. Google has now removed that ceiling.



