get_oscal_schema
Retrieve the JSON or XSD schema for a specified OSCAL model to examine its structure and fields.
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: If json (default) then return the JSON schema for the specified model. Otherwise, return its XSD (XML) schema.
Returns: str: The requested schema as JSON string
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_name | No | complete | |
| schema_type | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |