LinkedIn analytics tracking pixel for AIDOLS AI consulting website performance measurement
Deployment & Operations

Tool Router

A tool router is a layer in an agent system that selects which tool (or subset of tools) to expose to the model for a given query, instead of putting all tool definitions in every prompt.

Full definition

Models degrade as the tool count grows past 20-50 — accuracy of tool selection drops, and prompt cost rises. Tool routers solve this by retrieving a small candidate set (semantic search over tool descriptions, hierarchical category routing, or a fine-tuned classifier) and showing the model only those tools. Modern stacks: OpenAI Assistants v2 file search + custom routers, Anthropic MCP servers with selective exposure, LangChain ToolRetriever.

Why it matters

Any enterprise agent with >30 tools needs a tool router to stay accurate and affordable. Without one, prompt cost grows linearly with tool count and selection accuracy collapses — a common reason agent pilots fail to scale.

Example

An IT-helpdesk agent has 240 tools across systems; a tool router (BGE embedding over tool docstrings) returns the top-8 candidates per query, raising tool-selection accuracy from 51% to 89% and cutting prompt tokens 70%.

Source & further reading

Primary source: OpenAI — "Function calling and other API updates" (2024).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/fr/glossary/tool-router/.