Google is introducing Tool Retrieval in preview in the Gemini Interactions API. The feature is designed to make agents with large tool libraries more efficient: instead of sending every parameter schema with each request, developers can have schemas loaded when needed. This can reduce input tokens and latency and help with tool selection.
For server-side retrieval, developers add a tool_search tool and mark deferred tools with defer_loading: true. The model can still see their names and descriptions, while their full schemas remain outside the prompt context initially. When a tool is needed, the model searches for it; the API loads its schema, and the model can call the function within the same request. Google says there is no separate search index to build. Tools exposed by a remote MCP server can also be loaded on demand.
Developers using their own registry or permission filter can run retrieval client-side. According to Google, that requires an additional request round trip. Tool Retrieval has no separate charge, but loaded schemas are billed as regular input tokens. The feature supports Gemini 3.6 and later models, including Gemini 4, in the Interactions API.
The preview is aimed at developers integrating many functions into agents. The original source also explains setup, the sequence of interaction steps, and how billing works.
🇬🇧 https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval