Introducing Tool Retrieval in the Gemini API
AI-generated summary of reporting by Google AI Blog. Read the original for the full story.
Why it matters
Developers with large tool libraries can cut per-request input tokens and latency in the Gemini API by loading tool schemas only when the model asks for them.
Google has launched a feature called Tool Retrieval, now in preview in the Gemini API. Normally, an AI agent that uses many tools must be told the full details of every tool each time it runs, which wastes space and slows things down. With this feature, the agent sees tool names and descriptions but only pulls up the detailed instructions when it actually needs one. It works with Gemini 3.6 and later models.
Google's Tool Retrieval, in preview in the Gemini Interactions API, addresses a real cost for anyone running agents with dozens or hundreds of tools: paying for every tool's full parameter schema on every request. There is no separate charge; tokens are billed at standard model rates, and you save when unloaded schemas outweigh loaded ones. It requires no index to host, and works with remote MCP servers. Competition from other agent platforms should note the pattern.
Tool Retrieval (preview, Interactions API) defers tool parameter schemas out of context: add a tool_search tool and set defer_loading: true on deferred tools, while the model still sees names and descriptions. When needed, the model requests a schema by name, the API loads it server-side (no index to build), and the function call completes within one request, with all steps visible in interaction.steps. Deferred schemas load later in the conversation, preserving prefix caching. Client-side retrieval via execution: "client" supports custom registries and one extra round trip. Supported on Gemini 3.6+ including all Gemini 4 models.
Questions this answers
The article above answers these:
- How do I reduce input tokens when my agent has hundreds of tools?
- How does Gemini Tool Retrieval work?
- Which Gemini models support Tool Retrieval?
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Google Gemini API Interactions API Gemini 3.6 Gemini 4 tool_search MCP servers
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.