Which open-source model should route your agent's tools? A 2026 buyer's guide to small router models
Pick by tool count and traffic, not by headline scores. Every published router score comes from its own authors, licences differ sharply, and a self-hosted router can cost more than the calls it saves.
The best open-source model for agent tool routing depends on how many tools your agent has and how much it spends on its main model. With fewer than about 20 tools, an Apache 2.0 function-calling model such as Qwen3, Gemma 4 or SmolLM3-3B can pick the tool itself. With hundreds of tools, the MIT-licensed semantic-router can shortlist candidates first. To send easy turns to a cheaper model, RouteLLM is Apache-2.0, while Arch-Router-1.5B needs a commercial licence from DigitalOcean.
The right router depends on tool count, hardware and traffic volume
No one has published a benchmark that runs these options on the same test sets with the same harness. Each project reports figures that its own authors measured on data that they chose. The table below therefore sorts the options by the situation that each one fits, not by score.
| Your situation | Option | Licence | Published evidence |
|---|---|---|---|
| Fewer than about 20 tools | Qwen3, Gemma 4, SmolLM3-3B | Apache 2.0 | Vendors' own BFCL or Tau2 scores |
| Laptop or edge hardware | toolcall-2b, qwen3-0.6b-tool-router | Apache 2.0 | Authors' own BFCL scores |
| Hundreds of tools | semantic-router | MIT | No accuracy figures published |
| Cheaper model for easy turns | RouteLLM | Apache-2.0 | Authors' MT Bench chat results |
| Routing by domain or action | Arch-Router-1.5B | Katanemo Community License | Authors' routing score of 93.17% |
| High volume with deferral | TOD, from Parsec | Apache-2.0 adapters on Gemma 4 | Parsec's own Tau2 run |
The first three rows choose which tool to call next. The next two rows choose which model handles the next step. The last row picks a tool and hands uncertain turns back to the main model.
With fewer than about 20 tools, a general function-calling model can choose the tool directly
OpenAI's function-calling guide advises keeping fewer than 20 functions available at the start of a turn. The guide calls this a soft suggestion and recommends testing with different numbers of tools. Below that size, a separate router adds a component without removing much work.
Three Apache 2.0 model families fit this case:
- Qwen3 models support tool calling, and the Qwen3-4B card recommends the Qwen-Agent library to handle tool templates and parsers.
- Gemma 4 E2B and E4B include native structured tool use. Google reports Tau2 scores of 24.5% for E2B and 42.2% for E4B.
- SmolLM3-3B accepts tools through
xml_toolsorpython_tools. Hugging Face reports a BFCL score of 92.3 in no-thinking mode.
These scores come from different tests, so they cannot be ranked against each other. Run all three on your own tool list before choosing.
On laptop or edge hardware, small fine-tuned models gain tool-call accuracy but decline fewer irrelevant requests
Two community fine-tunes target small devices. The author of toolcall-2b, a fine-tune of Qwen3.5-2B, reports that a quantized build runs on a laptop CPU at roughly 33 tokens per second. On BFCL v4, its non-live single-turn score rose from 60.08 to 83.25 after fine-tuning. Its overall score across 22 categories rose from 33.85 to 36.35. The author says that the web-search score is unreliable because of API quota limits. On the 20-category mean that the author prefers, the score rose from 48.13 to 59.05.
The same card shows a cost. The irrelevance score, which checks whether the model declines to call a tool when no tool fits, fell from 77.9 to 72.5. An agent that calls a wrong tool on an unrelated request can take an expensive detour.
qwen3-0.6b-tool-router is smaller still and targets strict JSON schemas. Its author reports selected BFCL subscores, including 90.89% on relevance detection and 62.86% on live simple calls. It had 23 downloads last month, so it has seen little use so far.
With hundreds of tools, an embedding router should shortlist candidates before a model chooses
A long tool list fills the prompt and makes the choice harder for the main model. An embedding router solves this by matching the request against examples, without calling a language model at all.
semantic-router, from Aurelio Labs, works this way under an MIT licence. Each route has a name and a list of example utterances. An encoder such as FastEmbed turns both the request and the examples into vectors, and the closest route is chosen. The README claims that routing "decides in milliseconds" but publishes no accuracy or latency figures. You will have to measure both on your own catalog. The README also shows how to fit a confidence threshold on labelled queries with router.fit(), so that a request with no good match returns no route.
A short list of candidate tools then goes to a function-calling model, which makes the final pick. Teams that already use OpenAI models can use the built-in tool_search instead, which defers rarely used tools on gpt-5.4 and later.
To send easy turns to a cheaper model, RouteLLM is open and Arch-Router needs a licence
Model routers solve a different problem from tool routers. They decide which model should handle a step, usually to save money on easy steps.
RouteLLM, from LMSYS, is Apache-2.0. It routes each request between a stronger, more expensive model and a cheaper one, using one of several router types. Its authors report up to 85% lower cost while keeping 95% of GPT-4 performance on MT Bench. That test measures chat quality, not tool calls, and the authors recommend calibrating the cost threshold on your own queries.
Arch-Router-1.5B, from Katanemo, routes queries to domains or actions that you define. Its authors report an overall routing score of 93.17% and 51 milliseconds per query on an AWS L40S instance. The weights are free to download. The licence file, however, requires "a separate commercial license from DigitalOcean", a "Built with DigitalOcean" notice, and the prefix "DigitalOcean" on the name of any model built from it.
Switchcraft, from Microsoft researchers, targets tool calls directly. Its October 2026 revision reports 78.3% accuracy at 59% lower cost than the best single model. Microsoft Research's publication page, dated May 2026, still lists 82.9% accuracy and about 84% lower cost, so check which version a quoted figure comes from. Neither its arXiv page nor its Microsoft Research page links any code, so a team would have to rebuild it from the paper.
At high volume, a router with a defer option saves money only on the turns that it keeps
A router that handles every turn can make costly mistakes on the turns where it is unsure. A safer design handles only the turns where it is confident and defers the rest to the main model. This design depends on calibration, which means that a confidence of 95% should be right about 95% of the time. No project in this guide publishes coverage-versus-accuracy curves at 95% or 99% precision, so the safe share of traffic for each router has not been measured.
TOD, a decision model from Parsec, follows the defer design. It ranks the next tool from a list that the caller supplies and passes uncertain turns unchanged to the parent model. Its model card lists Apache-2.0 LoRA adapters on Gemma 4 12B. Parsec's TOD page lists a price of $0.30 per 1,000 decisions and reports that TOD served 30.8% of tool decisions on Tau2-bench retail in a conservative setting. That is Parsec's own result from 29 September 2026, and no independent re-run has been published. Parsec's MIT-licensed openjev-sdk can turn OpenAI-style tool-calling logs into training data, using spec_from_tools and episodes_from_traces. No before-and-after result on a public tool-calling set has been published for it. TOD leaves free-text arguments to the parent model, and its repository states that it is "not state of the art" on JevBench accuracy.
A self-hosted router pays off against gpt-5.4 but not against gpt-5.4-mini at 1 million decisions a month
The price of the main model decides whether a router can save anything. A worked example makes this concrete. Every figure below is a list price or a stated assumption.
The example rests on these assumptions:
- The agent makes 1 million tool decisions a month.
- Each main-model call sends 6,000 input tokens, of which 4,000 are cached, and returns 150 output tokens.
- The router runs on one Together H100 dedicated endpoint, at $5.49 an hour for 720 hours, which is $3,952.80 a month.
On OpenAI's gpt-5.4, list prices are $2.50 per million input tokens, $0.25 per million cached tokens and $15.00 per million output tokens. Each call costs about $0.00825, or $8,250 a month. The router breaks even when it correctly handles about 48% of turns.
On gpt-5.4-mini, list prices are $0.75, $0.075 and $4.50 for the same three token types. Each call costs about $0.002475, or $2,475 a month. That whole bill is smaller than the GPU, so a dedicated H100 router cannot save money at this volume even if it handles every turn.
By the same arithmetic, small routers on cheaper hardware, and routers that share a GPU with other work, need a smaller share of turns to break even. Whether one H100 can carry this traffic for each open router has not been measured.
Test the shortlisted routers on your own logged tool calls before you choose
Because every published figure comes from a different test, the only reliable comparison is one that you run yourself. Public sets such as ToolACE, built from 26,507 APIs, and Hermes function-calling-v1 are Apache-2.0 and work for a first pass. Your own logs decide the result.
A useful test follows these steps:
- Export a few thousand logged tool calls, together with the tool list that the agent saw at each turn.
- Give each router the same tool list in the same format, and record top-1 and top-3 tool accuracy.
- Include turns where no tool should be called, and record whether each router declines them.
- Record each router's confidence score, and find the share of turns that it keeps at 95% and 99% precision.
- Measure p50 and p95 latency on the hardware that you will run in production.
Multiply the share of turns kept at 99% precision by your main-model cost per call, and compare the result with the router's monthly cost.
Sources
- OpenAI, Function calling guide: https://developers.openai.com/api/docs/guides/function-calling
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- Together, Pricing: https://www.together.ai/pricing
- Qwen3-4B model card: https://huggingface.co/Qwen/Qwen3-4B
- Gemma 4 E4B model card: https://huggingface.co/google/gemma-4-E4B-it
- SmolLM3-3B model card: https://huggingface.co/HuggingFaceTB/SmolLM3-3B
- toolcall-2b model card: https://huggingface.co/ajvikram/toolcall-2b
- qwen3-0.6b-tool-router model card: https://huggingface.co/AryanNsc/qwen3-0.6b-tool-router
- Berkeley Function Calling Leaderboard: https://gorilla.cs.berkeley.edu/leaderboard.html
- Aurelio Labs, semantic-router repository: https://github.com/aurelio-labs/semantic-router
- LMSYS, RouteLLM repository: https://github.com/lm-sys/RouteLLM
- Katanemo, Arch-Router-1.5B model card: https://huggingface.co/katanemo/Arch-Router-1.5B
- Katanemo, Arch-Router-1.5B licence: https://huggingface.co/katanemo/Arch-Router-1.5B/blob/main/LICENSE
- Arch-Router: Aligning LLM Routing with Human Preferences: https://arxiv.org/html/2506.16655v1
- Switchcraft: AI Model Router for Agentic Tool Calling, arXiv: https://arxiv.org/abs/2605.07112
- Microsoft Research, Switchcraft publication page: https://www.microsoft.com/en-us/research/publication/switchcraft-ai-model-router-for-agentic-tool-calling/
- ToolACE dataset: https://huggingface.co/datasets/Team-ACE/ToolACE
- Hermes function-calling-v1 dataset: https://huggingface.co/datasets/NousResearch/hermes-function-calling-v1
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, TOD model card: https://huggingface.co/parsecai/tod
- Parsec, TOD repository: https://github.com/daseinlabs/tod
- Parsec, open-jev SDK guide: https://github.com/daseinlabs/open-jev/blob/main/docs/tod-sdk.md