Skip to content
Modelwire
Subscribe

Programmatic tool calling outperforms JSON across 14 language models

Source published ·Modelwire updated

Original coverage: arXiv cs.CL ↗·How Modelwire adds context

The development

Researchers benchmarked programmatic tool calling, where LLMs invoke typed Python stubs directly, against traditional JSON-based tool calling across 14 models on BFCL v4. The study reveals that code-native tool invocation matches or exceeds JSON calling in most cases, suggesting a shift in how agents should expose capabilities to language models. This finding matters for practitioners building production agents: it validates a simpler, more composable calling convention that aligns with how models naturally generate code, potentially reshaping tool-calling standards across the industry.

Modelwire’s AI-generated summary of coverage from arXiv cs.CL.

Modelwire analysis

Analyst take

Our AI-generated reading of the wider context and the next developments to watch.

The study doesn't just show code-native calling works; it suggests JSON-based tool calling may have been a premature standardization that locked the industry into a suboptimal convention. The implication is that vendors and frameworks built around JSON schemas now face pressure to support or migrate to direct Python stubs, creating a compatibility and tooling burden.

This directly follows the latency optimization work from early August. OoO-Spec and AOSpec both exploit tool-calling predictability to accelerate agent execution, but they assume a stable calling convention. If the industry shifts from JSON to code-native calling, those speculative techniques may need architectural rework. More immediately, this validates the agent-first tooling philosophy from datasette-apps 0.2a0, which embedded agent debugging and permission controls into infrastructure; code-native calling makes that integration tighter because agents are now invoking Python directly rather than serializing to JSON and back.

If Anthropic, Google, or OpenAI ship native Python stub support in their tool-use APIs within the next two quarters, adoption will accelerate and JSON becomes legacy. Conversely, if major LLM providers continue prioritizing JSON schemas in their official docs and SDKs through Q4 2026, this finding remains academic and the industry has already sunk costs into the JSON standard.

This interpretation is generated from the summary above and the archive coverage cited below. Our methodology · Report an error

Coverage behind this analysis

These archive entries ground the connection in our analysis. They are ordered by source publication date, with links to our coverage and the original sources.

  1. ·arXiv cs.LG

    AOSpec reduces agent latency by speculating actions and observations together

    AOSpec addresses a critical bottleneck in LLM agent deployment: as model decoding speeds improve, tool execution latency becomes the dominant constraint. The framework co-speculates both actions and observations across the full agent-environment loop, using Expected Value Decoding to prioritize speculation toward high-latency outcomes rather than chasing raw hit rates. This lossless approach eliminates the inefficiency…

    Read Modelwire coverage →Original source ↗

MentionsBFCL v4 · Python

MW

How this coverage is produced

Modelwire uses AI to generate summaries and context from source headlines, snippets, and selected archive coverage. Automated checks do not verify every claim, and items are not routinely reviewed by a person before publication. Zacaria Solis operates the site. Read the linked source for the full evidence and report errors through our corrections process.

Modelwire summarizes, we don’t republish. arXiv cs.CL originally reported this story as “The Bitter Lesson of Tool Calling”. The full content lives on arxiv.org. If you’re a publisher and want a different summarization policy for your work, see our takedown page.

Programmatic tool calling outperforms JSON across 14 language models · Modelwire