Manuscript Offprint

arXiv:2609.07370

Beyond Fluent Generation: A CPU Reliability Benchmark for MCP-Style Tool Calling in Sub-2B Small Language Models for Edge Deployment

Abrar Shahriar Qurat-Ul-Ain Mastoi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Resource-constrained edge computers including Raspberry Pi, NVIDIA Jetson Nano, Arduino UNO Q, Orange Pi, and LattePanda platforms motivate local small language model (SLM) agents that can operate with reduced cloud dependence, improved data locality, and intermittent connectivity. Yet Model Context Protocol (MCP)-style tool use requires more than fluent generation: an agent must emit machine-readable structure, identify the intended tool, reproduce correct arguments, and avoid unintended actions. This study establishes a platform-agnostic CPU baseline by evaluating five open-weight models below two billion parameters Phi-1.5, Pythia-1.4B, TinyLlama-1.1B Chat, Qwen2.5-0.5B, and Qwen2.5-1.5B on 100 controlled prompts spanning weather retrieval, web search, calculation, email composition, and task creation. Each checkpoint is tested with greedy decoding and nucleus sampling. The recovery parser removes Markdown fences, extracts a brace-delimited substring, and measures parseability, tool-name correctness, argument presence, and value agreement. Under this recovered-call criterion, Qwen2.5-1.5B reaches 75% with greedy decoding and 79% with sampling, while Qwen2.5-0.5B reaches 72% and 32%, respectively. Phi-1.5 scores 0% in both conditions, and Pythia and TinyLlama remain at or below 7%. A strict post-hoc audit finds that only 5 of 1,000 complete raw responses are directly parseable as JSON, demonstrating strong dependence on output recovery. In a separate three-prompt CPU probe, Qwen2.5-1.5B records the highest process memory (7,960 MiB) and mean latency (30.782 s), whereas Qwen2.5-0.5B uses 3,637 MiB and averages 10.627 s. The results expose a reliability resource trade-off relevant to prospective edge deployment, but they do not constitute direct measurements on the named boards or a complete MCP implementation. Safe deployment requires schema validation, constrained generation or repair, least-privilege execution, and escalation for consequential actions.

Keywords: small language models; tool calling; structured generation; edge inference; JSON; agent reliability

1 Introduction

Language models can extend their capabilities by invoking calculators, search systems, databases, and other external services. Early tool-use work demonstrated that a model can learn when and how to call an API (Schick et al., 2023), while API-focused systems showed that correct tool names and arguments remain difficult even for substantially larger models (Patil et al., 2023). Once an output can trigger an external action, fluent text is no longer sufficient: a malformed call can halt a workflow, and a syntactically valid but semantically wrong call can modify state, disclose information, or contact the wrong recipient.

SLMs offer a compelling deployment alternative for edge computing devices. Local inference may reduce network dependence and data exposure, but it remains constrained by memory capacity, bandwidth, compute, energy, and thermal limits. Surveys and edge benchmarks consequently evaluate both capability and systems cost rather than treating parameter count as a complete proxy for deployability (Lu et al., 2025; Chen et al., 2025). Application-specific training may also allow a narrow model to outperform a larger general model on a bounded task (Kandala et al., 2024; Jhandi et al., 2025). These observations motivate a joint question aligned with the title of this study: how reliably can an unmodified sub-2B model produce MCP-style tool calls, and what CPU resource cost accompanies that reliability?

This study makes four contributions. First, it presents a controlled benchmark of JSON-based tool-call generation for five open-weight models below 2B parameters. Second, it separates recoverable syntax, tool identification, argument completion, value agreement, and extra-argument control. Third, it compares greedy and sampling decoding on the same 100 prompts and reports paired tests as well as Wilson confidence intervals. Fourth, it reports a separate local CPU resource probe and explicitly audits the gap between whole-response strict JSON and JSON recovered by an extraction layer.

The experiment is best understood as a controlled, MCP-inspired function-call baseline, not as a full Model

Context Protocol (MCP) evaluation. It does not perform tool discovery, client/server messaging, live execution, or multi-step trajectories. This distinction is important because MCP benchmarks include long tool descriptions, variable execution outcomes, intermediate observations, and both single- and multi-step calls (Fan et al., 2025).

The prospective hardware landscape is heterogeneous. Raspberry Pi 5 and Orange Pi 5 are Arm-based single-board computers, while NVIDIA Jetson Nano is an embedded platform designed for AI applications (Raspberry Pi Ltd, 2026; Orange Pi, n.d.; NVIDIA, n.d.). Arduino UNO Q combines a Debian-capable microprocessor environment with a real-time microcontroller, and LattePanda provides x86 single-board computer families (Arduino, n.d.; LattePanda, n.d.). These differences in architecture, acceleration, memory, operating environment, and power constraints make it unsafe to infer board-level deployability from parameter count alone. The present CPU experiment therefore supplies a controlled reliability and resource baseline for future device-specific evaluation; Raspberry Pi, NVIDIA Jetson Nano, Arduino UNO Q, Orange Pi, and LattePanda were not directly tested.

References (22)