# JSON Schema

- **Canonical URL:** https://getaimath.com/dictionary/json-schema/
- **Topics:** [AI APIs, Protocols & Integration](https://getaimath.com/dictionary/category/ai-apis-protocols-and-integration/)
- **Last updated:** 2026-11-25

## What is JSON Schema?

**In one sentence:** JSON Schema is a standard way to describe what a piece of JSON data should look like, including its fields and types.

It acts like a template or form: "name must be text, age must be a number, email is required." AI tools use it to define tool inputs and structured outputs.

![APIs, JSON & MCP: The Drive-Thru Window & Universal Plug — Simple cartoon showing an App handing a neat checklist order slip (JSON) through a drive-thru window (API) to the AI, while a universal USB-C plug (MCP) connects the AI to Google Drive, Slack, and Email.](https://getaimath.com/diagrams/ai-apis-protocols-and-integration.png)
*Napkin Diagram (AI APIs, Protocols & Integration): An API is the drive-thru window apps use to talk to AI; JSON keeps replies neat; MCP is the universal plug for tools.*

## What is an example of JSON Schema?

A schema saying "rating" must be a whole number from 1 to 5.

## Why does JSON Schema matter?

Schemas make sure data from AI is complete and correctly formatted.

## Related Concepts

- [Structured Output](https://getaimath.com/dictionary/structured-output/): Structured output means getting an AI's answer in a fixed, machine-readable format, like JSON that follows a schema.
- [Tool Calling](https://getaimath.com/dictionary/tool-calling/): Tool calling is when an AI model asks to use an outside tool, like a calculator, search engine or app, by producing a structured request.
- [JSON](https://getaimath.com/dictionary/json/): JSON is a simple text format for storing and sending structured data, using keys and values.
- [Streaming Response](https://getaimath.com/dictionary/streaming-response/): A streaming response sends an AI's answer piece by piece as it is generated, instead of waiting for the whole thing.
- [SDK](https://getaimath.com/dictionary/sdk/): An SDK, or Software Development Kit, is a ready-made set of code libraries and tools that make it easier to use a platform or API.
- [Server-Sent Events (SSE)](https://getaimath.com/dictionary/server-sent-events-sse/): Server-Sent Events is a web technology that lets a server keep sending updates to a browser or app over one open connection.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/json-schema/)
