· via dev.to (home feed)
Google's Gemini Tool Retrieval preview loads tool schemas only when the model asks
Google's Tool Retrieval preview for the Gemini API exposes only tool names and descriptions to the model, loading full schemas on request to cut context use for large tool libraries.

What Google shipped
On November 19, Google put Tool Retrieval into preview in the Gemini API, according to a dev.to post by Ganesh Sivakumar. The feature rethinks how an agent presents its capabilities to the model. Instead of pushing every full function declaration into the prompt, the agent registers its whole tool library while the model sees only a name and a short description for each one. The complete parameter schema is pulled into context only when the model asks for that particular tool.
Google's stated aim, as relayed by the post, is to keep agents workable as they connect to dozens or hundreds of tools. The company's developer documentation claims that even a few dozen function declarations can consume tens of thousands of tokens on every request, and that the model picks the right tool less reliably as the candidate list grows.
The savings are a hypothesis, not a number
Google frames the feature as intended to cut input tokens, but the announcement publishes no measured figure. The cost structure the post highlights works like this: there is no separate charge for retrieval itself, switching on the search tool adds a modest fixed number of input tokens, and once a schema is loaded it is billed as input for the remainder of the conversation. The net effect is positive only when the schemas you avoid loading outweigh the ones you do, which is why Google tells developers to benchmark against their own traffic. For anyone building a budget, the saving is a property of the workload, not a vendor-published constant.
Where the preview is limited
The feature currently requires the v1beta API version and works through the Interactions API rather than generateContent, and Google cautions that the surface may change before general availability. It supports Gemini 3.6 and later models. Google's own comparison table reportedly still recommends plain static loading when an agent has fewer than 20 stable tools, which brackets retrieval as a fix for scale rather than a new default.
Tool descriptions become selection controls
The subtler change is one of governance. Deferred tools still expose their names and descriptions to the model, and those short strings now determine which tool gets retrieved. Writing a description used to be documentation for humans; under retrieval it is the control surface for tool selection. A vague or misleading description means the wrong tool gets loaded, and the correct schema never enters context to correct the mistake. Teams that treat descriptions as an afterthought will feel this directly.
Auditing and the client-side option
Google builds in visibility: each retrieval appears as steps in the response, a search call followed by a search result and then the function call, so engineers can see which tools the model considered. That trace is useful for debugging, and it is also the kind of record a risk or compliance team would want, which makes it worth confirming whether your logging pipeline preserves those steps or drops them.
There is also a client-side mode in which the developer's own application performs the lookup. Google positions it for teams maintaining their own tool registry or per-user permission filters, at the cost of one extra round trip per search. For any agent that can issue refunds or touch customer data, and the announcement's own example involves a refund tool, this is the line between letting the vendor decide what is retrievable and enforcing that decision yourself.
Why it matters
Context windows are the scarce resource in agent design, and tool schemas are a quietly expensive occupant of them. Tool Retrieval is a preview from one vendor with no publicly measured savings, so the sensible move is a bounded pilot with before-and-after token counts recorded. But the underlying shift generalizes beyond Gemini: as tool libraries grow, deciding what a model can see becomes an operational and security decision, not just a prompt-engineering one. Descriptions, retrieval logs and permission filters now belong in the same bucket as code review and access control, on any platform that lets a model choose from a long list of tools.
- #gemini
- #ai-agents
- #developer-tools
- #context-window
- #api-design