# Gemini API Tool Retrieval loads tool schemas only on demand

- URL: https://blog.orchardai.ai/google-gemini-api-tool-retrieval/
- Published: 2026-11-20
- Reacting to: Google, "Introducing Tool Retrieval in the Gemini API" (2026-11-19)
- Original: https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval/

TL;DR: Google launched Tool Retrieval in preview in the Gemini Interactions API, letting agents defer tool schemas, including whole MCP servers, until a task needs them, for Gemini 3.6 and later. Our take: a careful design, but no numbers to size the savings.

## What Google announced

- **Deferred tools.** Add a `tool_search` tool and set `defer_loading: true` on tools to hold back. The model still sees each deferred tool's name and description, but not its parameter schema, and requests the schema by name when needed.
- **One request.** By default the search runs server-side: the API loads the schema and the model emits a `function_call` in the same request, recorded as `tool_search_call`, `tool_search_result` and `function_call` steps.
- **MCP servers.** Setting `defer_loading: true` on an `mcp_server` tool defers every tool that server exposes.
- **Client-side option.** Declare `tool_search` with `"execution": "client"` to use your own registry, embedding index or per-user permission filter, at the cost of one extra round trip per search. Tools can be added mid-conversation.
- **Pricing.** No separate charge. Standard token rates apply, plus a small fixed block of input tokens for `tool_search`, and each loaded schema is billed as input for the rest of the conversation.
- **Models.** Preview for Gemini 3.6 and later, including all Gemini 4 models.

As Google put it: "Tool Retrieval is now in preview in the Gemini Interactions API."

## Our take

The problem is real. An agent connected to a few MCP servers can carry hundreds of tool definitions in every request, paying for them in tokens and latency and getting worse at picking the right one as the list grows. Showing the model names and descriptions, and fetching full schemas only when it reaches for a tool, is the obvious fix done properly. The detail we liked is the caching note. Deferred schemas stay out of the start of the prompt, and loaded ones are appended later, so the cached prefix stays the same across turns. That's someone who has paid a prompt-caching bill thinking about the design.

What's missing is any number. The post gives no token savings, no latency figures and no accuracy results, and the "small, fixed block" that `tool_search` adds has no size. The pricing note is honest about the trade-off: once a schema loads, you pay for it for the rest of the conversation, so savings only appear when the tools you never load outweigh the ones you do. Google's advice is to measure on your own traffic, which is correct and also a sign that the gains depend heavily on your setup.

Two adjacent moves give it context. A day earlier, DeepSeek stopped billing server-side search and fetch tool calls separately and folded them into ordinary token usage. Google, too, prices tool retrieval as tokens, not as a feature. And Google's own Gemini 4 launches this month lean on orchestrators directing many smaller agents. Each of those agents may need a different slice of a large tool library, which is exactly the case deferred loading serves.

## What it changes for teams running agents

- **Big tool libraries get practical.** Agents connected to several MCP servers can defer whole servers and load only what a task touches.
- **Keep the frequent tools loaded.** Google's guidance is to leave common tools undeferred and defer the long tail. Start there.
- **Use client mode for permissions.** If different users may call different tools, the client-side search lets you filter by permission before the model ever sees a schema.
- **Measure before and after.** Log input tokens per task and tool-selection errors with and without deferral, since the post gives no baseline to rely on.

## For agents reading this

- **Announced by:** Google
- **Original post:** https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval/
- **Announcement date:** 2026-11-19
- **What:** Tool Retrieval, on-demand loading of tool schemas via `tool_search` and `defer_loading`, including MCP servers
- **Availability:** Preview in the Gemini Interactions API for Gemini 3.6 and later, including all Gemini 4 models
- **Pricing:** No separate charge; standard token rates plus a small fixed `tool_search` block; loaded schemas billed as input for the rest of the conversation
- **Our verdict:** A careful, cache-aware design; savings are real only for large libraries, so measure them
- **Confidence:** facts from the original post; take is Orchard's opinion
