0Pricing
AI Agents · Lesson

Defining Tool Schemas (JSON Schema)

Write JSON Schema definitions for tool parameters with types, descriptions, enums, and required fields.

Tool Schemas Are JSON Schema

OpenAI, Anthropic, and most others use JSON Schema for tool parameters.

If you have used OpenAPI / Swagger, you already know 90% of this.

The Three Required Fields

Every tool definition has:

  1. name — unique identifier (snake_case)
  2. description — what the tool does, when to use it
  3. parameters — JSON Schema of the inputs

All lessons in this course

  1. How Function Calling Works
  2. Defining Tool Schemas (JSON Schema)
  3. Choosing Tools at Runtime
  4. Returning Results to the Model
← Back to AI Agents