Google has launched Tool Retrieval in preview for the Gemini Interactions API, a feature designed to optimize how AI agents handle large libraries of external tools. By allowing developers to defer the loading of parameter schemas until they are needed, the update aims to reduce input token counts and maintain selection accuracy as agents scale.

What Happened

Tool Retrieval addresses a common bottleneck in agentic workflows: the overhead of sending every full parameter schema for dozens or hundreds of tools in each prompt. According to Google, this practice inflates input token counts, adds latency, and lowers tool-selection accuracy as the candidate list grows. The new feature enables an agent to keep its full tool library on standby, loading parameter schemas only when the current task requires them.

To implement Tool Retrieval, developers add a `tool_search` tool to their request and set `defer_loading: true` on the tools they wish to hold back. The model retains visibility of the name and description of every deferred tool but does not include the parameter schemas in the context window initially. When the model identifies a need for a specific tool, it requests the tool by name. The API then loads the full schema, and the model executes the function call, all within a single request. Google notes that there is no index to build or host, as Gemini performs the search server-side.

The update supports both server-side and client-side retrieval. For client-side implementations, developers can define their own search logic and tool registry, though this adds one round trip per search. Additionally, Tool Retrieval is compatible with remote MCP (Model Context Protocol) servers, allowing developers to defer loading for every tool exposed by a connected server without listing them individually.

Why It Matters

For developers building complex agents, this update offers a method to manage costs and performance without sacrificing capability. Google states that Tool Retrieval has no separate charge; input and output tokens are billed at standard rates for the model used. However, enabling `tool_search` adds a small, fixed block of input tokens, and any schema loaded by the model is billed as input for the remainder of the conversation. The company advises that token savings occur when the schemas never loaded outweigh those that are, a typical scenario for large tool libraries.

The feature also integrates with prefix caching, a mechanism that improves efficiency by keeping static parts of the prompt unchanged. By deferring schemas, the cached prefix remains stable across turns, while newly loaded schemas are added later in the conversation. This design supports scalable agent architectures where frequent tools remain loaded up front, and long-tail tools are accessed dynamically.

Tool Retrieval is available in preview for Gemini 3.6 and later models, including all Gemini 4 models, within the Interactions API.

The Bottom Line

Google’s introduction of Tool Retrieval provides a structured approach to optimizing agent efficiency, reducing token overhead and latency for large-scale tool use. While the feature is currently in preview, it represents a significant shift in how developers manage context in agentic workflows, promising better cost management and accuracy for complex integrations.