encode_zatca_tlv
Encodes Saudi ZATCA Phase 1 invoice fields into a compliant UTF-8 Base64 TLV QR string for QR codes. Accepts seller name, VAT number, timestamp, total with VAT, and VAT amount.
Instructions
Encode Saudi ZATCA Phase 1 invoice fields into a compliant UTF-8 Base64 TLV QR string.
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": {
"seller_name": "<seller_name>",
"vat_number": "<vat_number>",
"timestamp": "<timestamp>",
"total_with_vat": "<total_with_vat>",
"vat_amount": "<vat_amount>"
},
"name": "encode_zatca_tlv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timestamp | Yes | ISO-8601 timestamp (e.g. 2026-12-05T19:30:00Z) | |
| vat_amount | Yes | VAT amount (2 decimals) | |
| vat_number | Yes | 15-digit Saudi VAT number (3XXXXXXXXXXXXX3) | |
| seller_name | Yes | Seller name (Arabic or English UTF-8) | |
| total_with_vat | Yes | Invoice total including VAT (2 decimals) |