Gemini Tool Retrieval: agents fetch tool schemas on demand

Google put Tool Retrieval in preview in the Gemini Interactions API, letting agents defer tool parameter schemas until the model asks for one.

Gemini agents wired to dozens or hundreds of tools no longer have to put every parameter schema into the model's context on every request. Google launched Tool Retrieval in preview in the Interactions API on Nov 19, 2026, according to its announcement. You add a tool_search tool and set defer_loading: true on the tools to hold back. The model still sees each deferred tool's name and description. When it needs one, it asks by name, the API loads the schema, and the function call follows inside the same request. Setting the flag on an mcp_server tool defers everything that server exposes. If you run your own registry or per-user permission filter, "execution": "client" hands the lookup to your app, at the cost of one extra round trip per search.

Google says there is no separate charge, and that loaded schemas are appended later in the conversation so the cached prompt prefix stays stable. The bill still has parts: a "small, fixed block" of input tokens for tool_search, plus each loaded schema billed as input for the rest of the conversation. PPC Land's read of the documentation adds about 26 tokens per deferred tool listing in early testing, and an extra model pass for each server-side search. It also lists several rules: loaded schemas can't be unloaded, the full tools array is resent on every request, and tools named in system instructions shouldn't be deferred.

Anthropic and OpenAI shipped the same idea first. PPC Land calls the designs near-identical, down to the defer_loading flag, while Apiyi's comparison says their implementation paths differ widely. Apiyi also cites Google's own worked example, where deferring 10 tools plus a long context used about 36.5% more tokens than loading them statically, and Google's advice to keep static loading under roughly 20 stable tools. Since server-side selection runs on names and descriptions alone, The Back Room Tech warns that vague or overlapping descriptions become a selection risk. Rewriting them is now part of the setup work.

Beyond hypothetical worked examples like that one, Google publishes no measured savings, accuracy or latency figures and tells developers to measure against their own traffic. It's also unclear which models qualify. The blog says Gemini 3.6 and later, while the documentation lists four model codes, per PPC Land.

Try it: on a staging agent with a long tool list, keep your three to five most-used tools undeferred and set defer_loading: true on the rest. Run the same test tasks with and without deferral, then compare input tokens. Read interaction.steps to check the model loaded the tool you expected.

Sources