1:1 Mentoring with Big Tech AI Engineers
LLM & Agentic
03

Anatomy of a Tool Call

Every tool-calling system has the same four moving parts.

PartWhat It IsWho Controls It
Tool SchemaJSON description you give the model: name, what it does, what arguments it takes. The model never gets your codeDeveloper (you define it)
tool_use blockWhat the model emits when it wants to call a tool. Just structured text the model generatedLLM (it generates this)
Execution LayerYour code that reads tool_use, dispatches to real implementation, attaches auth, handles errorsDeveloper (your orchestrator)
tool_result blockStructured message you send back so the model can read the outcome and decide next stepsDeveloper (you format this)

Complete Tool Call Data Flow

TOOL CALL FLOW

Continue Reading

This topic continues with more in-depth content, code examples, and diagrams. Sign up free to unlock the full guide with all 87 sections.

Sign Up Free to Unlock

Free access · No credit card required

More in LLM & Agentic

Get full access to all 87 sections with code examples, diagrams, and interactive animations.

Sign Up Free