News · AI NEWS

Google previews Tool Retrieval in the Gemini Interactions API, loading tool schemas on demand and supporting remote MCP servers

· Beijing time

Summary

Google said on November 19 that Tool Retrieval is in preview in the Gemini Interactions API. The feature is aimed at agents connected to dozens or even hundreds of tools. Developers add a tool_search tool and set defer_loading: true on tools they want to hold back. The model still sees each deferred tool’s name and description, but parameter schemas stay out of context until the model needs a tool, at which point the API loads the full schema and completes the function call inside the same request. Google said this is designed to cut input tokens and latency and to keep tool selection accurate as the candidate list grows. There is no retrieval index for developers to build or host; Gemini runs the search on the server. Frequently used tools can stay fully loaded while the long tail is deferred. The feature also works with remote MCP servers: setting defer_loading on an mcp_server tool defers every tool that server exposes. Loaded schemas are added later in the prompt rather than at the start, which helps prefix caching. Developers who maintain their own registry or permission filters can set tool_search to run on the client, which adds a round trip and cannot be combined with server-side retrieval in the same request. Exactly one tool_search is allowed per request. The preview works with Gemini 3.6 and later models, including all Gemini 4 models. Google said there is no separate charge, though loaded schemas still count as input tokens.

#Google#Gemini#MCP#agent#API

This summary reflects the cited source. Visit the original for its full context.

← All AI news