Introducing Tool Retrieval in the Gemini API

In one sentence

Google has launched Tool Retrieval in preview within the Gemini API, allowing agents to load tool parameter schemas on demand to reduce token usage and latency.

Key points

  • The feature is available in preview in the Interactions API and supports Gemini 3.6 and later models, including all Gemini 4 models.
  • Developers can add a tool_search tool and set defer_loading to true so the API loads full parameter schemas on demand within a single request.
  • It works with prefix caching and remote MCP servers, allowing large servers to be connected without listing every tool upfront.
  • Client-side retrieval is supported for custom tool registries or permission filters, enabling new tools to be exposed mid-conversation.
  • Tool Retrieval has no separate charge and is billed at the standard input and output token rates for the called model.

In depth

An AI-written overview of the original article, not the article itself.

Google has launched Tool Retrieval in preview within the Gemini API's Interactions API. The feature allows AI agents to load tool parameter schemas on demand rather than sending every full schema on each request, helping reduce token usage, lower latency, and improve tool-selection accuracy.

How it works

According to Google, developers can enable the feature by adding a tool_search tool and setting defer_loading to true on less-used tools. The model still sees all tool names and descriptions, but only requests and loads full parameter schemas when a task requires them, completing the search and function call in a single request.

This approach requires no index hosting, preserves prefix caching by keeping deferred schemas out of the initial prompt, and supports remote MCP servers.

Client-side retrieval and availability

For custom registries or permission filters, developers can configure client-side retrieval. This adds one round trip per search but allows new tools to be introduced mid-conversation.

Tool Retrieval carries no separate fee, using standard token billing. It is available in the Interactions API for Gemini 3.6 and later models, including all Gemini 4 models.

Read originalOpens blog.google

This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.

Other coverage of this story

2 reports from 2 sources, in order of publication.

Recent stories from this source