Compute e-invoice totals
vn_einvoice_totalsValidate an e-invoice and compute line amounts, VAT per rate, grand total, and the total in Vietnamese words.
Instructions
Validate an invoice and compute line amounts, VAT per rate, grand total and the total in Vietnamese words.
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": {
"invoice": "<invoice>"
},
"name": "vn_einvoice_totals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | Invoice object: {series, issueDate, seller{name,taxId,address}, buyer{...}, lines[{name,quantity,unitPrice,vatRate}]} | |
| thousand | No |