Skip to main content
Module 5 · Lesson 1 of 417/48 in the course~15 min
Module lessons (1/4)

The Tool Calling Protocol & JSON Schemas

Lesson preview3 hands-on exercises readyAI Engineering & Production RAG · Module 5 — Tool Calling & Function Execution

Standardized tool declarations, parameter types, required fields, and the model invocation payload.

What you'll learn in this lesson

  • Understand how foundation models invoke external software via the standardized Tool Calling Protocol.
  • Define JSON Schema specifications for functions, parameters, descriptions, and required fields.
  • Parse tool call requests emitted by LLMs into executable Python arguments.
  • Format tool output messages according to API message history schemas.

Overview

In isolation, large language models are stateless text predictors: they cannot check current database balances, query live weather APIs, or calculate exact mathematical operations.

Tool Calling (Function Calling) bridges this gap by enabling models to request the execution of predefined functions in your host application:

Sections covered in this lesson

  1. 1From Text Generators to Active Software Agents
  2. 2Anatomy of a Tool Definition (JSON Schema)
  3. 3Check Your Understanding
  4. 4Practice: Tool Definition Schemas & Call Parsing
Pro Lesson · Module 5 — Tool Calling & Function Execution

Unlock "The Tool Calling Protocol & JSON Schemas" and the full AI Engineering & Production RAG curriculum

Standardized tool declarations, parameter types, required fields, and the model invocation payload.

Unlock all 3 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in AI Engineering & Production RAG plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.