Skip to main content
AI Architecture & Engineering3 min read

Google Adds Tool Retrieval to Gemini API to Trim Token Costs for AI Agents

Google has launched Tool Retrieval for the Gemini API in preview, allowing AI agents to search hundreds of tools without bloating prompts.

Jamie Scott
Jamie Scott
Co-Founder & Director Data and AI • Lever Scott International
Key Takeaways
  • ›Google's new Tool Retrieval feature loads only relevant functions on demand rather than packing entire tool libraries into prompts.
  • ›The native index reduces token usage and response latency, making multi-system enterprise agents cheaper to run in production.
  • ›Engineering teams can now build broader internal assistants across finance, HR, and CRM without having to build custom routing workarounds.

Google has introduced Tool Retrieval in the Gemini API, launching the feature in preview on 19 November 2026. The update allows AI agents to access hundreds of external tools while using significantly fewer tokens per request.

For engineering teams building agentic software, this addresses one of the most persistent bottlenecks in production: context window bloat. Until now, giving an AI agent access to a large library of functions meant loading every single tool definition into the prompt upfront, driving up latency and API bills before the model even started thinking.

Trimming the Context Window Diet

In plain terms, a “tool” is any external capability you give an AI model, such as querying a SQL database, checking a calendar, or calling a payment API. Previously, if your agent needed access to 200 different internal tools, you had to paste the instructions for all 200 into the system prompt on every single turn.

Tool Retrieval changes that workflow by acting like a smart index. Instead of reading every manual in the library, the Gemini model dynamically searches for and loads only the specific tool definitions relevant to the user’s immediate request.

By keeping unused tool descriptions out of the active prompt, teams can cut down on token consumption—the basic units of text that AI providers bill for. Fewer tokens also mean faster response times and less chance of the model getting confused by irrelevant instructions.

Scaling Agents Without Breaking the Budget

This release is a practical step forward for enterprise AI architecture. Many organisations want to build a single, capable assistant that can work across HR, finance, CRM, and engineering systems, rather than maintaining dozens of isolated bots.

Without a mechanism like Tool Retrieval, connecting that many systems to one agent quickly becomes too expensive and too slow to run in production. Google’s approach lets architects wire up broad, multi-system capabilities while keeping the runtime footprint lean.

It also puts pressure on rival model providers to offer similar native filtering. While some developers have built their own workarounds using vector databases to pre-filter tools, having it built directly into the Gemini API removes extra plumbing from the codebase.

What This Means for UK and European Teams

For UK and European engineering leaders, the takeaway is straightforward: you can start designing broader, more capable internal agents without immediately hitting a cost wall. If your teams have been holding back on connecting an agent to your full suite of internal APIs due to token spend, Tool Retrieval is worth testing in your next prototype.

It also shifts the focus of specialist AI deployments. Rather than spending weeks writing custom routing logic to keep prompts small, data and AI engineers can focus on writing clean, well-documented tool definitions and robust security permissions.

As more companies move from simple chatbots to agents that actually execute tasks, managing token efficiency at the API level will separate viable production systems from expensive experiments. Tool Retrieval is still in preview, but it signals where enterprise agent architecture is heading.

Topics:#Google#Gemini#AI Agents#Software Engineering#APIs
Jamie Scott

About Jamie Scott

Co-Founder & Director Data and AI

Co-Founder & Director Data and AI at Lever Scott International. Personally advising technology and engineering leaders across the UK and Europe on high-consequence Data & AI delivery and specialist opportunities.

Related Executive Briefings

View All Insights →

Ready to build your technical capability?