Build VietQR
vietqr_buildCreate VietQR (NAPAS 247) bank-transfer QR payloads from bank details and account number, returning an EMVCo string and CRC with optional PNG; supports amount and sanitized note.
Instructions
Create a VietQR (NAPAS 247) bank-transfer QR payload. Returns the EMVCo string, CRC and optionally a PNG image. Bank accepts BIN (970436), code (VCB) or name (Vietcombank). Amount is integer VND; note is sanitized (no diacritics, max 25 chars).
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": {
"bank": "<bank>",
"account": "<account>"
},
"name": "vietqr_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bank | Yes | Bank BIN, code or name, e.g. "VCB", "970436", "Vietcombank" | |
| note | No | Transfer note / purpose | |
| image | No | Also return a PNG image (base64). Default false. | |
| amount | No | Amount in VND (integer). Omit for a static QR. | |
| account | Yes | Beneficiary account number | |
| additionalData | No | Extra tag 62 sub-fields keyed by two-digit ID, e.g. {"05":"ORDER123"}. Passed through, not interpreted. Use note for 08. |