Patterns · Vol. 03

Pattern

Tool input schemas as contracts

Design a tool's JSON input schema — its parameter names, types, required set, and constraints — as a contract that guides the model to generate valid arguments and rejects invalid ones, rather than as a loose shape validated only after the call.

Classification — Designing tool input schemas the model fills correctly. ACI design.

Full entry

The complete treatment — problem, how it works, when to use it, sources, and examples — lives in the volume below.

Browse the full pattern index or the catalog.