Validate XML against XSD
validate_xml_against_xsdCheck XML against a pinned officialSchema package or supplied XSD 1.0/1.1. Imports resolve inside the selected package only. Returns bounded findings and original schema hashes. The mf-etransport-v2 package also runs original official Schematron 2.0.2, all phases, with separate metadata.
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": {
"xml": "<xml>"
},
"name": "validate_xml_against_xsd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | Complete UTF-8 XML text, at most 10 MiB. DTDs and entities are blocked. | |
| xsd | No | UTF-8 XSD text, at most 1 MiB. Use either xsd or schemaFiles. No remote fetching. | |
| rootSchema | No | Required with schemaFiles; path of the entry XSD. | |
| xsdVersion | No | XSD engine version: 1.0 (default) or 1.1. Choose 1.1 for schemas using assertions or other XSD 1.1 features. | 1.0 |
| bankProfile | No | Optional ID from /bank-profiles.json; default generic-epc. Adds only the explicitly listed public-bank checks. | |
| schemaFiles | No | Complete local XSD project: 1–100 files, at most 1 MiB per file and 10 MiB total. Supply rootSchema and omit xsd; imports/includes resolve only among these files. | |
| max_findings | No | Maximum combined errors and warnings returned (1–100). Validation scope is unchanged. | |
| include_guides | No | Include guide URLs in validation results. | |
| officialSchema | No | Pinned official package ID from /official-schemas.json. Supply this instead of xsd/schemaFiles; the server selects the exact engine and records original hashes. | |
| bankProfileVersion | No | Optional exact published profile version. An unavailable version fails closed. |