aipopdb

2 Dec 2026  ·  11,624 works · 1,274 news indexed

No votes yet0

News / Google previews Tool Retrieval so Gemini agents load tool schemas only when needed

Google previews Tool Retrieval so Gemini agents load tool schemas only when needed

AIPopDB Newsroom · via blog.google · · 6 min read · Comment

Read the original ↗
Image for Google previews Tool Retrieval so Gemini agents load tool schemas only when needed

Image: Google (The Keyword)

Google has opened a preview of Tool Retrieval in the Gemini API, a feature that lets an agent keep a large library of tools on standby and pull a tool's full definition into the conversation only at the moment a task calls for it. It went live on 19 November 2026 and is available only through the Interactions API, the interface Google offers for building agents. The idea is to stop every request from carrying the detailed parameter schema of every tool the agent might possibly use.

The problem Google describes is one of scale. An agent wired up to dozens or even hundreds of tools has traditionally had to send each tool's complete schema along with every request. That inflates the number of input tokens, slows responses down, and makes it harder for the model to choose the right tool as the list grows. The announcement came from Lucia Loher, a product manager on the Gemini API, and Nora Kassner, a research scientist at Google DeepMind. Their pitch is that savings arrive whenever the schemas an agent never needed to load outweigh the ones it did, and they tell developers to measure the effect on their own traffic rather than expect a fixed gain.

Switching it on takes two small changes. A developer adds a tool called tool_search to the request, then sets a defer_loading flag to true on each tool that should be held back. The model is not left blind: it still sees the name and description of every deferred tool, and only the schema stays out of its context. When a task needs one of them, the search, the loading of the schema and the function call all happen inside a single request. The steps are recorded in the interaction's step list as a tool_search_call, a tool_search_result and then the function_call itself, so a developer can see what was fetched and why.

“There's no index to build or host. Gemini runs the search on the server, so the only changes to your code are the new tool and a flag on the tools you want to defer.”

Lucia Loher and Nora Kassner, Google, in Google's announcement · blog.google ↗

The flag also works on remote MCP servers. Setting it on an mcp_server tool defers every tool that server exposes, which matters because one such connection can bring in a long list at once. Google says the server-side mode needs no index to build or host, since Gemini runs the search itself, so the only edits to existing code are the new tool and the flag on whatever should be deferred.

Developers who would rather control the lookup can run it themselves. Declaring tool_search with its execution set to client lets an application use its own registry, its own index or a permission filter to decide which tools are offered. That route costs one extra round trip for each search, but it also allows tools to show up partway through a conversation, which the server-side mode does not describe. Both Google's post and the AlphaSignal newsletter that covered the launch point to this as the option for teams with their own tool catalogues.

On compatibility and cost, the feature works with Gemini 3.6 and later, a range that takes in every Gemini 4 model. It carries no separate charge: input and output tokens are billed at the standard rates for whichever model is called, and the tool_search tool itself adds a small fixed block of input tokens. The documentation lists four supported model codes, and sending defer_loading to any other model returns a 400 error. A request may contain only one tool_search, and the feature needs the v1beta version of the API.

PPC Land, which read the documentation closely, did the arithmetic on what deferral saves. Each deferred tool still leaves a line of roughly 26 tokens in the prompt, so a library of 100 tools costs about 2,600 tokens a request. At the $1.50 per million input tokens that Gemini 4 Hydrogen charges, that comes to about four tenths of a cent, a figure the publication worked out itself and Google did not state. The comparison is with sending the full schemas every time, which is where the larger savings would come from. A side benefit, according to Google and AlphaSignal, is that deferred schemas stay out of the start of the prompt, so the cached prefix does not change from one turn to the next and caching keeps working.

Illustration of a pegboard of tools with a single wrench pulled out, standing for loading one tool on demand

Illustration of a pegboard of tools with a single wrench pulled out, standing for loading one tool on demand

Image: PPC Land

The documentation also lists several limits that are easy to miss. A schema, once loaded, cannot be unloaded again during the conversation. The complete list of tools must still be sent with every request, so the feature trims what the model reads rather than what the application transmits. A search that matches nothing returns plain text instead of an error. Tools that are named in the system instructions should not be deferred, or the next request can fail. And the server-side search is not free in compute terms: according to the documentation, it runs a second model call across the whole context.

Not every agent stands to gain. AlphaSignal's view is that a small agent with four short functions is unlikely to see any benefit, while a setup with five functions used constantly and fifty used only now and then is a much stronger case. The newsletter frames the decision around how lopsided a tool library is: the more of it sits idle on any given turn, the more deferral has to offer.

The design will look familiar to anyone who follows rival platforms. Anthropic announced its own Tool Search Tool on 24 November 2025 and said its tests showed an 85 percent cut in tokens. OpenAI added tool search alongside GPT-5.4 on 5 March 2026, reporting a 47 percent reduction in its own testing. PPC Land notes that those features use the same defer_loading flag Google has now adopted, and that Google published no result of its own. There is no benchmark, no named customer, no savings figure and no general availability date in the announcement.

About the Gemini API

The Gemini API is Google's developer interface for building apps and agents on its Gemini models. Besides a developer's own functions, it offers built-in tools such as Google Search, Google Maps and File Search.

Its tooling has grown in steps. In November 2025 Google added a managed File Search Tool, a built-in retrieval system for grounding Gemini in a developer's own files, charging only for indexing at $0.15 per million tokens. A March 2026 update let developers combine built-in tools and custom functions in one request, carry tool context across turns, and extended Maps grounding to the Gemini 3 family. In July 2026, remote MCP server support and background execution for long-running agent tasks reached the Interactions API.

Tool Retrieval also builds on earlier work on the same interface. On 7 July 2026 Google added support for remote MCP servers to the Interactions API, the capability that makes deferring an entire server's tools worth having. Because the feature is still a preview, Google warns that the API surface may change before it reaches general availability, and it has not said when that will be. For now, teams with sprawling tool libraries have a way to test whether leaving most schemas out of the prompt makes their agents cheaper, faster and more accurate, using their own traffic as the measure.

Comments