Google has released Tool Retrieval in the Gemini API (Interactions API v1beta preview), enabling agents to maintain large tool libraries without sending every parameter schema per request. Developers mark functions with "defer_loading": true and add a "tool_search" entry; the model then sees only tool names and short descriptions until it requests a specific schema. Server-side retrieval (default) resolves search, schema load, and function call in a single API request with zero extra round trips and no index hosting. Client-side mode ("execution": "client") allows custom registries or permission filters but incurs one extra round trip per search; the two modes cannot be combined. Deferred tools work with MCP servers (deferral applies per mcp_server entry) and prefix caching, though deferral may shrink prompts below the minimum cacheable size. There is no separate fee; tokens bill at standard input, cached, and output rates. Server-side searches trigger an extra model call over full context (billed as input via total_tool_use_tokens), and loaded schemas remain billed as input for the conversation duration. Google published no savings or accuracy data; Anthropic reports 85% token reduction (77K to 8.7K) and accuracy gains from 79.5% to 88.1% for Opus 4.5, while OpenAI cites 47% savings on 250 MCP Atlas tasks. Supported models include Gemini 4 Carbon, Neon, Hydrogen, Argon, and 3.8/3.6 Flash. Maximum deferred tools and results per search are undisclosed.
Read original
marktechpost