GadgetBond

  • Latest
  • Features
  • How-to
  • Tech
    • AI
      • Apple Intelligence
      • Gemini AI
      • Google DeepMind
      • Anthropic
      • Claude AI
      • Claude Code
      • OpenAI
      • ChatGPT
      • Codex
      • Perplexity
      • SpaceXAI
      • Grok AI
      • Microsoft Copilot
      • Meta AI
    • Amazon
    • Apple
    • CES
    • Computing
    • Creators
    • Google
    • Meta
    • Microsoft
    • Mobile
    • NVIDIA
    • Samsung
    • Security
    • Smart Home
    • Sony
    • Xbox
    • YouTube
  • Transportation
    • Audi
    • BMW
    • Cadillac
    • E-Bike
    • Ferrari
    • Ford
    • Honda Prelude
    • Lamborghini
    • McLaren
    • Mercedes
    • Porsche
    • Rivian
    • Tesla
  • Culture
    • Gaming
    • Streaming
    • Apple TV
    • Disney
    • Hulu
    • Marvel
    • HBO Max
    • Netflix
    • Paramount
    • SHOWTIME
    • Spotify
    • Star Wars
Add GadgetBond as a preferred source to see more of our stories on Google.
Font ResizerAa
GadgetBondGadgetBond
  • Latest
  • Tech
  • AI
  • Features
  • Deals
  • How-to
  • Apps
  • Computing
  • Gaming
  • Mobile
  • Streaming
  • Transportation
Search
  • Latest
  • Deals
  • Buying Guide
  • How-to
  • Features
  • Tech
    • Amazon
    • Apple
    • CES
    • Computing
    • Creators
    • Google
    • Meta
    • Microsoft
    • Mobile
    • NVIDIA
    • Samsung
    • Security
    • Smart Home
    • Sony
    • Xbox
    • YouTube
  • AI
    • Apple Intelligence
    • Gemini AI
    • Google DeepMind
    • Anthropic
    • Claude AI
    • Claude Code
    • OpenAI
    • ChatGPT
    • Codex
    • Perplexity
    • SpaceXAI
    • Grok AI
    • Microsoft Copilot
    • Meta AI
  • Transportation
    • Audi
    • BMW
    • Cadillac
    • E-Bike
    • Ferrari
    • Ford
    • Lamborghini
    • McLaren
    • Mercedes
    • Porsche
    • Rivian
    • Tesla
  • Culture
    • Gaming
    • Streaming
    • Apple TV
    • Disney
    • Hulu
    • Marvel
    • HBO Max
    • Netflix
    • Paramount
    • SHOWTIME
    • Spotify
    • Star Wars
Follow US
AIGoogleTech

Google launches Tool Retrieval in the Gemini API to load tool schemas on demand and cut token costs

Google introduces Tool Retrieval for the Gemini API, allowing AI agents to load function schemas only when needed.

By
Shubham Sawarkar
Shubham Sawarkar's avatar
ByShubham Sawarkar
Editor-in-Chief
Shubham Sawarkar is a technology journalist at GadgetBond, covering Apple, AI, consumer technology, software, gadgets, and product launches. His work explores emerging technologies, industry developments, product...
Follow:
- Editor-in-Chief
Nov 20, 2026, 9:00 AM EST
Share
We may earn a commission when you buy through our links. Learn more
Glowing four-pointed Gemini spark icon centered against a dark blue space background filled with distant stars.
Image: Google
SHARE

Google is giving developers a new way to make AI agents more efficient when working with large collections of tools. Its newly introduced Tool Retrieval feature for the Gemini API allows models to load tool parameter schemas only when needed, rather than including the complete definitions of every available tool in every request.

The feature is now available in preview through Google’s Interactions API. It addresses a growing challenge for developers building AI agents that rely on dozens or even hundreds of functions, integrations, and external services.

When an agent has access to a large tool library, every API request can carry substantial overhead. Sending the complete parameter schemas repeatedly increases input token consumption, adds latency, and can make it harder for a model to select the right tool from an increasingly large list.

Tool Retrieval is designed to address all three problems by keeping most tool schemas out of the initial context until the model actually needs them.

How Tool Retrieval works

Previously, developers generally had to provide the full definitions of their available functions in API requests. With Tool Retrieval, they can still declare their tools upfront but defer loading their detailed parameter schemas.

To enable the feature, developers add a tool_search tool to their request and set defer_loading: true on functions they want to make available on demand.

The model continues to see the name and description of each deferred tool, allowing it to understand what capabilities are available. However, the complete parameter definitions remain outside its initial context.

When the model determines that it needs a particular function, it requests that tool by name. The Gemini API retrieves its full schema and makes it available to the model, which can then generate the corresponding function call.

Importantly, Google’s server-side implementation handles the search and schema retrieval within the same API request. Developers don’t need to build or maintain a separate search index for this functionality.

Google also provides visibility into the retrieval process through the interaction’s steps. Developers can inspect the tool search request, the retrieved schema, and the resulting function call, making it easier to understand how an agent selected a particular function.

Server-side and client-side retrieval options

Google offers two approaches to Tool Retrieval, depending on how developers manage their tool libraries.

Server-side retrieval is the simpler option. Gemini handles the search and retrieves the required schemas automatically. It is particularly useful for applications with large, relatively stable tool libraries, where reducing additional network round trips is important.

