Cloud Codes

Programmatic Tool Calling: The Architecture Replacing JSON Function Calls

Aug 19, 2026 16 min
llm agentstool callingpythonartificial intelligence
Watch on YouTube Follow Cloud Codes on Rundown — free

Summary

AI summaries can be incomplete or wrong. Verify anything important against the original video.

This talk argues that LLMs perform better by writing code rather than emitting structured JSON for tool use, especially under heavy load or complex tasks. It introduces 'programmatic tool calling' as a more robust, efficient, and scalable alternative for building AI agents.

The presentation analyzes a paradigm shift in AI agent architecture: moving away from structured JSON output for tool calling and toward letting models write and execute short, typed Python scripts. Using data from the Berkeley Function Calling Leaderboard (BFCL v4) and internal benchmarks, the talk demonstrates that JSON-based tool calling suffers from 'context rot' when faced with numerous tool definitions. In contrast, 'programmatic tool calling' keeps the model's performance stable even with large tool sets and complex call chaining. The speaker highlights key advantages, including significantly lower token usage, superior performance in parallel function execution, and better reliability in complex, multi-step tasks. While acknowledging that JSON was a necessary starting point when models lacked code-writing reliability, the talk asserts that programmatic execution is now the superior, industry-standard approach.

Methods & findings

Locked

Claims & arguments

Locked

Key Points

Locked

Worth watching if: You are building or architecting AI agents and want to understand how to optimize tool usage for scalability, lower token costs, and better performance in complex workflows.

Sign in to unlock the full extract

Every claim, key point, and timestamp for this Cloud Codes video — plus a daily email of every channel you follow.

Sign in with Google

No credit card. Free tier forever.

Watch on YouTube