Google just solved the prompt engineering problem nobody wanted to admit they had—how to give an AI agent a toolbox without explaining what every screwdriver does.

The Summary

  • Google launched Tool Retrieval in the Gemini API, letting developers give agents access to hundreds of tools without burning tokens on descriptions for every single one
  • The system automatically retrieves only relevant tool specs when the agent needs them, cutting context overhead by up to 90%
  • This matters because token limits have been the hidden ceiling on agent capability—you can't build a Swiss Army knife AI if you have to describe every blade in the prompt

The Signal

The agent economy has a scaling problem disguised as a prompt engineering problem. You want your agent to do 50 things. But every time you give it a tool, you have to describe what it does, how to use it, what parameters it takes. That's 200-500 tokens per tool. Add 50 tools and you've burned 25,000 tokens just listing the menu before the agent orders.

Tool Retrieval flips the model. Instead of frontloading every tool description into the context window, Google's API indexes your tools separately. When the agent needs to, say, check inventory or send an email, it retrieves only the specs for those functions. The rest stay off the books.

"You can now give agents access to hundreds of tools while using a fraction of the tokens."

This isn't just about saving money on API calls. It's about what becomes possible when agents aren't token-starved. Developers have been building narrow agents—customer support bots that only know five commands, data analysis tools that work with three file types—not because that's what users need, but because context windows filled up fast. Tool Retrieval removes that constraint.

The technique borrows from retrieval-augmented generation, which made LLMs better at facts by letting them pull in relevant documents instead of memorizing everything. Tool Retrieval does the same thing for capabilities. The agent doesn't need to know about every API endpoint in your system. It just needs to know how to find the right one when the moment comes.

Here's what changes:

  • Enterprise agents can integrate with entire software suites instead of three handpicked APIs
  • Multi-step workflows don't blow the token budget halfway through
  • Agents can operate in environments where the tool list changes without requiring prompt rewrites

Google says developers in preview are already loading 100+ tools into single agents. Before this, that would've been impractical or impossible depending on your context window size. Now it's table stakes.

The Implication

If you're building agents, the bar just moved. Users will start expecting agents that can do dozens of things competently instead of five things well. The winners won't be the teams with the best prompt engineers—they'll be the ones who figured out how to integrate 200 tools and make them all feel native.

For the rest of us, this is the moment specialized AI tools start looking obsolete. Why use ten different agents for ten different tasks when one agent with tool retrieval can handle all of them? The agent consolidation wave is coming.

Sources

Google AI Blog