Research & Papers

How AI Agents Pick the Right Tool for Your Task

How AI Agents Pick the Right Tool for Your Task

⚡This research reveals why your AI assistant might pick the wrong tool for the job

Deep Dive

A production agent harness must discover and rank, from a growing library of skills, the one most appropriate for a user's task. At small scale this selection happens in context: the LLM planner chooses among skill representations exposed in its system prompt, without an explicit embedding-based retrieval step.

We treat this in-context selection as the small-N counterpart to embedding-based skill retrieval at scale, and present a case study of how Tinycloud, a production multimodal video agent harness, represents its skills for the planner. The harness ships skills under two recurring representations: tool-skills that wrap a single external API or system tool and serve as primitive vocabulary, and workflow-skills that orchestrate tool-skill calls plus a template render to produce one named deliverable.

The harness exposes them via two surfaces in the system prompt: an inlined-body surface (full instructions, scripts, templates) for autoloaded skills, and a one-line listing for on-demand skills. A six-task selection ablation across three exposure regimes (all-on, default, all-off) shows that full autoload selects the gold skill on every task; all-off slows execution and produces hard discovery failures; and the production default misroutes one task because its lexical signal collides with an autoloaded tool-skill that pulls planner attention away from a listed workflow-skill. The headline finding is that in-prompt exposure of skills is not monotonically helpful: partial exposure can create lexical competition that suppresses correct selection. We connect this small-N observation to recent retrieval-based skill-routing work at large scale, and frame this contribution as a case study rather than a benchmark.

Key Points
  • AI assistants can get overwhelmed if given too many or unclear tool options, leading to mistakes
  • In one test, showing all skills clearly helped the AI pick the right tool 100% of the time
  • This research helps make AI tools more reliable for everyday tasks like booking or ordering

Why It Matters

Your AI assistant might finally stop ordering pizza when you ask for a flight.

📬 Get the top 10 AI stories daily