Issue 13 · Nov 2–8, 2026Editions · Glossary · Archive · Method · RSS · HU / ENG

News of the AI era, curated weekly

Glossary › Developer basics

schema

advancedwidespread

A schema is a pre-defined structural description: it specifies what fields a data item consists of, which are mandatory, and what type of value each can hold.

In plain terms

Think of an official form: there are separate fields for name, date of birth, and tax number, and you cannot write a poem in the date field. A schema is the same in the world of machines: the blank form of data that specifies where each item goes and in what format.

It is needed because programs cannot guess. If a system expects a number in the "amount" field but receives "about ten thousand", it freezes or calculates incorrectly. The schema is a shared agreement between sender and receiver, so two independent programs can understand each other.

With AI, this has become particularly important. A language model naturally writes free text, but with a schema, it can be constrained to answer in the requested structure. Schemas also describe which tools an agent can use and what data each tool must receive.

A schema describes the format and limits values at most to allowed ones. It states that the 'birth year' field requires a four-digit number, but not whether the entered year is true.

How it works

  1. Someone describes the structure: what fields exist, their names, what type of value can go into them (text, number, date, list), and which are mandatory.
  2. This description is recorded in a machine-readable format, such as a JSON Schema or as a database table definition.
  3. When data arrives or is created, a validation program compares it against the schema. This is called validation.
  4. If the data matches, the system lets it through. If not, it rejects it and typically indicates the reason in an error message, such as a missing required "email" field.
  5. With an AI model, the schema is submitted together with the request. The model adapts its response to it, and some services can technically produce only output that conforms to the schema.

An everyday example

When you type letters into the phone number field on an online store and the page highlights in red with 'invalid format', you are encountering the same principle on which a schema is built: the system measures the entered data against a pre-defined rule. The same happens in the background when an AI assistant searches for a flight ticket for you: the date, departure city, and arrival city must be passed in the exact structure specified by the booking system.

Who is affected

developerIt describes database tables, messages between programs, and the format in which the AI model should respond using a schema. → Code
entrepreneur, executiveIf a company connects AI to its billing or customer management system, the schema ensures that data filled in by the machine formally fits the system.
marketerStructured data embedded in websites (schema.org markup) can help search engines and AI search engines understand what the site is about. → Marketing
everyoneBehind most online forms, bank transfers, and electronic invoices, a schema decides whether the system accepts the entered data.

A common misconception

MythIf the AI response matches the schema, then the response is also correct.
In realityThe schema checks only the format, not the content. The model can write incorrect or fabricated data into a perfectly structured layout.

Limits and risks

Similar, but not the same

Related concepts

Broader

adatmodell, metaadat

Narrower

JSON schema, database schema, XML schema, asset definition

On the edge

structured output, validation, JSON, API, tool calling, adatszerkezet

A brief history

The word originates from the Greek "schema" (shape, form). In computing, it spread with databases in the 1970s: the 1971 report by the CODASYL database working group already used it in this sense, and it became a fundamental concept in databases based on Edgar F. Codd's relational data model published in 1970. The W3C made the XML Schema standard an official recommendation in 2001. The first drafts of JSON Schema appeared around 2009 with the rise of the JSON format; while it never became an official standard, it is widely used in practice.

Where things stand

The schema has been a basic tool in software development for decades. By the end of 2026, it has become common in AI as well: major model providers support schema-bound, structured output, and agent tools are typically described using JSON schemas.

Status: 2026 November

In the news

Appears in 1 Agent Age stories; the curve shows weekly occurrence in the news magazine.

Also known as

schema · schema · data schema · data schema · JSON schema · JSON Schema · database schema · database schema

Sources

This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.