Google Introduces Tool Retrieval in the Gemini API

Image: blog.google
Google has introduced Tool Retrieval in preview for the Gemini Interactions API, giving developers a way to load function parameter schemas on demand rather than passing an entire tool library in each request.
When agents interact with dozens or hundreds of tools, supplying full parameter schemas on every turn increases input token volume, adds latency, and degrades tool-selection accuracy. Tool Retrieval keeps an agent's tool library on standby. The model sees the names and descriptions of deferred tools, keeping detailed parameter schemas out of context until a task requires them.
Developers enable the feature by adding a tool_search tool to the request and setting defer_loading: true on designated functions. Within a single API call, the model requests the needed tool by name, the API loads the schema, and the model issues the function call. Developers can inspect this progression through interaction.steps, which records the search call, the search result, and the function call. Because deferred schemas stay out of the start of the prompt, the mechanism also supports prefix caching across conversation turns.
The setup works with remote MCP servers in the Gemini API, where assigning defer_loading: true to an mcp_server tool pulls tool definitions on demand without declaring them individually. Developers managing custom tool registries, embedding indexes, or permission filters can configure client-side retrieval by setting "execution": "client". That approach adds one round trip per search while allowing applications to surface tools mid-conversation when users connect external integrations.
Tool Retrieval carries no separate fee. Usage is billed at standard model rates: tool_search adds a fixed block of input tokens, and loaded schemas count as input for the rest of the conversation. The feature is available in the Interactions API for Gemini 3.6 and later models, including all Gemini 4 models.
Related AI News
Enjoyed this? Get more in your inbox.
Up to ten of the week's AI news stories, by email once a week.