Embedding-Based Tool Selection for AI Agents
zarar.dev·6d·
Discuss: Hacker News
🔧Code Generation
Preview
Report Post
  • 21 Dec, 2025 *

When I first built our AI assistant, it had five tools. Look up an order. Process a refund. Check ticket availability. Simple stuff. Fast forward six months and we’re at nearly 40 tools spanning orders, events, marketing campaigns, contests, and customer management.

The problem became obvious during a routine cost review: we were burning thousands of tokens on every single request just describing tools the model would never use. Someone asks "What time does my show start?" and we’re sending the full spec for process_refund, create_email_campaign, and manage_contest_prizes. Wasteful.

The Tool Explosion Problem

Each tool definition isn’t trivial. You need a name, a description detailed enough for the LLM to understand when to use it, and parameter sp…

Similar Posts

Loading similar posts...