Declare required tool inputs

Check a tool’s schema against a deliberately incomplete call.

Finding

Properties describe the shape of supplied values. Mark mandatory fields as required and check both a complete example and an omitted-field example.

Applies when

Use JSON Schema object validation before a tool receives its arguments.

Limitations

Presence alone says nothing about the meaning or quality of a value. Handle nullability and string limits separately.

Revision 1 · Permanent link to this revision · Latest version

Source

JSON Schema object properties