Gemini API previews tool retrieval: skip tens of thousands of tokens per request
krishnan · x · 2026-11-25
Google's Gemini API now offers tool retrieval in preview, reshaping how agents call tools:
- Instead of sending every tool's full instructions on each request, the model sees a short name and description per tool, loading the full parameter schema only when needed.
- Google's guide notes a few dozen tool definitions can consume tens of thousands of tokens per request, and tool picking gets less accurate as the list grows.
- Two modes: server-side — declare the library up front and Gemini searches it within the same API call; client-side — your app searches its own registry and returns schemas, costing one extra round trip per search but allowing per-user tools mid-conversation.
- The author's key point: retrieval adds a decision before anything runs — which capability to pick — starting to blur "finding a tool" and "being allowed to use it".
More from coding & agent
- Prediction: By End of 2028 AI Will Fix All Bugs and Write All Software — davidpattersonx · 2026-11-25
- Llama app now supports loading multiple local models at the same time — cocktailpeanut · 2026-11-25
- Cohere Labs details checklist-reward training in Soft-SVeRL, presenting at NeurIPS agent workshop — Cohere_Labs · 2026-11-25
- Executor's founder rebuilds onboarding: a prompt you hand to your agent — brezina · 2026-11-25
- Hugging Face inference providers now route through OpenRouter at same prices — pcuenq · 2026-11-25
- Editroom: free open-source 23MB Mac video editor with AI agent editing and MCP — MoldyMagnet · 2026-11-25