Google introduced Tool Retrieval in the Gemini API on November 19, 2026. It lets an agent keep a long list of tools on standby and send each tool’s full parameter schema to the model only when the task needs it. The goal is a smaller prompt, lower latency and better tool choice for agents that connect to dozens or hundreds of tools. It is a preview feature, it has no separate charge and Google has given no savings figure. Here is how it works, how to turn it on, what it does to your bill and where it can trip you up.
What is Tool Retrieval in the Gemini API?
Normally every request carries the complete definition of every tool: name, description and the full JSON Schema for its parameters. With a large tool library, Google’s own documentation says a few dozen function declarations can use tens of thousands of tokens on every call. Tool Retrieval splits each tool into two tiers. The model always sees the name and a short description of every deferred tool, but the parameter schema stays out of the prompt until the model asks for that tool.
In the default server-side mode the whole exchange happens inside one API request. The model asks to search, the API returns the matching schema, and the model then makes its normal function call. In the response, these steps appear as tool_search_call, tool_search_result and function_call, and you only execute the function call.
How do you turn it on?
- Add
{"type": "tool_search"}to thetoolslist of an Interactions API request. - Set
"defer_loading": trueon each function tool you want to hold back. You can also set it on anmcp_servertool to defer every tool that server exposes. - Keep the tools your agent uses on almost every turn undeferred.
Teams with their own tool registry, embedding index or per-user permissions can use client-side retrieval instead. You declare tool_search with "execution": "client", run the lookup in your own app and return the matching function declarations. That costs one extra round trip per search, but tools do not have to be declared up front, so a new integration can appear mid-conversation. Google’s documentation recommends server-side retrieval for fewer than 20 stable tools or latency-sensitive apps, and client-side retrieval for dynamic registries, namespaces or per-user tools. The two modes cannot be mixed in one request.
Which models and APIs support it?
- API: the Interactions API only, on the
v1betaversion. The oldergenerateContentmethod does not support it. - Models: Google’s announcement says Gemini 3.6 and later, including all Gemini 4 models. The documentation page we opened lists gemini-4-carbon, gemini-4-neon, gemini-4-hydrogen, gemini-4-argon, gemini-3.8-flash and gemini-3.6-flash. PPC Land reported an earlier version of that list that left out Carbon, so check the current page before you depend on a specific model.
- Remote MCP servers: supported through
defer_loadingon themcp_serverentry.
Does it change what you pay?
Google says Tool Retrieval has no separate charge, and tokens are billed at the standard input, cached and output rates of the model you call. The saving is not automatic, though. Three things push the other way:
- Every deferred tool still costs a listing. PPC Land reports roughly 26 tokens per deferred tool in early testing and works out that 100 deferred tools add about 2,600 input tokens per request, about $0.004 at $1.50 per million input tokens. The documentation we read gives no per-tool count and no size for the fixed block that
tool_searchadds, so treat the 26 figure as a third-party estimate. - Each server-side search adds a model pass. Those prompt tokens appear in
total_tool_use_tokensand are billed at the input rate. - Loaded schemas stay loaded. Once the model retrieves a schema, it is billed as input for the rest of the conversation and cannot be unloaded.
Google’s advice is to measure against your own traffic: the saving appears when the schemas you never load outweigh the ones you do, which it calls the usual case for large libraries. It published no benchmark of token, latency or accuracy gains. PPC Land notes that Anthropic introduced a similar feature on November 24, 2025 with the same defer_loading flag and reported an 85% token reduction in its own tests, and that OpenAI launched tool search on March 5, 2026 and reported 47% in internal tests. Those are each company’s own numbers on different workloads, so they are not a prediction for Gemini. To see how input prices compare, see our AI API price comparison.
What is the effect on prompt caching?
Google says deferred schemas stay out of the opening section of the prompt, so the cached prefix stays the same from turn to turn. The documentation adds a catch: retrieved schemas are appended inline, implicit caching applies once the prefix is long enough to be cacheable, and deferring many tools can shrink the prompt below that minimum.
What can go wrong?
- Missed tools. If the retrieval step does not surface the right tool, the model never gets to choose it. GCN, summarising a separate review of the documentation, raised the same risk.
- Do not defer tools named elsewhere. A tool mentioned in system instructions or in another tool’s output can be called without a search, which causes an error.
- Resend everything. The API does not remember tool declarations between turns. Send the full
toolsarray, includingtool_searchand loaded tools, on every request, even when you useprevious_interaction_id. - Keep the history intact. If you manage history yourself, dropping a
tool_search_callstep or stripping itssignaturereturns a 400 error. - No match is not an error. A search that matches nothing returns text rather than a structured error, so your code should check for it.
- Preview. The page warns the API may change before general availability, and Google has given no date for that.
Practical tips from Google’s documentation
- Keep core tools loaded and defer the long tail.
- Prefix tool names by service, such as
billing_get_customer, and name the service at the start of the short description so search can find it. - Use the optional
short_descriptionfield on deferred functions, and always send fullparameters. - Check
interaction.stepsforfunction_callsteps instead of relying on thestatusfield.
What is still unknown?
- How much real agents save: Google published no percentages or latency numbers.
- The size of the fixed block
tool_searchadds to each request. - The maximum number of deferred tools. The documentation says only that one
tool_searchentry is allowed per request. - Whether the preview will reach general availability, and when.
Sources
- Google: Introducing Tool Retrieval in the Gemini API (November 19, 2026)
- Google AI Studio documentation: Tool Retrieval
- PPC Land: Google shrinks idle tools in Gemini agents to about 26 tokens each
- GCN: Google adds Tool Retrieval to let AI agents manage hundreds of tools (November 21, 2026)
Like our coverage? Add stepphase.com as a preferred source on Google to see more of our stories in Top Stories.
