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.
More from November 21, 2026
- Thinking Machines ships a 26.4B looped transformer that runs in 20GB — the middle layers execute three times per token
- LangChain puts every agent tool call behind one URL — identity, deny policies, approval gates, and a trace per call
- Databricks watched 80,000 pipeline incidents and found over half need company-specific knowledge to triage
- OpenAI bills idle voice sessions at $0.02 a minute — but only over WebRTC, and only while inference is paused
- AMD and Unsloth route 100+ agentic apps to an NPU — the CPU and GPU stay free for everything else
- Trimming your agent's context saves 19–36% — until you price the cache, and then it costs up to 116% more
- Models saturate the evaluations they write for themselves 65% of the time — and still fail the held-out task
- Claude closed a 23-year-old black hole calculation — six weeks of background agents, then verified in Lean
- GAO got viable attack plans out of all four major chatbots in under 12 hours — using publicly known bypass techniques
Related
- Google Labs ships an agent that watches your live metrics and opens PRs — three default loops, 180+ integrations, human approval required November 20, 2026
- Genie 4 reaches developers at roughly ten cents a second — 720p interactive worlds with native audio, capped at two minutes November 20, 2026
- Gemini 4 Neon takes the coding agent top spot at $3/$15 — and 32% lower cost per task than Carbon November 20, 2026