# Tools as code match or beat JSON tool calls for most models

> The Bitter Lesson of Tool Calling (preprint) reports that exposing tools as typed Python stubs called through code matched or beat native JSON tool calling for...

Section: Evidence record · Preprint  
Canonical: https://agentexperience.tech/evidence/ev-0009/

The Bitter Lesson of Tool Calling (preprint) reports that exposing tools as typed Python stubs called through code matched or beat native JSON tool calling for 11 of 14 models on BFCL v4, and for 13 of 14 under parallel fan-out.

- **Evidence type**: [Preprint](https://agentexperience.tech/evidence/#class-preprint): posted publicly, not yet peer reviewedevidence class
- **Kind of finding**: Measurementfinding type
- **Checked against**: The abstract, 8 Oct 2026 verification
- **Topics**: [code-mode](https://agentexperience.tech/evidence/#pattern-code-mode) pattern tags
- **Source**: [The Bitter Lesson of Tool Calling](https://arxiv.org/abs/2608.06370), arXiv:2608.06370Patel et al. · 6 Aug 2026
- **Authors' stake**: None declared in the abstract.conflicts of interest

[Read the source](https://arxiv.org/abs/2608.06370) [Cite this record](https://agentexperience.tech/evidence/ev-0009/#cite)

## What the source measured

- **What was measuredmetric**: BFCL v4 accuracy, programmatic versus native JSON tool calling
- **Without the changebaseline**: Native JSON tool calling
- **With the changetreatment**: Programmatic tool calling matches or exceeds it in 11 of 14 models; GPT-5.6 family +10.6%
- **Which way it moveddirection**: Up
- **How bigsize**: 11 of 14 models; best family +10.6%
- **How many casessample**: 14 language models

- **What was measuredmetric**: Accuracy under parallel fan-out
- **Without the changebaseline**: Native JSON tool calling
- **With the changetreatment**: Matches or outperforms in 13 of 14 models
- **Which way it moveddirection**: Up
- **How bigsize**: 13 of 14 models
- **How many casessample**: 14 language models

- **What was measuredmetric**: Accuracy under context-rot conditions
- **Without the changebaseline**: Native JSON: degrades 2.3% on average
- **With the changetreatment**: Programmatic: holds stable
- **Which way it moveddirection**: Mixed
- **How bigsize**: JSON loses 2.3% on average; programmatic stable
- **How many casessample**: 14 language models

## Who and what was tested

- **Models:** GPT-5.6 family.
- **Note on models:** 14 models across current and prior generations; the abstract names only the GPT-5.6 family.
- **Harness:** BFCL v4 (Berkeley Function Calling Leaderboard).

## Does anyone have a stake?

None declared in the abstract. The full text was not checked for a competing-interest statement.

## Source

[The Bitter Lesson of Tool Calling](https://arxiv.org/abs/2608.06370). Ishan Patel, Sahil Sen, Elias Lumer, Vamse Kumar Subbiah. arXiv, 6 August 2026, arXiv:2608.06370.

Every number in this record was checked against the live arXiv abstract page on 2026-10-08. The full text was not re-checked.

## Limits of this finding

- Preprint, not peer reviewed.
- One benchmark with simulated tools.
- Measures call accuracy only; safety, approval and review cost of generated code were not measured.

## What this means if you build tools

Code-style access to your tools, such as typed stubs or an SDK in a sandbox, is a reasonable option next to one call per tool. Weigh it against the harder job of reviewing and approving generated code, which this study did not measure.

## Related checks

- [There is a direct route, not only clicks](https://agentexperience.tech/insights/agent-readiness-rubric/#act-07): The step has a typed route, such as an API call, a tool, a command or a declared form, not only clicks. Rubric check · supporting

## Cite this record

Cite the original source for any number, and keep the evidence type and the models tested next to the figure. To point at this record, cite it as: AX evidence register, “Tools as code match or beat JSON tool calls for most models”, `https://agentexperience.tech/evidence/ev-0009/`. The record is also in [/evidence.json](https://agentexperience.tech/evidence.json).

## Go here next

- [Agent tool catalogues need a pruning strategy](https://agentexperience.tech/insights/agent-tool-catalogs/): A small, clearly separated catalogue is usually easier to choose from than a long list of overlapping actions. Guide
- [Agent scaffolding, not MCP versus CLI, drove cost](https://agentexperience.tech/evidence/ev-0010/): A controlled comparison (preprint) found that on one git task the agent scaffolding drove cost more than MCP versus CLI: CLI-only scaffoldings were 5.0x to 28x cheaper, and paired MCP-to-CLI cost ratios ranged from 0.43x to 29x. Evidence

[Declared completion and logged completion differ by up to 41 points](https://agentexperience.tech/evidence/ev-0008/)

[Agent scaffolding, not MCP versus CLI, drove cost](https://agentexperience.tech/evidence/ev-0010/)

[All records](https://agentexperience.tech/evidence/)