Client-side retrieval provides more control. Developers can connect their own tool registries, embedding indexes, search systems, or permission filters. Instead of having Gemini retrieve schemas directly, the model requests a search through a developer-defined function, and the application returns matching tool definitions.

This approach also allows applications to introduce new tools during an ongoing conversation. For example, an agent can gain access to additional functions when a user connects a new service or integration.

The trade-off is latency. Client-side retrieval requires an additional round trip for each search because the application has to perform the lookup and return the matching schemas.

Google also highlights compatibility with remote Model Context Protocol (MCP) servers. Developers can defer loading an MCP server’s tools, allowing Gemini to retrieve individual capabilities when required instead of loading the entire collection upfront.

Lower token consumption without an additional feature charge

Tool Retrieval does not come with a separate usage fee. Google says input and output tokens continue to be billed at the standard rates for the selected Gemini model.

There is a small fixed input-token overhead for enabling tool_search. Additionally, every schema retrieved by the model is counted as input tokens for the remainder of the conversation, just as it would be if the tool had been included from the beginning.

The potential savings come from avoiding the repeated inclusion of schemas that an agent never actually uses. For applications with extensive tool libraries, the number of schemas left unloaded can significantly outweigh the additional overhead.

Google also says Tool Retrieval works with prefix caching. Because deferred schemas are excluded from the beginning of the prompt and added later when requested, the cached prefix can remain consistent across requests.

That could make the feature particularly useful for agents handling complex workflows, where maintaining a large collection of available functions would otherwise create unnecessary token consumption.

Availability and supported Gemini models

Tool Retrieval is currently in preview and requires the Interactions API using the v1beta API version. It works with Gemini 3.6 and later models, including the Gemini 4 model family.

One important limitation is that Tool Retrieval is currently exclusive to the Interactions API. Google’s existing generateContent method does not support the feature.

Developers can start experimenting with it using the official Tool Retrieval documentation, which includes implementation examples for Python, JavaScript, and REST.

As AI agents become increasingly dependent on external tools and integrations, managing the amount of information models need to process becomes just as important as improving their underlying capabilities. Google’s approach doesn’t change what these agents can do, but it could make building and scaling them considerably more efficient.


Discover more from GadgetBond

Subscribe to get the latest posts sent to your email.

Topic:Gemini AI (formerly Bard)
Leave a Comment

Leave a Reply Cancel reply

Most Popular

Calling OS-level AI agents “hostile to privacy,” Signal restricts mobile screenshots by default
Apple Siri AI settlement could pay $61 per iPhone
Satechi ChargeView 140W charger gets a $25 Black Friday discount
Apple is hiring engineers to create an AI agent that can handle complex tasks across apps
Apple’s longtime iPhone camera software chief Jon McCormack has reportedly retired

Also Read

Blackmagic Ambisonic Microphone mounted on a stand in a forest, illustrating its use for capturing immersive environmental and nature sounds.

Blackmagic Design unveils a $1,695 spatial microphone built with Apple’s ambisonic tech

Front view of the silver Satechi Mac mini Stand & Hub with SSD Enclosure, showing its SD card reader, three USB-A ports, and compact aluminum design beneath a Mac mini.

Satechi Mac mini hub drops to $69.99 for Black Friday

Qobuz's native Apple TV app displayed on a television in a warmly lit living room.

Qobuz launches a native Apple TV app with lossless and Hi-Res music streaming

Disassembled Apple HomeView showing its internal display assembly, aluminum chassis, exposed circuit boards, speaker drivers, and detached speaker components arranged for iFixit's teardown.

iFixit’s Apple HomeView teardown reveals a glue-heavy design that’s tough to repair

VSCO Studio Pro Desktop interface displaying a grid of food photography alongside color adjustment controls, HSL settings, and editing effects on macOS.

VSCO launches Studio Pro Desktop, bringing its iconic photo presets and RAW editing to Mac

Apple MacBook Neo in citrus color.

The MacBook Neo is now $50 off on both storage models

F1 ACADEMY and Apple TV logos displayed side by side above three racing cars speeding across a white background, with purple text reading “Official U.S. Broadcaster of F1 ACADEMY.”

Apple and F1 ACADEMY announce exclusive U.S. broadcast deal ahead of the 2027 season

White sun icon next to "Project Suncatcher" and the "Google" logo over a dark blue, orange, and pink horizon gradient.

Google partners with Blue Origin to launch AI-powered TPU satellites into space in 2029

Company Info
  • Homepage
  • Support my work
  • Latest stories
  • Company updates
  • GDB Recommends
  • Daily newsletters
  • About us
  • Contact us
  • Write for GadgetBond
  • Editorial guidelines
Legal
  • Privacy Policy
  • Cookies Policy
  • Terms & Conditions
  • DMCA
  • Disclaimer
  • Accessibility Policy
  • Security Policy
  • Do Not Sell or Share My Personal Information
Socials
Follow US

Disclosure: We love the products we feature and hope you’ll love them too. If you purchase through a link on our site, we may receive compensation at no additional cost to you. Read our ethics statement. Please note that pricing and availability are subject to change.

Copyright © 2026 GadgetBond. All Rights Reserved. Use of this site constitutes acceptance of our Terms of Use and Privacy Policy | Do Not Sell/Share My Personal Information.