Gemini Tool Retrieval Arrives a Year After Claude's, With No Published Numbers
Software / analysis
Gemini Tool Retrieval Arrives a Year After Claude's, With No Published Numbers
Google's preview defers tool schemas the way Anthropic's tool search does. Anthropic's docs give a 55,000-token example and an 85 percent saving; Google's post gives neither.

Google put Tool Retrieval into preview in the Gemini Interactions API on November 19, 2026, letting an agent load a tool's parameter schema only when it needs it. Anthropic's documented tool search tool already works the same way, and its docs say the pattern cuts definition tokens by more than 85 percent. Google's announcement publishes no savings figure at all.
The feature is described in a Google blog post by Lucia Loher, Product Manager for the Gemini API, and Nora Kassner, a Research Scientist at Google DeepMind.

How Google's version works
A developer adds a tool_search tool to the request and sets defer_loading: true on the functions to hold back. The model sees each deferred tool's name and description but not its parameter schema. When it wants one, it asks by name, the API loads the schema, and the model emits the function call, all inside one request.
The response shows three steps: tool_search_call, tool_search_result, then function_call. Google says there is "no index to build or host" because the search runs on the server.
Setting defer_loading: true on an mcp_server tool defers every tool that server exposes. Teams with their own registry can declare tool_search with "execution": "client", which adds one round trip per search because their code does the lookup.
It works with Gemini 3.6 and later, including every Gemini 4 model, in the Interactions API only. The code sample uses gemini-4-hydrogen.
What each vendor says it saves
Anthropic's tool search documentation puts numbers on the problem. A multiserver setup with GitHub, Slack, Sentry, Grafana and Splunk "can consume ~55k tokens in definitions before Claude does any work," it says, and tool search "typically reduces this by over 85 percent, loading only the 3–5 tools Claude needs." These are vendor-supplied figures, with no independent test cited.
| Detail | Google Tool Retrieval | Anthropic tool search |
|---|---|---|
| Status | Preview, Interactions API | Marked stable |
| Token saving stated | None | Over 85 percent, vendor-supplied |
| Search variants | Server, or client-side | Regex, BM25, or custom |
| Extra charge | None; standard token rates | Not metered separately |
- All definitions loaded up front55K tokens
- After an 85 percent reduction8250 tokens
Source: Anthropic tool search documentation, accessed 2026-12-02 (vendor figure)
The second bar is arithmetic on Anthropic's "over 85 percent" claim, so treat it as a ceiling on the remaining cost, not a measurement.
What Google leaves out
Google's post gives no quota, rate limit or benchmark for token savings or latency. Its only figures are "50+" deferred functions in a code comment and "hundreds of tools" in the introduction. It says savings occur when unloaded schemas outweigh loaded ones, and advises developers to "measure" against their own traffic.
Each loaded schema is billed as input for the rest of the conversation, as if it had been declared upfront. Enabling tool_search also adds a small, fixed block of input tokens. Google does not say how many.
Caching is where the design matters. Google says deferred schemas stay out of the start of the prompt and loaded ones are appended later, so the cached prefix holds steady across turns. Anthropic's docs describe the same mechanism and add a constraint: a tool with defer_loading: true cannot also carry cache_control, or the API returns a 400. The Terminal's earlier report on Requesty's prompt-cache analysis shows how much a stable prefix is worth in billing terms.
Where the two designs differ in practice
Anthropic's search returns up to 5 matching tools by default, and Claude can set a limit between 1 and 10,000. Its regex variant caps patterns at 200 characters and its BM25 variant caps queries at 500. Google's post gives no equivalent caps, so a developer cannot yet tell how many schemas one search may load.
Anthropic's docs also say when not to bother: with fewer than 10 tools, or definitions under 100 tokens in total, standard tool calling is a better fit. They advise tool search when definitions exceed 10k tokens. Google offers no threshold, only the instruction to measure.
Error handling is documented on one side. Anthropic lists invalid_tool_input, unavailable and too_many_requests codes for failed searches and says a search that matches nothing returns an empty tool_references array, not an error. Google's post describes no failure modes. For a preview, that is normal; for anyone planning production traffic, it is a gap.
Limits worth knowing before adopting either
Anthropic's docs set a ceiling of 10,000 deferred tools per request and say selection accuracy degrades "once you exceed 30–50 available tools." They recommend keeping the 3–5 most used tools non-deferred. Google gives the same advice without a number: leave frequently used tools undeferred.
Both still require sending every tool definition on every request. Anthropic says so outright: "You still send every tool's full definition in the tools array on every request." The saving is in the model's context window, not in the request payload.
For teams building agents on models like Amazon's Ergo, neither feature applies, since both are tied to each vendor's hosted API.
Google's feature is a preview, so the next thing to watch is whether the documentation at aistudio.google.com/docs/tool-retrieval gains a measured token figure before general availability.
Sources
More in Software
- 01Willison Says SVG-Writing LLMs Beat Image Models; His Kākāpō Poster Drew PushbackSimon Willison argues editable code beats pixels for diagrams and posters. A 415-point Hacker News thread agreed on editability and attacked the sample's anatomy.
- 02GameMaker Copies Godot's AI Contribution Rules, Down to the 15-Line LimitThe commercial engine's source-available release comes with a policy that bars AI agents from opening pull requests and AI text from discussions.
- 03Draftmux, an MIT-Licensed Editor for Agent-Written PR Text, Has 170 Stars and 10 ReleasesRaine Virta's tool forks your Claude Code or Pi session to draft GitHub and Slack messages beside a live preview. Hacker News gave it 222 points and a fair amount of scepticism.
- 04Astral's ty Reaches 1.0 With 14 False Positives in the Conformance Suite, Down From 224The Rust-based Python type checker is now stable, but its speed lead over Pyrefly is measured by Astral on one laptop, and Pyrefly says it still wins on PyTorch.