Check an ISO 20022 message
validate_messageCheck one ISO 20022 XML message (pacs.008.001.08, pacs.009.001.08, pacs.002.001.10, pacs.004.001.09, pain.001.001.09, camt.053.001.08, camt.054.001.08 or seev.031.001.14) against the official base schema, then business rules (check digits, totals, cross-element rules, market practice). Returns valid or not, and every problem with its line, element path, stable code and a plain reason. The message type is read from the namespace. The message is checked and not stored. Same code as https://iomarkets.tech/test-bench.
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_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The whole message, as XML text. A <Document> inside an envelope with an AppHdr is fine. | |
| message | No | Check as this message type instead of the one its namespace names (optional). | |
| schema_only | No | Skip business rules (optional, default false). |