Gemini's new tool retrieval feature has a familiar shape. Developers were already asking for it by name.
Google's Interactions API can now fetch a tool's schema only when the model needs it. A GitHub issue asking for Gemini to match Anthropic's version is still open.

Google announced Tool Retrieval in the Gemini API on November 19, a preview feature in the Interactions API that lets an agent hold a large library of tools without sending every one of their schemas on every request. It’s a narrow fix for a problem anyone building agents with dozens of functions already knows: the tool list itself starts eating the context window before the user has typed a word.
How it works
Here’s the mechanism, per Google’s own post. A developer adds a tool_search tool to the request and sets defer_loading: true on the tools they want held back. The model still sees each deferred tool’s name and one-line description, so it knows the tool exists, but the full parameter schema stays out of context. When the model decides it needs a tool, it asks for it by name, the API loads the schema, and the model calls the function, all inside the same request. You can watch the search call, the result and the function call happen in the interaction.steps array, which is handy when a tool isn’t getting picked because its description is vague.
It also reaches past Google’s own tools. Setting defer_loading: true on an mcp_server entry defers every tool that remote MCP server exposes, so a team doesn’t have to hand-list a hundred functions from someone else’s server. And if a company already runs its own tool registry or permission filter, it can set "execution": "client" and do the lookup itself, at the cost of one extra round trip per search. Google says there’s no separate charge for any of this. Turning on tool_search adds a small fixed block of input tokens, and every schema the model does load gets billed as normal input, same as if it had been declared up front. The saving only shows up when the tools left unloaded outweigh the ones retrieved, which Google itself says to measure against your own traffic rather than take on faith.
Same shape as Anthropic’s tool search
My read: the timing is the real story here, more than the mechanism. Anthropic shipped almost the identical idea for Claude under the name tool_search_tool, with both a regex and a BM25 variant, months before this. A GitHub issue filed against Google’s own js-genai client library, title “Feature Request: Support defer_loading and tool_search for dynamic tool discovery (parity with Anthropic & OpenAI)”, lays out Anthropic’s version point by point and asks Google to match it. That issue was still open when Google’s post went up. I don’t know if the two teams built this independently or if Google was reacting to exactly that pressure, and Google’s post doesn’t say.
Anthropic’s tool_search_tool |
Google’s Tool Retrieval | |
|---|---|---|
| Search method | Regex or BM25 variant | Server-side search, no index to build |
| Prompt cache | Preserved (tools list never changes) | Preserved via prefix caching |
| Client-side option | Yes, custom search implementation | Yes, "execution": "client" |
| Remote MCP servers | Not named in the feature request | Yes, defer_loading on mcp_server |
| Status as of Nov 19 | Shipped, available on Sonnet 4.0+/Opus 4.0+ | Preview, Gemini 3.6 and later |
But developers were asking for this feature by the other vendor’s name, not a hypothetical one, which says something about how fast agent infrastructure patterns are converging across labs right now.
The one real limit
Tool Retrieval only works with Gemini 3.6 and later, including every Gemini 4 model, and only inside the Interactions API, not the older generateContent path some existing integrations still use. If your agent stack hasn’t moved to Interactions yet, this preview doesn’t help until it does.
Google’s related sandbox work for agents, Agent Compute Engine, is aimed at the same scaling problem from a different angle: that one assumes an agent will be compromised and removes anything worth stealing, while this one assumes an agent’s tool list will grow past what fits in a prompt. Both read like Google building for agents that call dozens or hundreds of tools in production, not the five-function demos most of us still test with.
Sources
- Google: Introducing Tool Retrieval in the Gemini API
- Google AI for Developers: Tool retrieval (Preview) guide
- GitHub (googleapis/js-genai#1416): Feature Request: Support defer_loading and tool_search for dynamic tool discovery (parity with Anthropic & OpenAI)
Note on sources: the mechanics of defer_loading, tool_search and MCP support come from Google’s own announcement and developer docs. The comparison to Anthropic’s tool_search_tool and the open feature request are as described in the linked GitHub issue, which names Anthropic’s tool and model-version support directly; I read the issue text itself rather than a summary of it.