Google AI Previews Tool Retrieval in the Gemini API for Large Tool Libraries
In one sentence
Google has previewed Tool Retrieval in the Gemini API, allowing models to load tool parameter schemas on demand to reduce token usage for large tool libraries.
Key points
- The feature is in preview in the Interactions API (v1beta) and loads full tool parameter schemas only when needed.
- It supports both server-side and client-side retrieval, with server mode resolving search, loading, and function calls in one API request.
- It works with MCP servers and implicit prefix caching, though client mode adds one extra round trip per search.
- There is no separate fee, as tokens bill at standard rates and loaded schemas remain billed for the rest of the conversation.
- Google has not published token savings data, whereas Anthropic and OpenAI previously reported savings of 85% and 47%, respectively.
In depth
An AI-written overview of the original article, not the article itself.
Google has launched a preview of Tool Retrieval in the Gemini API's Interactions API. The feature allows AI agents to maintain large tool libraries without sending every parameter schema in every prompt, loading them only when a task requires them.
How It Works and Modes
According to the article, dozens of function declarations can consume tens of thousands of tokens per request. By enabling defer_loading, the model initially sees only tool names and short descriptions. When a tool is needed, the API resolves the search and schema loading automatically before the model emits a function call.
The feature supports two modes that cannot be mixed. Server-side mode is the default, requiring no hosted index and completing in one API request. Client-side mode lets apps run custom lookups at the cost of one extra round trip. It also supports MCP servers and implicit prefix caching.
Pricing and Competitor Comparison
Tool Retrieval carries no separate fee and bills at standard token rates. However, server-side searches trigger an extra model call, and loaded schemas remain billed as input for the rest of the conversation. Google recommends static loading for fewer than 20 stable tools.
Anthropic and OpenAI offer similar tool search features, self-reporting token savings of 85 percent and 47 percent, respectively. Google has not published savings data for Gemini.
This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.