Google just made it easier to build AI assistants that can handle hundreds of tasks without slowing down. The company has launched Tool Retrieval in the Gemini API, available now in preview. For anyone building or using AI-powered apps, this matters because it makes those apps faster, cheaper to run, and better at picking the right action.

The problem this fixes

When an AI agent connects to dozens or even hundreds of tools, every request normally has to include the full details of every single one. That adds up. It inflates the number of input tokens (the units of text an AI processes, which determine cost and speed), makes the system slower, and makes the agent more likely to pick the wrong tool when the list gets long. Tool Retrieval solves this by letting an agent keep its full library of tools on standby and only pull in the specifics for whatever the current task actually needs.

The feature is available today through the Interactions API, which is Google’s interface for building multi-step AI agents. It works with Gemini 3.6 and later models, including all Gemini 4 models.

How it works in practice

Think of it like a chef who knows every recipe in a large cookbook but only opens to the relevant page when cooking a specific dish. The agent always knows the name and description of every tool available. It just does not carry the full instructions for all of them at once.

To switch this on, developers add a special tool called tool_search to their request and mark the tools they want to hold back with a flag called defer_loading. The model still sees each tool’s name and description, so it knows what exists. When it decides a particular tool is needed, it requests the full details by name, the API loads them, and the model uses them, all within the same request.

Here is a concrete example from the source. A user sends a message: “Order A-1042 arrived damaged. Please refund 40 dollars.” The model identifies that it needs a refund tool, asks for it by name, receives its full parameters, and then calls the function. The developer’s code then runs the actual refund and sends the result back. The whole lookup and decision process happens inside one API call, with each step logged so developers can inspect what happened.

Google handles the search on its servers, so developers do not need to build or maintain their own search index. If a team does have their own internal tool registry, they can run the search on their own side instead, with a small extra step per lookup.

Tool Retrieval also works with remote MCP servers (external servers that expose collections of tools) in the Gemini API. Setting the defer flag on an MCP server means every tool that server offers is loaded on demand, without listing them individually.

On cost: there is no separate charge for Tool Retrieval. Tokens are billed at standard rates. Each schema (the full set of parameters for a tool) that the model actually loads is billed as input for the rest of that conversation. The savings come from never loading the schemas for tools the model does not use, which Google says is the typical case for large tool libraries.

What this means if you use AI-powered apps

You may not interact with the Gemini API directly, but many apps and services are built on top of it. As developers adopt Tool Retrieval, the AI assistants inside those products should become more responsive and more accurate when choosing between many possible actions. A customer support bot handling a wide range of requests, for example, could become faster and less likely to pick the wrong option.

What to watch

Tool Retrieval is currently in preview, meaning it is available for testing but not yet fully released. Watch for it to move to general availability and for developers to report real-world token savings from their own traffic. It will also be worth following whether this approach spreads to other AI platforms facing the same scaling problem.