Apply or split VAT
vn_einvoice_vatApply VAT to a net amount or split a VAT-inclusive price into net value and VAT using Vietnamese rates 0, 5, 8, 10, KCT, and KKKNT.
Instructions
Apply VAT to a net amount, or with inclusive=true split a VAT-inclusive price (giá đã gồm VAT) into net (tiền hàng) and VAT. Rates 0/5/8/10/KCT/KKKNT. Net is rounded half away from zero and the leftover đồng goes to VAT (library convention).
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": {
"amount": "<amount>",
"rate": "<rate>"
},
"name": "vn_einvoice_vat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | VAT rate: 0, 5, 8, 10, "KCT" or "KKKNT" | |
| amount | Yes | Integer VND amount | |
| inclusive | No | true: amount already includes VAT |