DEV Community

News
News

Posted on Edited on

Google previews Tool Retrieval in the Gemini API for large tool libraries

Infographic cover

๐Ÿ“… November 19, 2026 โ€ข Google Blog

Google has put Tool Retrieval into preview in the Gemini API, and the preview was covered today by the marktechpost publication. Per Google, the feature is available in the Interactions API โ€” per Google's documentation, in its v1beta version only. The change is aimed at large tool libraries โ€” instead of receiving the full definition of every function in the prompt, the model sees each deferred tool's name and a short description, and the full parameter schema is loaded only when a task actually needs that tool. In practice, the request is first matched against names and descriptions, and only the schemas of the tools chosen for the job enter the context window.

The motivation is prompt cost. Per Google's documentation, a few dozen function declarations can consume tens of thousands of tokens on every request, since each schema travels with the prompt whether or not the model ends up calling the tool. Deferral, per Google, targets this fixed prompt cost rather than the way the functions themselves run. Google's documentation advises keeping static loading for up to 20 stable tools and treat deferred loading as a mechanism for large tool libraries. The example published by the Google Developers account shows more than 50 deferred functions running on the gemini-4-hydrogen model.

Per Google, Tool Retrieval runs in two modes. In the server-side mode, the tool search, the schema load and the function call itself resolve within one API request โ€” per the company, that means no extra round trips in the agent loop and no retrieval index for the team to host, with the search infrastructure sitting on Google's side.

In the client-side mode, a team points retrieval at its own tool registry. Per Google, the deferral mechanism stays the same in this setup, while the index and the matching infrastructure live on the team's side. That is the path for engineering setups that already maintain their own catalog of functions and want retrieval to search it directly.

The caveat belongs in the same breath as the feature. Tool Retrieval is a preview limited to v1beta of the Interactions API, and Google itself notes that deferral pays off for large tool libraries โ€” per Google's documentation, static loading remains the standing advice for up to about 20 stable tools. Teams with a small, fixed set of functions gain little from the preview, while the intended audience is anyone wiring a large tool library into an agent and paying the token bill for it on every request.

Sources:
https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval/
https://www.marktechpost.com/2026/11/22/google-gemini-api-tool-retrieval/
https://www.unite.ai/google-previews-on-demand-tool-retrieval-for-gemini-api-agents
https://news.sulat.com/2026/11/20/gemini-api-tool-retrieval/
https://aistudio.google.com/docs/tool-retrieval

Key figures

IMPACT checklist


Sources:


Continue the conversation: https://t.me/AIAutomationArchitecture ยท Bluesky

AI Automation

Top comments (0)