The Bitter Lesson of Tool Calling

📅 2026-08-06
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the lack of systematic evaluation of Programmatic Tool Calling (PTC) versus conventional JSON-based tool invocation under realistic task conditions. Conducting an empirical comparison across 14 prominent language models on the BFCL v4 benchmark, this work provides the first comprehensive validation of PTC’s superiority and robustness across diverse models and scenarios. The methodology exposes tools as typed Python stubs, enabling models to generate executable scripts that support both chained and parallel invocations. Results demonstrate that 11 out of 14 models either maintain or significantly improve performance under PTC, with the GPT-5.6 series achieving a 10.6% gain. Notably, PTC sustains its advantage even in complex settings involving parallel tool use and contextual interference.
📝 Abstract
Tool use transforms LLMs into agents that act beyond their training data, and for code-capable models, programmatic tool calling extends this further by replacing rigid JSON calls with scripts that chain and parallelize naturally. However, a systematic evaluation of tools as code on an established benchmark across current and prior model generations under real-world task conditions has not been conducted. In this work, we empirically compare programmatic tool calling (PTC) to native JSON tool calling across 14 language models on BFCL v4. In the programmatic tool calling paradigm, tools are exposed as typed Python stubs that the model invokes through code, with execution and results handled in a single agent turn. Programmatic tool calling matches or exceeds native JSON tool calling in 11 of 14 models on BFCL v4, with the GPT-5.6 family achieving a 10.6% improvement over the JSON tool calling baseline. Further, it matches or outperforms baseline in 13 of 14 models under parallel fan-out, and holds stable under context rot conditions where baseline degrades 2.3% on average. Our results demonstrate that programmatic tool calling is a viable and robust alternative to JSON tool calling, with performance tracking model capability across release generations.
Problem

Research questions and friction points this paper is trying to address.

tool calling
programmatic tool use
language models
benchmark evaluation
agent capabilities
Innovation

Methods, ideas, or system contributions that make the work stand out.

Programmatic Tool Calling
Tool Use
Language Models
Agent Robustness
BFCL Benchmark
🔎 Similar Papers
I
Ishan Patel
Commercial Technology and Innovation Office, PricewaterhouseCoopers, U.S.A
S
Sahil Sen
Commercial Technology and Innovation Office, PricewaterhouseCoopers, U.S.A
E
Elias Lumer
Commercial Technology and Innovation Office, PricewaterhouseCoopers, U.S.A
V
Vamse Kumar Subbiah
Commercial Technology and Innovation Office, PricewaterhouseCoopers, U.S.A