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:
name— unique identifier (snake_case)description— what the tool does, when to use itparameters— JSON Schema of the inputs
All lessons in this course
- How Function Calling Works
- Defining Tool Schemas (JSON Schema)
- Choosing Tools at Runtime
- Returning Results to the Model