OutYet reporting

Gemini API Adds On-Demand Tool Schema Loading

Tool Retrieval lets agents defer tool parameter schemas until they need them. The potential savings depend on how many tools a request actually uses.

OutYet Editorial Desk

Google put Tool Retrieval into preview in the Gemini Interactions API on November 19. It lets developers keep a large tool library available without sending every tool’s full parameter schema with every request. That targets a real cost in agent workflows: repeated prompt space spent describing tools the model may not call. Google says the feature is intended to reduce input tokens and latency, and to help tool selection as tool lists grow.

The implementation keeps each deferred tool’s name and description visible to the model, while withholding its parameter schema. A developer adds a `tool_search` tool and marks selected tools `defer_loading: true`; when the model requests one by name, Gemini loads its schema and proceeds with the function call in the same API request. Google’s example exposes the search, schema-loading, and function-call steps in the interaction record, which should help developers inspect what happened when tool names or descriptions cause trouble.

This changes the usual setup, where an application sends the complete schema list up front on each request. The feature is server-side, so Google says there is no index to build or host, and it also supports remote MCP servers. For teams that need to keep their own registry or permission filters, Google documents a client-side retrieval option too, but that adds a round trip for each search. Independent coverage has noted that on-demand tool loading follows a similar design pattern to features from other major model providers; the broad idea is becoming a shared agent design choice rather than a Gemini-specific abstraction.

There is no separate Tool Retrieval fee, but it is not a blanket token discount. The search tool adds a small fixed block of input tokens, and every schema the model loads is billed as input for the rest of that conversation. Savings occur only when the schemas left unloaded outweigh the search overhead and loaded schemas, so teams should compare token use and latency on their own call patterns. The preview is limited to the Interactions API and Gemini 3.6 or later, including Gemini 4 models; Google has not published a measured token reduction or latency benchmark, so the practical benefit remains workload-dependent.

Related models

Sources