validate_oscal_content
Validates OSCAL JSON documents and returns per-level results for syntax, JSON Schema, OSCAL model, and oscal-cli checks, skipping deeper checks when parsing fails.
Instructions
Validate OSCAL JSON text and return per-level results for JSON syntax, JSON Schema, the OSCAL model, and oscal-cli (skipped when not installed). Later levels are skipped when the JSON does not parse.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content": "<content>"
},
"name": "validate_oscal_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | OSCAL JSON document as a string. | |
| model_type | No | OSCAL model name from list_oscal_models, e.g. "catalog". Omit to detect it from the document's root key. |