Google's Gemini Tool Retrieval Lets Agents Use Hundreds of Tools Without the Token Bloat

Google launched Gemini Tool Retrieval in preview on 19 November 2026, in the Gemini Interactions API, letting an AI agent use hundreds of tools without sending every tool's full description in every prompt. Instead, the agent keeps its tools on standby and loads each tool's full parameter schema only when it actually needs that tool. Google says the feature is designed for efficient agent scaling, with no general availability date announced.

The problem: every schema, in every prompt

An AI agent works by calling tools — functions that let it search the web, read a file, query a database, send a message or take another concrete action. To call a tool correctly, the model needs the tool's schema, a structured description of its name, its purpose and each parameter it expects. In a conventional setup, every tool's full schema is sent to the model in every prompt, so the model can choose the right tool and fill in its parameters correctly. That works well with a handful of tools, but it breaks down as the list grows.

Google describes the problem in its own words: sending every schema "inflates input token counts, adds latency, and lowers tool-selection accuracy as the candidate list grows" when an agent connects to dozens or hundreds of tools. Input tokens are the units billed when a prompt is sent, so a long list makes each request more expensive; a longer prompt also takes longer to process, and a very long list makes choosing the right tool harder.

How Tool Retrieval works

Tool Retrieval changes the order of operations. A developer adds a tool called tool_search to the request, and sets defer_loading to true on the tools that should be held back. The model still sees each deferred tool's name and description, so it knows what tools exist, but it does not receive the detailed parameter list for every tool at once. When the model decides it needs a particular tool, it asks for that tool by name, the API loads the full schema, and the model then calls the function — all inside the same request.

That sequence is visible in interaction.steps, the record of what happened inside a single interaction: a tool_search_call, when the model asks for a tool, followed by a tool_search_result, when the schema is returned, followed by a function_call, when the model calls the tool. There is no index to build or host. Gemini runs the search server-side, so the developer needs no separate search database for the tool library.

Java code fills a computer monitor, with the programmer's reflection visible on the screen. Credit: qubodup (via Flickr)


What a tool schema is, and why deferring it helps

A tool schema is the formal definition of a tool: its name, what it does, and each parameter it accepts, with the data type expected and whether it is required or optional. Without it, a model cannot reliably call a tool. Deferring it splits the information into two layers: name and description for every tool, and the full parameter schema only for the tools the model actually selects.

Working with MCP servers, prefix caching and client-side mode

Tool Retrieval also works with remote MCP servers. MCP, the Model Context Protocol, is a standard way for an agent to connect to external tools through a server, and a developer can set defer_loading to true on an mcp_server tool in the same way. It also works with prefix caching, where the repeated beginning of a prompt is stored and reused, so it need not be processed from scratch each time.

Some teams already have their own registry of tools, embedding index, or permission filter. For those teams, Google offers a client-side mode, set with "execution": "client". In that mode, the developer's own system handles the search and returns the schema, giving the team control over how tools are found and authorised — at the cost of one extra round trip per search, which adds delay.

Who can use it, and with which models

Tool Retrieval is for developers using the Gemini Interactions API. It works with Gemini 3.6 and later models, including all Gemini 4 models; Google's code sample uses gemini-4-hydrogen. It is in preview, and Google gives no general availability date, so developers should check the documentation at aistudio.google.com/docs/tool-retrieval before relying on it in production. For background, see our report on Gemini 4 Neon and our coverage of Gemini edit files.

Students coding together at a hackathon. Credit: hackNY (via Flickr)


Pricing: no separate charge, but loaded schemas are billed

Google states the pricing plainly: "Tool Retrieval has no separate charge. Input and output tokens are billed at the standard rates for the model you call." There is no extra fee for turning the feature on, and no separate per-search price. The cost comes through normal token billing. Two details matter for budgeting. First, turning on tool_search adds a small fixed block of input tokens. Second, each loaded schema is billed as input for the rest of the conversation. Once a tool's full schema has been loaded, it stays in the conversation context and is billed as input for the turns that follow.

Google publishes no measured savings, latency or accuracy figures for Tool Retrieval. Its own advice is: "Measure it against your own traffic." The benefit depends on how many tools an agent has, how often it uses each one, and how long the schemas are. No figure in this article claims a saving, speed improvement or accuracy gain, because Google has not published one.

How the steps fit together

The table below sets out the sequence inside a single request, from the deferred tool list to the function call. It is the clearest way to understand the feature, because the steps are the feature: nothing is loaded until it is asked for, and the call that follows uses the schema that was just loaded.

StepWhat happens
1. Deferred tool listThe model sees each deferred tool's name and description, but not its full schema
2. tool_search_callThe model asks for a tool by name when it decides it needs that tool
3. tool_search_resultThe API loads and returns the full schema for the requested tool
4. function_callThe model calls the function, using the loaded schema, inside the same request
5. Conversation continuesEach loaded schema is billed as input for the rest of the conversation

Why this matters for agent builders

Tool Retrieval removes a ceiling on how many tools an agent can offer. Without it, every new tool adds to every prompt, so adding tools eventually makes the agent worse: more expensive, slower and less accurate. With on-demand loading, the full schema is only paid for when the tool is used, so large, specialised tool libraries become feasible. For context, see our reports on Claude Duet and the OpenAI Decisions API.

A programmer coding on a laptop at a desk. Credit: Tirza van Dijk (via StockSnap)


Key Takeaways

  • Google launched Gemini Tool Retrieval in preview on 19 November 2026 in the Gemini Interactions API, with no general availability date announced.
  • Developers add a tool_search tool and set defer_loading to true, so the model sees each tool's name and description but the full schema is loaded only when the model asks for that tool by name, inside the same request.
  • Google says sending every schema "inflates input token counts, adds latency, and lowers tool-selection accuracy as the candidate list grows" for agents with dozens or hundreds of tools, and Tool Retrieval needs no index to build or host because Gemini runs the search server-side.
  • The feature also works with remote MCP servers and with prefix caching, and a client-side mode is available for teams with their own registry, embedding index or permission filter, at the cost of one extra round trip per search.
  • There is no separate charge for Tool Retrieval, but turning on tool_search adds a small fixed block of input tokens and each loaded schema is billed as input for the rest of the conversation; Google publishes no measured savings, latency or accuracy figures and advises developers to measure it against their own traffic.

Conclusion

Gemini Tool Retrieval is a small change with a large practical effect: an agent can offer hundreds of tools without paying the full token, latency and accuracy cost of all of them in every prompt. Developers should test it on their own traffic, as Google advises, rather than assuming a particular saving. The design is sound — load the detail only when needed, and let the tool library grow without making each request heavier.

Sources

  1. Google, "Gemini API tool retrieval for efficient agent scaling" (19 November 2026): https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval/
  2. Google AI Studio, Tool Retrieval documentation: https://aistudio.google.com/docs/tool-retrieval

 

Comments