A tool-using agent can have a long menu: search, billing, account settings, project management and dozens of integrations. Sending every function’s full parameter schema with every request consumes context even when the task needs only one or two tools. Google announced Tool Retrieval on November 19 as a preview feature for the Gemini Interactions API. It defers those schemas until the model needs them; it does not remove the need to declare or safely execute the underlying tools.
What gets deferred
With server-side retrieval, a request includes a `tool_search` entry and marks selected function tools with `defer_loading: true`. The model still sees each deferred tool’s name and description, which provide the clues for deciding what to call. Its full parameter schema stays outside the initial context. When the model needs a tool, the API resolves that schema and returns it within the same interaction; the model can then issue its normal function call. Your application still executes your own function and returns its result.
This is schema retrieval, not a new tool implementation or an authorization layer. The descriptions need to distinguish tools clearly, and your service must continue to validate arguments, identity and permissions before taking action. A model being able to find a tool does not mean a user is allowed to use it.
Server-side versus client-side search
Server-side mode is the simpler path for a large but relatively stable catalog: Gemini searches the tools you declared, and Google says the search and schema load happen inside the same API call. There is no separate index to build for this mode. You can leave frequently used tools undeferred and defer the long tail. Remote MCP servers can also be deferred as a group, so their exposed tools are loaded as needed.
Client-side retrieval is for cases where your application must own the registry search: for example, a private catalog, per-user filtering or tools that become available only after someone connects an integration. Your app provides a `tool_search` function, runs its own lookup and returns matching schemas. That flexibility adds an extra model-to-app round trip for each search, and makes your search, ranking and permission filtering part of the implementation.
Google’s documentation currently labels Tool Retrieval as preview and says it requires the `v1beta` API version. It is available through the Interactions API; the `generateContent` method does not support it. The announcement lists Gemini 3.6 and later, including Gemini 4 models. Check the live model and API documentation before building around it, since preview behavior and availability can change.
When might it save tokens?
Google says there is no separate Tool Retrieval charge: normal model token rates apply. `tool_search` adds a small fixed block of input tokens, and each schema that is loaded is billed as input for the rest of that conversation. The feature can reduce input when the schemas left unused outweigh the schemas that get pulled in. If nearly every request uses most of the catalog, retrieval may save little or add overhead. Google describes potential latency and tool-selection benefits, but its announcement does not provide an independent benchmark or a quantified result for your workload.
A useful evaluation is to compare representative tasks with static schemas and retrieval enabled. Track input tokens, end-to-end latency, correct tool selection, missed tools and permission failures across the same prompts. Include frequent and rare tools, and account for the retrieval overhead as well as schemas loaded later in the conversation. That will show whether a smaller initial context helps your agent rather than assuming that a larger catalog automatically benefits.
Tool Retrieval is a narrower change than a protocol or function-calling system: it changes when the model receives parameter details. For a broader look at why tool descriptions and application rules still matter, see our guide to application semantics in agent protocols. Makers adding integrations can treat this preview as one design option, then test it against their own tool catalog and safeguards before relying on it in production.
Should agent protocols understand application semantics?
