Product Launch read

Gemini API adds Tool Retrieval to load tool schemas on demand

Google's new Tool Retrieval preview lets Gemini agents keep large tool libraries available while loading each tool's full parameter schema only when needed. It aims to cut input tokens, latency and tool-selection errors.

AE
Aidose Editorial
Nov 21, 2026

Google has added Tool Retrieval to the Gemini API as a preview feature in the Gemini Interactions API. It lets agents keep large tool libraries available without sending every tool's full parameter schema in every prompt. Lucia Loher, a Gemini API product manager, and Nora Kassner, a research scientist at Google DeepMind, announced it on November 19, 2026.

Developers add a tool_search tool to a request and set defer_loading: true on the tools they want to hold back. The model sees each deferred tool's name and description but not its parameter schema. When it needs a tool, it asks for it by name, the API loads the schema, and the model makes the function call, all within the same request. Each step is recorded in interaction.steps for debugging. Remote MCP servers can also be deferred, so that all of a server's tools load on demand.

By default the search runs on Google's servers, so developers do not need to build or host an index. Teams that want to use their own tool registry or filter by permissions can switch to client-side retrieval with "execution": "client", which adds one round trip per search. Google says deferred schemas stay out of the start of the prompt, which keeps the prefix cache stable across turns.

There is no separate charge. Standard token rates apply, plus a small fixed block of input tokens when tool_search is enabled. Schemas that do get loaded are billed as input for the rest of the conversation. Google gives no specific savings figures and advises developers to measure against their own traffic. The feature works with Gemini 3.6 and later, including all Gemini 4 models.

For agents that connect many MCP servers or internal APIs, tool definitions can take up a large share of the context before any work starts. On-demand schema loading is a direct fix for that. The savings depend on how many tools an agent never ends up calling, so the gains are largest for broad, rarely used tool catalogs.

AE
Aidose Editorial
Nov 21, 2026 · read
Back to News