Google launched Tool Retrieval in the Gemini API
Google announced the launch of Tool Retrieval in the Gemini API, in preview in the Interactions API. The feature lets agents with dozens or hundreds of tools load full parameter schemas only when needed, rather than sending them with every request. It supports remote MCP servers and a client-side search mode.

For companies building agents with a large number of tools, Tool Retrieval reduces input token volume and cost when working with a long tail of rarely used features. Preserving the cache prefix keeps the savings on repeated parts of the prompt. Developers need to test the effect on their own traffic, because each search adds an extra model pass.
How Tool Retrieval works
Google added Tool Retrieval to the Gemini API, a mechanism that lets agents avoid sending full parameter schemas for every tool with each request. The developer enables the tool_search tool and sets the defer_loading: true flag on rarely used features. The model sees only the name and a short description of each deferred tool, and the parameter schema loads only after an explicit request.
The process happens within a single API call: the model issues a tool_search_call, the server returns a tool_search_result, and a regular function_call follows. Every stage is recorded in interaction.steps, which makes debugging easier. Frequently used tools can stay loaded, while the long tail can be deferred.
Support for remote servers and client mode
The feature extends to remote MCP servers: when defer_loading: true is set on an mcp_server, all of its tools load on demand. That removes the need to list every tool by hand. Deferred schemas are inserted in the middle of the conversation, so the prompt prefix stays unchanged and continues to be served from cache.
For companies that maintain their own tool registry or apply access-rights filters, a client mode is available. In that case, tool_search is declared with execution: "client", and the application performs the search. Tools can be added in the middle of a conversation, for example when a user connects a new integration.
Pricing and comparison with other platforms
There is no separate charge for Tool Retrieval. Tokens are billed at the model’s standard rates. According to sources, with a library of 200 tools, input token use falls by a factor of about seven compared with loading full schemas. At the same time, each server-side search requires an extra model pass over the context.
Anthropic launched a similar mechanism nearly a year earlier, and OpenAI did so in March 2026. The Gemini API interface is close to OpenAI’s approach, including parameter names. Google does not publish tool-selection accuracy figures, while Anthropic reported an accuracy increase in its tests.
Available models and preview limitations
Tool Retrieval works with Gemini 3.6 and later models, including all Gemini 4 versions, but only in the Interactions API. The feature is not available in the generateContent method. Once loaded, a tool schema stays in context until the end of the conversation; it cannot be unloaded. Server and client modes cannot be used in the same request.
The documentation states that the interface may change before general release. Google recommends keeping standard loading for a library of up to about 20 stable tools.
