Gemini · Google · Developers · Agents

Gemini API adds Tool Retrieval so agents load tool schemas only when needed

Google's Tool Retrieval preview lets Gemini agents keep large tool libraries on standby and load each function's schema on demand, with no separate charge.

On November 19, 2026 Google introduced Tool Retrieval in the Gemini API, a Preview feature in the Interactions API. Google says it lets agents keep a large tool library on standby and load a tool’s full parameter schema only when a task needs it, to cut input tokens and latency and keep tool choice accurate as the list grows.

What to know

  • How to turn it on: add {"type": "tool_search"} to your tools list and set "defer_loading": true on each function you want held back. Tools you use often can stay loaded as normal.
  • What the model sees: the name and description of each deferred tool, but not its parameter schema until it searches for it. A request then shows a tool_search_call, a tool_search_result and the function_call in interaction.steps, which Google says helps with debugging.
  • No index to build: by default Google runs the search on its servers. Deferred schemas stay out of the start of the prompt, so the cached prefix stays stable across turns.
  • MCP servers: setting defer_loading: true on an mcp_server tool makes every tool on that server load on demand.
  • Your own search: declare tool_search with "execution": "client" to use your own registry, embedding index or per-user permission filter. Google notes this adds one round trip per search, and tools can be added mid-conversation.
  • Price: no separate charge. Turning on tool_search adds a small fixed block of input tokens, and each schema the model loads is billed as input for the rest of the conversation. Google gives no savings percentage and suggests measuring on your own traffic.
  • Models: Gemini 3.6 and later, including all Gemini 4 models.

Why it matters

Agents with dozens of tools waste tokens describing every one on every turn, and they pick the wrong tool more often. Deferred loading makes clear tool names and descriptions even more important, because that is all the model sees before it searches. Write each description as one plain sentence about when to use the tool. Our guides to writing an agent skill and agent permissions cover the rest, and the Gemini page lists Google’s other developer updates.

Source: Google blog. We summarise in our own words; check the source for the full details.

More AI news

stay in the loop

New guides, prompts and AI model news by email