Tool Design and Contracts

JSON Schema for Tools

JSON Schema is the formal specification language used to define the structure, types, and constraints of the parameters that agents pass to tools, serving as the contract between the model's output and the tool's input. Every major large language model (LLM) provider uses JSON Schema as the standard for defining tool interfaces, making it the universal language for describing what an agent can do. Poorly specified schemas lead to malformed tool calls, while well-constrained schemas with precise descriptions and strict typing directly improve tool-use reliability.