Switchcraft: AI Model Router for Agentic Tool Calling
Sharad Agarwal, Pooria Namyar, Alec Wolman, Rahul Ambavat, Ankur Gupta, Qizheng Zhang

TL;DR
Switchcraft is a cost-effective model router for agentic AI systems that selects the lowest-cost model while maintaining correctness, significantly reducing inference costs in tool calling tasks.
Contribution
It introduces Switchcraft, the first model router optimized for agentic tool calling, achieving high accuracy and substantial cost savings.
Findings
Switchcraft achieves 82.9% accuracy on function-calling benchmarks.
It reduces inference costs by 84%, saving over $3,600 per million queries.
Larger models do not always outperform smaller ones on tool-use tasks.
Abstract
Agentic AI systems that invoke external tools are powerful but costly, leading developers to default to large models and overspend inference budgets. Model routing can mitigate this, but existing routers are designed for chat completion rather than tool use. We present Switchcraft, the first (to the best of our knowledge) model router optimized for agentic tool calling. Switchcraft operates inline, selecting the lowest-cost model subject to correctness. We construct an evaluation framework on five function-calling benchmarks and train a DistilBERT-based classifier, deployed under a latency budget. Switchcraft achieves 82.9% accuracy -- matching or exceeding the best individual model -- while reducing inference cost by 84%, saving over $3,600 per million queries. We find that larger models do not consistently outperform smaller ones on tool-use tasks, and that nominally cheaper models…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
