Beyond Plain MCP: Do Decision Models and Code Mode Make Tool Use Cheaper and Faster?
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Model Context Protocol (MCP) gateways manage tool catalogs for language model agents using two primary paradigms: code mode where agents write scripts against tool stubs and decision layers which are cheap routers that preselect tool subsets. Using a controlled harness across 12 servers, up to 1,958 distractor tools, and three open-weight agents including Qwen, Gemma, and Nemotron, we present a preregistered evaluation on a sealed test split to determine when each approach succeeds. Code mode substantially outperforms plain MCP, cutting token usage by 70 to 90 percent while significantly boosting utility. Declaring return-shape hints in code mode stubs is a first-order variable, swinging success by up to 39.5 points for lower-performing agents, an effect larger than adding a router. The central hypothesis that a decision layer in front of code mode beats code mode alone is not confirmed, showing minor, statistically non-significant improvements for weaker agents and a slight cost for the strongest. We publicly release our harness, a finetuned 4B tool selection model, and all evaluation traces to support robust community experimentation on local AI privacy and agent architectures.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 25 of its 29 references that are in the map. Submitted 14 Nov 2026.
Builds on
25 of 29 references.
Closest ancestors · 9
Same direction, newest first
- 2026The Bitter Lesson of Tool Calling6 Aug
- 2026Self-Healing Agentic Orchestrators for Reliable Tool-Augmented Large Language Model Systems31 May
- 2026From Tool Orchestration to Code Execution: A Study of MCP Design Choices17 Feb
- 2025MCP-Bench: Benchmarking Tool-Using LLM Agents with Complex Real-World Tasks via MCP Servers28 Aug
- 2025MCP-Zero: Active Tool Discovery for Autonomous LLM Agents1 Jun
- 2025RAG-MCP: Mitigating Prompt Bloat in LLM Tool Selection via Retrieval-Augmented Generation6 May
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
- 2023Gorilla: Large Language Model Connected with Massive APIs24 May
- 2023Toolformer: Language Models Can Teach Themselves to Use Tools9 Feb
Other references · 16
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 809
- 2024Executable Code Actions Elicit Better LLM Agentscited by 633
- 2023An LLM Compiler for Parallel Function Callingcited by 217
- 2025Prompt Injection Attack to Tool Selection in LLM Agentscited by 181
- 2026SkillCraft: Can LLM Agents Learn to Use Tools Skillfully?cited by 34
- 2025MCPToolBench++: A Large Scale AI Agent Model Context Protocol MCP Tool Use Benchmarkcited by 33
- 2025Speculative Actions: A Lossless Framework for Faster Agentic Systemscited by 26
- 2026Parallelizing Tool Execution and LLM Generation for Low-Latency Agent Servingcited by 26
- 2026EvoRoute: Experience-Driven Self-Routing LLM Agent Systemscited by 20
- 2026MCP-ITP: An Automated Framework for Implicit Tool Poisoning in MCPcited by 18
- 2026Real-Time Detection and Repair of LLM Agent Failurescited by 11
4 more
- 2026ACE-Router: Generalizing History-Aware Routing from MCP Tools to the Agent Webcited by 9
- 2026TRUSTDESC: Preventing Tool Poisoning in LLM Applications via Trusted Description Generationcited by 4
- 2026When Does Restricting a Coding Agent to executecode Help? A Regime × Agent-Design Ablationcited by 2
- 2026An Empirical Analysis of Static Analysis Methods for Detection and Mitigation of Code Library Hallucinationscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Model Context Protocol (MCP) Tool Descriptions Are Smelly! Towards Improving AI Agent Efficiency with Augmented MCP Tool Descriptions
- 2026MCP-Atlas: A Large-Scale Benchmark for Tool-Use Competency with Real MCP Servers
- 2025MCPAgentBench: A Real-world Task Benchmark for Evaluating LLM Agent MCP Tool Use
- 2025Tool Preferences in Agentic LLMs are Unreliable
- 2026The Scaffolding Matters More Than the Interface: A Controlled Comparison of MCP and CLI Tool Use Across Seven Agent Scaffoldings, Five Language Models, and One Software Task
- 2025MCP-AgentBench: Evaluating Real-World Language Agent Performance with MCP-Mediated Tools
- 2025ScaleMCP: Dynamic and Auto-Synchronizing Model Context Protocol Tools for LLM Agents
- 2025TheMCPCompany: Creating General-purpose Agents with Task-specific Tools