If you have ever built an AI agent with more than a handful of tools, you have met the same quiet problem I have: every tool you give the agent gets pasted into every single prompt. Twenty tools, fifty tools, a hundred tools — each one arrives with its full parameter schema, whether the agent uses it or not. A few dozen function declarations can eat tens of thousands of tokens on every request, and you pay for all of them. On 19 November 2026, Google launched the fix in preview in the Gemini API. It is called Tool Retrieval, and it does something beautifully simple: it keeps your tool library on standby and loads each tool's full definition only when the task actually needs it. Here is how it works, what it costs, and the honest catch Google left out of the headline.
The problem it solves
Think of an agent you built for a small business — one that can check orders, issue refunds, look up stock, book appointments, and send invoices. Today, every time a customer asks a simple question, the model receives the full instructions for all of those tools. Most of them sit idle. Google names three costs: inflated input token counts, added latency, and worse tool selection as the candidate list grows, because the model has more options to confuse. For a freelancer in Pakistan paying per token in rupees, the first cost is the one that stings: you are paying for tools your agent never touches.
Two changes to turn it on
Turning it on takes two changes to your request, and both are small. First, add a tool_search tool to the tools array of your Interactions API request. Exactly one tool_search tool is allowed per request. Second, set defer_loading to true on each tool you want to hold back. That is the whole setup. The tool's name and a short description stay in the prompt, so the model still knows the tool exists; the heavy parameter schema stays out until the model asks for it. When it does, the schema loads and the agent carries on as normal. Google's own example is a customer-service agent: a customer reports order A-1042 arrived damaged and asks for a 40-dollar refund, and the agent loads the issue_refund tool only at that moment.
Two practical details from Google's own guidance. Keep your most-used tools loaded up front and defer the long tail — the tools that are useful once in a while but not on most turns. And you can inspect what happened afterwards: the tool_search_call, tool_search_result and function_call steps all appear in interaction.steps, so when a call goes wrong you can see exactly which tools the model considered.
What it costs, and what it does not do
Tool Retrieval has no separate charge. Input and output tokens are billed at the standard rates for the model you call. Turning on tool_search adds a small fixed block of input tokens, and each schema the model loads is billed as input for the rest of the conversation, exactly like a tool declared up front. So the saving is real but it is not magic: if your agent ends up loading most of its tools on most turns, you save little. The win comes when your agent has a big library and only touches a few tools per conversation.
Now the honest catch. Google has published no measured savings figures, no latency numbers, and no tool-selection accuracy benchmarks for this feature. Its own advice is to measure it against your own traffic. That is fair, but it means you should not promise a client a percentage saving until you have run your own numbers. It also works only in the Interactions API, only on the v1beta version, and only with Gemini 3.6 and later models, including all Gemini 4 models. The older generateContent endpoint does not support it. And it is a preview, so the API surface can change before general availability — pin your model version and keep a fallback in place if you build anything serious on it.
Who benefits most
This is a feature for builders, not for casual chat users. If you are a freelancer building agents for clients — a support agent with 30 tools, a shop assistant that can check stock, orders, refunds and shipping — this can cut your token bill noticeably, because most conversations touch only two or three tools. If your agent has fewer than 20 tools, Google's own advice is that static loading is probably fine, and the saving is not worth the extra moving parts. I wrote recently about Gemini 4 Neon, the model that sits in the middle of Google's Gemini 4 family, and about how to plug Tencent's Hy4 Flash into your AI tools. Tool Retrieval pairs naturally with both: a cheap model plus a lean prompt is how a small builder keeps costs down.
One more thing worth knowing: Google is not first here. Anthropic shipped a near-identical Tool Search Tool in November 2025, and OpenAI shipped tool search in March 2026. Google's version arrives a year after Anthropic's, down to the same flag name. That is not a criticism — it means the pattern is proven, and if you already use one of the others, Google's version will feel familiar.
Bottom line
Tool Retrieval is a small, practical feature with a clear use: agents with long tool catalogues. Two changes — add tool_search, set defer_loading to true — and your agent stops paying for tools it never calls. There is no extra fee, but there are no promised savings either, and it only runs in the Interactions API on Gemini 3.6 and later. Try it on one agent with a big tool library, measure the token difference over a week of real traffic, and let your own numbers decide whether it stays.
Sources: Google, Gemini API tool retrieval for efficient agent scaling, by Lucia Loher and Nora Kassner, 19 November 2026, blog.google.
