Tính thuế GTGT (VAT)
calculate_vatCộng VAT vào giá chưa thuế hoặc tách VAT ra khỏi giá đã gồm thuế, theo thuế suất 0/5/8/10%, tiền đồng Việt Nam. Add VAT to a net price or extract VAT from a gross price (Vietnam, VND).
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>",
"vat_rate": "<vat_rate>",
"direction": "<direction>"
},
"name": "calculate_vat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Số tiền, đơn vị đồng (VND), số nguyên. Amount in VND. | |
| vat_rate | Yes | Thuế suất GTGT (%): 0, 5, 8 hoặc 10. VAT rate in percent. | |
| direction | Yes | add: giá chưa thuế → cộng VAT; extract: giá đã gồm VAT → tách VAT. |