Google's Gemini API adds on-demand Tool Retrieval for agents

Google has launched Tool Retrieval in preview in the Gemini Interactions API, so agents can keep a large tool library on standby and load parameter schemas only when the current task needs them. It works with Gemini 3.6 and later models, including all Gemini 4 models, has no separate charge, and also supports remote MCP servers and a client-side search option.

AgentsUpdated 4 min readBy
Google's Gemini API adds on-demand Tool Retrieval for agents
Image: Google

Google has launched Tool Retrieval in the Gemini API, available in preview in the Interactions API. The feature targets a problem that every team building larger agents runs into: once an agent is connected to dozens or hundreds of tools, sending every tool's full parameter schema on every request gets expensive. Google says it inflates input token counts, adds latency and lowers tool-selection accuracy as the list of candidates grows. Tool Retrieval lets the agent keep its whole tool library on standby and load a tool's schema only when the current task needs it.

The announcement was published on November 19 by Lucia Loher, product manager for the Gemini API, and Nora Kassner, a research scientist at Google DeepMind. Here is how it works, what it costs, and when it is worth adopting.

How server-side Tool Retrieval works

You enable it with two changes to a request. First, add a tool of type `tool_search`. Second, set `defer_loading: true` on the tools you want to hold back. The model still sees the name and description of every deferred tool, so it knows what is available, but the parameter schemas stay out of the context.

When the model decides it needs a deferred tool, it asks for it by name, the API loads the full schema, and the model emits the function call, all inside the same request. Google's example uses the `gemini-4-hydrogen` model and an `issue_refund` function: for the input "Order A-1042 arrived damaged. Please refund 40 dollars", the model searches for `issue_refund`, receives its schema and calls it with the order ID and amount.

Each of those steps is recorded in `interaction.steps` as a `tool_search_call`, a `tool_search_result` and a `function_call`. That record is useful for debugging: if the model picks the wrong tool, you can see which tools it considered and fix the names or descriptions. From there it is normal function calling, and your code runs the function and returns a `function_result`.

There is no index to build or host. Gemini runs the search on the server. Google's advice is to keep your most-used tools loaded up front and defer the long tail.

Caching and MCP servers

Tool Retrieval is designed to work with prefix caching. Deferred schemas are not placed at the start of the prompt, and any schema the model loads is added later in the conversation, so the cached prefix stays the same from turn to turn.

It also works with remote MCP servers in the Gemini API. Setting `defer_loading: true` on an `mcp_server` tool makes every tool that server exposes load on demand, so you can connect a large MCP server without listing its tools one by one.

Client-side retrieval for your own registry

Teams that already maintain their own tool registry, embedding index or per-user permission filter can run the search themselves. You declare `tool_search` with `"execution": "client"` and define your own search parameters, for example a single `query` string. When the model calls that search function, your app runs the lookup and returns matching function schemas in a `function_result`.

This adds one round trip per search, because your app does the lookup instead of Google's servers. In exchange, tools do not need to be declared up front, which means you can expose new tools in the middle of a conversation, for example right after a user connects a new integration.

Pricing and supported models

There is no separate charge for Tool Retrieval. Input and output tokens are billed at the standard rate of the model you call. Turning on `tool_search` adds a small, fixed block of input tokens, and every schema the model loads is billed as input for the rest of the conversation, just like a tool declared up front. Google says you save tokens when the schemas you never load outweigh the ones you do, which it calls the usual case for large libraries, and it recommends measuring this against your own traffic.

The feature works with Gemini 3.6 and later models, including all Gemini 4 models, in the Interactions API.

What it means for builders

When it helps. If your agent declares only a handful of tools, the fixed overhead of `tool_search` may cancel out the savings. The benefit grows with the size of the library, and it is most obvious when you attach a large MCP server or give one agent tools for many different jobs.

A practical setup. Keep your five or ten most frequent tools undeferred, defer the rest, and write clear, distinct descriptions, because the model now picks tools from names and descriptions alone before it sees any schema. Use the `interaction.steps` record to spot tools that are being searched for but never used.

Permissions. If different users may call different tools, client-side retrieval lets you apply your own permission filter at search time instead of building a separate tool list for every user.

Caveats. This is a preview, it is limited to the Interactions API, and it requires Gemini 3.6 or later. If your agents run on another provider, or through a router such as OpenRouter, check whether you would need to move to Gemini's own API to use it. For Google's consumer and business plans, see our Gemini page.

Sources

  1. Introducing Tool Retrieval in the Gemini API · Google · 2026-11-19

Source: Google. This article is PickAI’s own summary and analysis based on the original reporting, prepared with AI assistance under our editorial policy.

Enjoyed this story? Get PickAI Weekly

Get the week’s best new AI tools and news — one email a week, free. No spam, unsubscribe anytime.

Related tools on PickAI

↗

Gemini

gemini.google.com

Google's AI assistant integrated with Google apps.

Related AI news

All news →
Google DeepMind

Google launches Gemini 4 Neon, a cheaper frontier-class model for agents and coding

Google DeepMind's Gemini 4 Neon costs $3/$15 per million input/output tokens with a 1M-token context and four thinking levels. Google says it ranks #1 on the Artificial Analysis Coding Agent Index and is rolling out in the Gemini API, AI Studio, Antigravity and the Gemini app.

Google AI

Google unveils Gemini 4 Argon

Google introduced Gemini 4 Argon, a new Gemini model it pitches for its hardest reasoning and problem-solving tasks.

Google

Google's Gemini Omni 1.2 Flash makes 15-second AI videos and cuts the price 30%

Gemini Omni 1.2 Flash is now generally available on the Gemini API and Google Cloud. It generates clips up to 15 seconds, edits them over multiple turns, follows reference images more closely, and costs $0.07 per second at 720p.

Get the weekly AI tools drop

New tools and releases for builders, once a week. No spam, unsubscribe anytime.