The tool contract
A tool definition tells a model what an operation does and which inputs it accepts. The model can request a call, for example lookup_order with an order number. Application code must validate that request and run the function.
The result returns with an identifier linking it to the original call. A rejected input is an error result, not a successful lookup. The schemas in this lesson describe four fixed teaching tools; the application validates their actual inputs.