On-demand schemas change the cost comparison
Google’s Tool Retrieval preview delays loading function schemas, but server-side searches add billable model calls. The full tools array, including deferred schemas, is still sent with each request. Those schemas remain outside model context until loaded; deferral does not remove them from the request payload. Google introduced the preview on November 19, 2026, through the Interactions API for Gemini 3.6 and later, including Gemini 4. In its server-side example, Gemini receives identifying information, requests a schema by function name and then generates the function call. Those steps happen within one API request, while the application still executes the function. Sources: Google
Google documents server-side retrieval, client-side retrieval and deferred loading for remote Model Context Protocol servers. Frequently used tools can remain eagerly loaded, allowing a hybrid configuration. Developers can therefore choose which definitions enter model context upfront and which enter later. Compare the cost of completing a task, including discovery, rather than just its opening prompt size. Sources: Google
Search inference belongs in the token bill
Deferred tools still occupy some of Gemini’s initial input. Their names and short_description fields, or the first sentence of their descriptions, contribute to total_input_tokens. Each server-side search triggers another model call with the full context and loaded schemas. Google records that prompt processing in total_tool_use_tokens and bills it at the input rate. Retrieved schemas remain in context and cannot be unloaded. Sources: Google
Google says retrieval has no separate fee and adds a small fixed input-token overhead. The announcement does not specify its size. Additional search inference nevertheless consumes billable tokens. Multiple searches can occur within a turn. A search that matches no deferred tool returns text rather than a structured error. Google says client-side retrieval adds one application round trip per search. Its registry implementation and network costs warrant a separate comparison. Sources: Google
Caching also affects the comparison. Google says retrieval preserves the prompt prefix, but a smaller prompt can fall below the minimum size for implicit caching. Its function-calling documentation requires resending the tools array on every request, including requests using previous_interaction_id. Google’s announcement provides no measured token savings, accuracy scores or latency results. Gemini’s practical break-even point therefore remains open. The documented billing behavior alone cannot establish which configuration costs less. Sources: Google
Discovery timing changes potential savings
Deferred loading saves tokens when omitted schemas outweigh extra discovery, history and generated tokens across a conversation. Catalog size alone cannot establish that balance. Large parameter schemas offer more potential savings than compact definitions. Gemini’s retained identifying text also reduces how much deferral removes from the initial prompt. Sources: Google
Eventually using every tool does not automatically erase earlier savings. A schema introduced late was absent from model context during preceding turns, avoiding repeated schema processing during that period. If most schemas become necessary immediately, the opportunity is much smaller. Track when each schema enters model context and how many tools the task eventually uses.
Late discovery creates a competing cost: a server-side search processes the full context and loaded schemas. A longer history can make the eventual search more expensive even as the schema stays outside model context longer. The table below separates the conversation patterns worth testing. Its entries describe hypotheses, not predicted savings. Sources: Google
Table
Conversation patterns and hypotheses to test
| Conversation pattern | Hypothesis to test |
|---|---|
| Few tools used throughout | Strongest opportunity for sustained savings |
| Most tools loaded immediately | Little avoided schema exposure; retrieval may cost more |
| Most tools discovered gradually | Early savings may survive despite high final coverage |
| Repeated discoveries in long context | Extra inference may overwhelm schema savings |
| Stable frequently used subset plus rare tools | Hybrid loading may provide a useful compromise |
Claude’s benchmark isolates unused definitions
Anthropic’s August 19, 2026, experiment compared catalog sizes using Claude Sonnet 5 on a 20-issue triage task. It enabled prompt caching, used default thinking and ran each configuration three times. Catalogs ranged from seven to 502 tools, including two permanent tools and public Model Context Protocol definitions. Eager-loading cost rose from $0.55 to $1.02, while deferred loading stayed between $0.55 and $0.56. Anthropic reported 45.6% savings at 502 tools using unrounded means. Sources: Anthropic
According to Anthropic’s methodology, neither the tool-search tool nor any added catalog tool was called. Runs correctly answered 15 to 18 of the 20 issues, measured against exact expected labels. The experiment therefore isolates the cost of unused definitions without exercising discovery quality or search latency. Its three repetitions also limit statistical precision. It supports testing mostly idle catalogs, but its savings percentage should not be treated as a Gemini estimate. Sources: Anthropic
Compare loading strategies on identical tasks
A Gemini comparison should test eager loading, server-side deferred loading and a hybrid with a predetermined frequent subset kept eager. Hold the model version, prompts, definitions, implementations, outputs and stopping rules constant. For catalog-growth tests, keep required tools fixed while adding distractors. Otherwise, a larger library can become a harder assignment, obscuring the effect of loading strategy.
Test small and large catalogs, with schema sizes measured in tokens. Vary usage from no tools to a repeated subset, a majority of the catalog and the entire catalog. Cross those cases with immediate, gradual and late discovery, plus short and long histories. Include unrelated distractors and similarly named tools with overlapping capabilities. Compare cold and warmed runs while recording actual cache usage.
Begin with deterministic tool stubs to isolate model behavior. Then repeat representative cases with realistic service latency. Pair tasks across configurations, randomize execution order and repeat stochastic runs with uncertainty intervals. Preserve raw usage responses. Before adding totals together, establish whether they include subcategories. The reporting checklist below keeps prompt size from substituting for task performance.
- Record total tokens and cost across requests, internal searches, failures, retries and final responses, with cached input recorded separately.
- Separate selection errors into wrong executed tools, missed necessary tools, unnecessary retrieval and premature stopping.
- Separate schema-invalid arguments from semantically wrong values, and check task success against independent expected results.
- Measure end-to-end median and tail latency, time to the first executable function call and tool execution time.
- Track unique tools loaded and used, cumulative schema tokens, search counts and discovery turns.
Choose from cumulative results
Google’s function-calling documentation suggests considering retrieval beyond approximately 20 to 30 tools. Treat that guidance as a reason to measure, rather than a break-even threshold. Eager loading provides a useful baseline when most definitions become necessary early. Deferred loading offers more theoretical opportunity when large schemas remain unused across many requests. Test hybrid loading when a stable core handles routine work and occasional tasks need a wider catalog. Sources: Google
Plot cumulative tokens by conversation turn and mark discovery events. This shows whether early savings survive later searches. Pair that view with end-to-end latency by catalog size, separating patterns of tool usage. Include unsuccessful runs in aggregate costs and report cost per successful task. This prevents missed tools from appearing efficient. Choose the configuration that meets the application’s accuracy and latency requirements at the lowest measured cost.