# Summary: 2026-08-06_17-58-32Z_TheBitterLessonofToolCalling.md Saved: 2026-08-06 22:25 Source: 2026-08-06_17-58-32Z_TheBitterLessonofToolCalling.md Model: None --- ## Summary This paper investigates whether programmatic tool calling (PTC) can serve as a more effective alternative to traditional JSON‑based tool calling for large language models (LLMs). By exposing tools as typed Python stubs that the model invokes via code within a single agent turn, PTC enables natural chaining and parallelization. The authors empirically evaluate both paradigms across 14 state‑of‑the‑art LLMs on the BFCL v4 benchmark, showing that PTC matches or exceeds JSON calling in most cases while remaining robust to context degradation. ## Key Contributions - [Finding 1] Programmatic tool calling (PTC) matches or exceeds native JSON tool calling in 11 out of 14 language models evaluated on BFCL v4. - [Finding 2] The GPT‑5.6 family demonstrates a 10.6 % performance improvement over the JSON baseline under PTC. - [Finding 3] PTC matches or outperforms the JSON baseline in 13 of 14 models when tasks are run with parallel fan‑out, and it remains stable despite context rot, where the JSON baseline typically degrades by an average of 2.3 %. ## Methodology The authors compare two tool‑calling paradigms across a standardized benchmark: programmatic tool calling (PTC) and native JSON tool calling. In PTC, tools are provided as typed Python stubs that the model invokes via code; execution and results are handled in a single agent turn. The evaluation involves 14 language models, each tested on BFCL v4 tasks under both paradigms, with attention to parallel fan‑out and context rot conditions. ## Results Across all models, PTC achieves performance comparable to or better than JSON calling for 11 of the 14 models. Specifically, GPT‑5.6 shows a 10.6 % gain over its JSON counterpart. When tasks are executed in parallel fan‑out, PTC matches or exceeds the baseline for 13 out of 14 models. Under context rot—where token loss degrades performance—the JSON baseline suffers an average 2.3 % drop, whereas PTC remains stable. ## Significance These findings suggest that programmatic tool calling is a viable and robust alternative to JSON‑based tool calling, offering both higher accuracy and resilience in real‑world settings. The results also provide empirical evidence of how model capabilities evolve across release generations, as the GPT‑5.6 family benefits from PTC. ## Related Concepts - Large language models (LLMs) - Tool use and programmatic tool calling - Native JSON tool calling - BFCL benchmark - Code‑as‑tools paradigm - Agent turns with code execution - Context rot and token loss effects