get_constraints
List OSCAL Metaschema constraints for a model and target to discover validation rules the JSON schema does not express, including type-specific details and source locations.
Instructions
List the OSCAL Metaschema constraints at a target (allowed-values, matches, index,
index-has-key, is-unique, has-cardinality, expect) with type-specific details and
source file and line; a bare definition name returns every constraint declared on it and
its local definitions. Use when you need rules the JSON schema does not express; use
get_allowed_values for the values themselves. Results are paged within a response
budget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum items per page, 1-100. A page may hold fewer to fit the response budget. | |
| model | Yes | OSCAL model name from list_oscal_models, e.g. "catalog". | |
| offset | No | Zero-based index of the first item. | |
| target | Yes | Target_Selector: a Metaschema definition name, optionally followed by "/" (child) or "//" (descendant) and instance names, e.g. "defined-component/prop/@name". No predicates, unions, or whitespace. | |
| constraint_types | No | Constraint types to keep. Omit or pass an empty list for all types. |