Tool Schema
What is Tool Schema?
In one sentence: A tool schema is a structured description of a tool, telling the model its name, what it does and what inputs it needs.
It is usually written in JSON Schema. The model reads the schema to know when and how to call the tool correctly.
What does Tool Schema look like?
A schema for "get_weather" might say it needs a "city" text field and an optional "unit" field.
Why does Tool Schema matter?
Clear schemas help models call tools correctly and safely.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/tool-schema/">Tool Schema, explained simply</a> (The AI Math Dictionary)