Tooling Published here Reported by Google on

Gemini API keeps tool schemas out of context until the model asks — names and descriptions stay, parameters do not

Google previewed Tool Retrieval in the Gemini Interactions API on November 19. Instead of sending every tool's full parameter schema on every request, you add a `tool_search` tool and set `defer_loading: true` on the function tools you want held back. The model still sees the name and description of every deferred tool, so it knows what exists; only the argument schemas stay out of context. When it needs one, it asks for that tool by name, the API loads the schema and executes the call inside the same request. Two modes ship. Server-side is the default and requires no retrieval index for you to build or host — Gemini performs the search. Client-side lets your application own a custom tool registry and answer search requests, at the cost of one extra round trip per search. Setting `defer_loading` on a remote MCP server defers every tool that server exposes, so a large server does not need its tools enumerated individually. It works with Gemini 3.6 and later, including all Gemini 4 models. There is no separate charge: input and output are billed at standard rates for whichever model you call, and deferred schemas only cost input tokens once loaded. Google's own guidance is unusually restrained — keep frequently-used tools undeferred, and the savings only materialize "when the schemas you never load outweigh the ones you do," so "measure it against your own traffic."

Why it matters

Tool schemas are the quietest line item in an agent's token bill, and they scale with your tool catalog rather than with the work being done — every request pays for the hundred tools it will not call. Deferring the schemas while keeping names and descriptions is the right cut, because selection accuracy depends on knowing what exists and argument correctness is what needs the detail, and those are separable. The part worth noticing is that this reshapes your prefix, not just your token count: a static block of tool definitions is exactly the kind of thing prefix caching was already discounting, so the win is not automatic and Google says so. The `defer_loading` on a whole MCP server is the practical unlock for anyone whose agent has quietly accumulated three hundred tools from five servers. The honest limitation is that this is Gemini-specific plumbing, not a protocol change, so it does not transfer.

What to do

Instrument your tool-definition token count per request before you touch anything — most teams have never measured it and the number decides whether this is worth the change. Defer the long tail and keep your top handful of tools loaded, which is both Google's advice and the shape that matches real traffic. Measure against cached input cost, not uncached, because if your tool block was already a stable cached prefix the arithmetic can go the wrong way. Start with server-side mode and only move to client-side if you need your own retrieval logic, since the extra round trip is real latency. And if you run large MCP servers, defer at the server level rather than tool by tool.

Tags: Google Tool Use Agents Cost Optimization

More from November 21, 2026

All AI news