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.

Read this as

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