# Google introduced a tool for more efficient AI agent operations

Google launched Tool Retrieval — a new tool in the Gemini API that allows AI agents to connect the necessary functions as tasks are executed. The development helps reduce the number of processed tokens, decrease latency, and improve the accuracy of tool selection.

The new feature is available in preview via the Gemini Interactions API and is intended for developers creating AI agents with a large number of connected tools.

When working on complex tasks, AI agents can use dozens or even hundreds of functions, including information search, database interaction, document processing, and performing actions in external services.

Previously, developers had to pass the model full descriptions of connected functions with every request. The more tools an agent used, the more tokens were required to process the information. This increased the cost of requests, latency, and the likelihood of selecting an inappropriate function.

Tool Retrieval changes this approach. Now, an AI agent can store a library of tools and load detailed descriptions only for the functions that are necessary for a specific task.

For example, if an agent needs to process a payment refund, it can find the corresponding function, obtain information about the required parameters, and invoke it. At the same time, descriptions of other tools remain outside the request context.

To connect Tool Retrieval, developers need to add the tool\_search tool and enable the defer\_loading parameter for functions whose descriptions should be loaded on demand.

The new capability also supports remote MCP servers. This allows AI agents to connect to external systems and use their tools without pre-loading all available functions.

This approach helps reduce input token consumption and latency when performing complex tasks. At the same time, efficiency depends on the number of connected tools and how many of them the agent uses in a specific request.

Tool Retrieval does not require separate payment. Input and output tokens are billed according to the standard terms of the Gemini API.

The tool supports Gemini 3.6 models and newer, including the Gemini 4 family. Developers can already test the new feature in the Gemini Interactions API.

Source: [blog.google](<https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval/>)
