Google launched Tool Retrieval in preview inside the Gemini Interactions API (v1beta) across Gemini 3.6 and all Gemini 4 models. By adding {"type": "tool_search"} and setting defer_loading: true on long-tail functions or remote mcp_server declarations—or wiring execution: "client" to a private registry—agents avoid paying per-turn input token rent on unused JSON parameter schemas while keeping tool-selection accuracy sharp.
Before November 19, 2026, calling functions or remote MCP servers on the Gemini API required sending every complete JSON Schema inside the initial prompt context on every single turn. Once an enterprise assistant connected to 30 internal APIs and three MCP servers, two regressions hit simultaneously:
| Capability | Static Tool Loading | Server-Side Retrieval (Default) | Client-Side Retrieval (execution: "client") |
|---|---|---|---|
| How Schemas Reach Gemini | All schemas sent on every request | Gemini loads deferred schemas on demand inside one API call | Your application searches and returns schemas in function_result |
| Retrieval Code Needed | None | None (declarative tool_search + defer_loading) |
Custom search, ranking, or per-user RBAC filter |
| Upfront Declaration | Required | Required (name + description / short_description) |
Not required (can inject newly connected tools mid-chat) |
| Remote MCP Support | Yes | Yes (defer_loading: true defers all server tools) |
Not applicable |
| Extra Round Trips | None | None | One extra round trip per search invocation |
| Ideal Use Case | Fewer than ~20 stable tools | Large fixed tool libraries & multi-MCP assistants | Proprietary vector registries, namespaces & strict per-user RBAC |
v1beta) Exclusive: Tool Retrieval requires the Interactions API on v1beta and works with Gemini 3.6 and later models, including all Gemini 4 models (gemini-4-hydrogen, gemini-4-neon, gemini-4-carbon, gemini-4-argon). It is not supported on generateContent.tool_search adds a small fixed block of input tokens, and each schema loaded during a conversation is billed as standard input tokens for subsequent turns in that session.