validate_instance
Validate an XML instance against its SDC4 XSD schema to get pass/fail results, error counts, and classified errors.
Instructions
Validate an XML instance against its SDC4 XSD schema. Returns pass/fail with error count and classified errors.
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": {
"schema_path": "<schema_path>",
"instance_path": "<instance_path>"
},
"name": "validate_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema_path | Yes | Path to the SDC4 data model XSD file. | |
| instance_path | Yes | Path to the XML instance file to validate. | |
| check_compliance | No | Check schema follows SDC4 principles (no xsd:extension). Default true. |