check_compliance
Validate signed invoices against ZATCA compliance rules to ensure they pass server-side checks before submission, preventing production errors.
Instructions
Check a signed invoice against ZATCA compliance rules.
Validates the invoice with ZATCA's server-side checks before actual submission. Useful for testing compliance without affecting production records.
Args: signed_invoice_xml: Signed UBL 2.1 XML invoice string invoice_hash: Base64-encoded SHA-256 hash of the invoice invoice_uuid: Invoice UUID certificate: Base64-encoded compliance certificate secret: API secret from ZATCA environment: "sandbox" or "production"
Returns: JSON with ZATCA validation results
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": {
"signed_invoice_xml": "<signed_invoice_xml>",
"invoice_hash": "<invoice_hash>",
"invoice_uuid": "<invoice_uuid>",
"certificate": "<certificate>",
"secret": "<secret>"
},
"name": "check_compliance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | Yes | ||
| certificate | Yes | ||
| environment | No | sandbox | |
| invoice_hash | Yes | ||
| invoice_uuid | Yes | ||
| signed_invoice_xml | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |