|
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
|
| Volume 187 - Issue 136 |
| Published: August 2026 |
| Authors: Abasiono Mbat, Oselumese Agbonrofo, Oladimeji Abaniwonnda, Samuel Oyefusi |
10.5120/ijcae10508249e55
|
Abasiono Mbat, Oselumese Agbonrofo, Oladimeji Abaniwonnda, Samuel Oyefusi . Benchmarking LLM Tool Orchestration in Resource-Constrained Agentic Workflows: Native MCP Function Calling vs Code Mode. International Journal of Computer Applications. 187, 136 (August 2026), 1-9. DOI=10.5120/ijcae10508249e55
@article{ 10.5120/ijcae10508249e55,
author = { Abasiono Mbat,Oselumese Agbonrofo,Oladimeji Abaniwonnda,Samuel Oyefusi },
title = { Benchmarking LLM Tool Orchestration in Resource-Constrained Agentic Workflows: Native MCP Function Calling vs Code Mode },
journal = { International Journal of Computer Applications },
year = { 2026 },
volume = { 187 },
number = { 136 },
pages = { 1-9 },
doi = { 10.5120/ijcae10508249e55 },
publisher = { Foundation of Computer Science (FCS), NY, USA }
}
%0 Journal Article
%D 2026
%A Abasiono Mbat
%A Oselumese Agbonrofo
%A Oladimeji Abaniwonnda
%A Samuel Oyefusi
%T Benchmarking LLM Tool Orchestration in Resource-Constrained Agentic Workflows: Native MCP Function Calling vs Code Mode%T
%J International Journal of Computer Applications
%V 187
%N 136
%P 1-9
%R 10.5120/ijcae10508249e55
%I Foundation of Computer Science (FCS), NY, USA
Large Language Model (LLM) agents are commonly implemented as iterative function-calling loops that enable the use of external tools. The Model Context Protocol (MCP) has emerged as the main example of this paradigm. However, function-calling loops often reduce an agent’s reasoning ability because of increased token usage and high context occupancy. This study compares native MCP function-calling loops with Code Mode under strict engineering constraints. Six scenarios were constructed comparing MCP with a TypeScript Code Mode environment across eight models, including Claude Opus 4.6, GPT-5.4 and Kimi-K2.5. Results show that Code Mode reduced mean token consumption per representative run by 37.6%, reduced mean cost by 40.7% and raised the individual model pass rate from 59.4% to 63.6%, with per-model cost reductions reaching 70.6% for GPT-5.4. However, these gains are not uniform. Weaker models underperform because compiler errors and execution-contract violations trigger retry loops that raise cost, and Gemini-family models regress sharply under Code Mode, passing roughly two thirds of scenarios under native function calling against roughly one third under Code Mode. Once Gemini models are excluded, the Code Mode advantage widens from 4.2 to 16.7%. Overall, Code Mode manages token usage more efficiently and executes tasks successfully when paired with highly capable models, but degrades when paired with less capable ones. These findings suggest that the choice of a tool orchestration paradigm should be an adaptive runtime decision informed by model capability rather than a fixed architectural choice.