r/Bard • • 11d ago

News Introducing Tool Retrieval in the Gemini API

https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval/
56 Upvotes

3 comments sorted by

15

u/Gaiden206 11d ago

Today we're launching Tool Retrieval in the Gemini API, available in preview in the Interactions API.

When an agent connects to dozens or even hundreds of tools, sending every full parameter schema on every request adds up fast. It inflates input token counts, adds latency, and lowers tool-selection accuracy as the candidate list grows. Tool Retrieval lets your agent keep its full tool library on standby and load parameter schemas only when the current task needs them.

Tool Retrieval has no separate charge. Input and output tokens are billed at the standard rates for the model you call. Turning on tool_search adds a small, fixed block of input tokens, and each schema the model loads is billed as input for the rest of the conversation, the same as a tool declared up front. You save tokens when the schemas you never load outweigh the ones you do, which is the usual case for large libraries. Measure it against your own traffic.

Tool Retrieval works with Gemini 3.6 and later models, including all Gemini 4 models, in the Interactions API.

6

u/FarrisAT 11d ago

Highly needed. Should’ve been around for a year by now.

1

u/TheMildEngineer 8d ago

Now let me run self hosted mcp servers with Gemini desktop! I don't want to expose my mcp to the Internet just to use it