Google AI Previews Tool Retrieval in the Gemini API for Large Tool Libraries

Google has launched Tool Retrieval in the Gemini API, now in preview in the Interactions API.Gemini API Tool Retrieval lets an agent keep a large tool library available.It does not send every parameter schema in every prompt.
The model loads a schema only when a task needs that tool.For agents wired to dozens of functions or MCP servers, it targets a real cost: tool definitions.You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
Tool Retrieval is a Gemini API feature that defers tool parameter schemas until the model asks for them. Google’s documentation states the problem plainly. A few dozen function declarations can consume tens of thousands of tokens on every request.
With deferral, the model sees only each tool’s name and a short description. It does not see the parameter schema until retrieval.
You add {"type": "tool_search"} to the tools array. Then you set defer_loading: true on each function to hold back. The @googledevs launch post shows a deferred issue_refund function on gemini-4-hydrogen. Its code comment mentions 50+ other deferred functions.
When the model needs a deferred tool, the response contains 3 steps:
The API resolves the first 2 steps itself. Your app only runs the function_call and returns a function_result.
Deferred functions can carry an optional short_description. It is shown during retrieval and is valid only when defer_loading is true.
Server-side is the default. Gemini runs the search, so there is no index to build or host.
Client-side mode uses "execution": "client". Your app runs its own lookup, such as an embedding index, registry or permission filter. It returns matching declarations in function_result.result. Those tools can join mid-conversation, even if absent from the initial tools array. Each client-side search costs 1 extra round trip.
The 2 modes cannot be combined in 1 request. Only 1 tool_search entry is allowed per request.
Yes on both, with caveats. Setting defer_loading: true on an mcp_server entry defers every tool that server exposes. Deferred MCP tools still execute remotely through the Gemini API MCP support.
On caching, deferred schemas stay out of the prompt prefix. Loaded schemas append inline, so implicit caching still applies. The docs add one catch: deferring tools can shrink a prompt below the minimum cacheable size.
There is no separate fee. Tokens bill at the model’s standard input, cached and output rates. Each server-side search triggers an extra model call over the full context. Those tokens appear in total_tool_use_tokens, billed at the input rate.
Each loaded schema then stays billed as input for the rest of the conversation. The docs say static loading can cost less for small libraries or per-turn searches.
Anthropic and OpenAI already ship similar tool search features, with published savings numbers.
Anthropic and OpenAI figures are self-reported in their own tests. They are not comparable to any Gemini result.
Check out the Google blog post, the Tool Retrieval docs and the MCP function calling docs. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
Wait! are you on telegram? now you can join us on telegram as well.
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us
Michal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.
What 70,000+ AI engineers read before standup
Get the AI releases that matter, before they trend.
Model releases, open weights, agents and papers with code — the 5 that matter, in 1 email. Free.
Get the stories that didn’t make it on the homepage.
Last issue: ▲ what's inside: gpt-live-1.1, inkling 2 mini, nemotron sigma, bison-1
The newsletter 70,000+ AI builders read
Model releases, open weights and papers with code — in 1 email. Free.
▲ AI DEV SIGNALS · FREE NEWSLETTER
Get the AI releases that matter, before they trend.
70,000+ AI builders · Past issues →
The newsletter 70,000+ AI builders read. Model releases, tools and research, without the hype.
Practitioner-first AI/ML news and analysis, read by 1M+ developers and researchers every month.
The self-improving layer for AI agents is here
AI agents look great in demos. Until real users break them. Plurai built a world where your agent can fail, learn, and get fixed before your users ever see it.