validate_oscal_file
Validate an OSCAL JSON file against syntax, JSON Schema, model rules, and oscal-cli, returning results per validation level. Use it when your OSCAL document is stored in a file.
Instructions
Validate an OSCAL JSON file and return per-level results for JSON syntax, JSON Schema, the OSCAL model, and oscal-cli (skipped when not installed). Use when the document is in a file; for JSON text use validate_oscal_content.
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": {
"file_uri": "<file_uri>"
},
"name": "validate_oscal_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_uri | Yes | Path or URI of an OSCAL JSON file. Remote URIs are rejected unless the server operator enables remote URIs. | |
| model_type | No | OSCAL model name from list_oscal_models, e.g. "catalog". Omit to detect it from the document's root key. |