get_oscal_schema
Retrieve the JSON or XSD schema for a specific OSCAL model to understand its structure and validate data.
Instructions
A tool that returns the schema for specified OSCAL model. Try this tool first for any questions about the structure of OSCAL models.
By default we return a JSON schema, but schema_type parameter can change that behavior. You can use the list_models tool to get
a list of valid model names. Request the complete schema only as a last resort - it's very large and may overflow your context window.
Args:
ctx: MCP server context (should be injected automatically by MCP server)
model_name: The name of the OSCAL model. If no value is provided, then we return a "complete" schema including all models, which is large.
schema_type: json (default) returns the JSON schema; xsd returns the XML Schema (XSD). Other values are rejected.
Returns:
str: For json, the schema as a JSON string. For xsd, the schema as XML (XSD) text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_name | No | complete | |
| schema_type | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |