AI & Developers
#Google
#Gemini API
#AI agents
#tool retrieval

Google Previews On-Demand Tool Retrieval for Gemini API

Makzit AI News·Source: Google AI Blog··4 min read
A conceptual editorial scene illustrating "Google Previews On-Demand Tool Retrieval for Gemini API" (AI & Developers) — Google says developers can defer tool parameter schemas in the Gemini Interactions API, loading them

Google says developers can defer tool parameter schemas in the Gemini Interactions API, loading them when needed to reduce prompt tokens for agents with large tool libraries.

What happened

Google announced Tool Retrieval, a preview feature in the Gemini Interactions API for applications that give AI agents access to many software tools. Rather than including every tool’s complete parameter schema in each request, developers can defer selected schemas and let the model request them when needed. The feature is available with Gemini 3.6 and later models, including Gemini 4 models, according to Google. Google AI Blog

To use the server-side approach, developers add a tool_search tool and mark tools for deferred loading with defer_loading: true. The model can still see the name and description of each deferred tool, but its detailed parameters are initially left out of context. When a tool is needed, the API retrieves its schema and the model can then issue a function call within the same request. Google says the search, result and function-call steps are available for inspection in the interaction record. Google AI Blog

Google also describes a client-side option for developers with their own registries, indexes or permission filters. In that configuration, the application handles the lookup and returns matching schemas; Google notes this adds a round trip for each search. The approach can also allow tools to be introduced during a conversation, according to the company. Google AI Blog

Why it matters

An agent connected to dozens or hundreds of tools may otherwise send a large collection of parameter definitions with every request. That consumes input tokens and can increase latency. Google argues that loading only relevant schemas can reduce those costs and help tool selection as the library grows. Those are company-stated benefits, not independently verified results: the announcement provides no benchmark figures or comparative test results. Google AI Blog

The design changes what developers need to provide at the start of a request, rather than removing the need to define tools altogether. Names and descriptions remain visible for deferred tools, while detailed schemas are loaded selectively. In practical terms, this may be useful where an agent has a large catalogue but typically uses only a small portion for any one task. That potential benefit depends on actual usage patterns and how often schemas must be retrieved.

Practical impact

For developers, the server-side setup appears to require adding the search tool and setting a deferral flag, with no separate search index to host, according to Google. Teams can leave frequently used tools loaded and defer less commonly used ones. Google says remote MCP servers are supported as well: developers can defer a server’s tools rather than declare each one individually. Google AI Blog

The pricing details make measurement important. Google says there is no separate Tool Retrieval charge, but the search tool adds a fixed block of input tokens, and schemas retrieved during a conversation are billed as input. Savings therefore depend on whether the schemas not loaded outweigh the retrieval overhead and the schemas that are loaded. Developers will need to compare token use and latency on their own workloads; the announcement does not quantify expected savings. Google AI Blog

Limitations

This is a preview announcement from Google and the available report relies on a single source, so its product details and claimed benefits cannot be independently corroborated here. The source does not provide independent evaluations, measured latency changes, token-savings examples from production, or details about preview availability beyond the stated API and model support. Client-side retrieval also carries an expressly noted extra round trip per search. Whether retrieval improves accuracy or responsiveness in a particular application remains an open question for developers to test. Google AI Blog

Sources

Automated Report: This article was drafted with AI assistance based on the sources below. There is no human review step.

Sources & Citations

Comments

Sign in to join the conversation.

Loading comments…