Oriel — AI & technology worth noticing, every day.

Introducing Tool Retrieval in the Gemini API

Web page · https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval

Give your agents access to hundreds of tools while using fewer tokens with Tool Retrieval, now in preview in the Gemini API.

First seen by Oriel on .

AI summary

Google’s Tool Retrieval preview for the Gemini Interactions API loads tool schemas on demand, reducing prompt size and helping agents select accurately from large tool libraries.

  • Agents expose tool names and descriptions while deferring parameter schemas with defer_loading: true and a tool_search tool.
  • Gemini searches for a needed tool, loads its schema, and emits the function call within one API request; each step appears in interaction.steps.
  • Server-side retrieval requires no index or hosting, while client-side retrieval supports custom registries and permission filters but adds one round trip per search.
  • Remote MCP servers can be deferred as a whole, and prefix caching remains effective because deferred schemas stay outside the prompt’s cached prefix.
  • There is no separate charge; loaded schemas count as input tokens, and Tool Retrieval works with Gemini 3.6 and later models in the Interactions API.

#gemini api #tool retrieval #function calling #mcp

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
Google AI Bloghttps://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval/https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval/ Read discussion