Paper: Code-first tool calling beats JSON in 11 of 14 models, especially for multi-call tasks
rohanpaul_ai · x · 2026-08-15
A new paper 'The Bitter Lesson of Tool Calling' compares JSON tool calling with a code-first approach where the model writes a Python script. On a 309-task BFCL v4 subset across 14 models, code-first matched or beat JSON in 11, with GPT-5.6-Sol and Terra improving by 10.6 points. The gap widens with many calls: Claude Sonnet 5 dropped to 0% enumeration accuracy at 100 calls with JSON, while Python stayed at 100%. Sequential chains were faster for 13/14 models. However, some older GPT models performed worse due to broken multiline Python.
Related event: Study: Code-First Tool Calling Outperforms JSON(2 posts)→
More from coding & agent
- Dev shows agents auto-verifying and sending SAFE fundraising docs in parallel — Scobleizer · 2026-11-30
- Ex-Citadel MD: AI will automate equity long-short workflows within 3 years; job seekers should build eval suites — _AustinCalvert_ · 2026-11-30
- Why Google bans users: wrapping Gemini CLI in Claude Code violates consumer ToS — thomasahle · 2026-11-30
- After two Claude account bans, a dev switches to Google AI and moves his Anthropic stock bets to Google — yangyi · 2026-11-30
- Antigravity remote control may not be enabled for enterprise accounts — gharik · 2026-11-30
- How Much Agent Swarm Hype Is Just Distributed Systems Rediscovered? — edgarpavlovsky · 2026-11-30