Consumption tax for one rate on one invoice
jp_invoice_taxCalculate expected Japanese consumption tax once per invoice using amount, rate, price basis, and rounding method; use it to verify tax and avoid line-by-line rounding errors.
Instructions
Tax = round(total x rate) once for the whole invoice. price_basis exclusive: total x rate/100; inclusive: total x rate/(100+rate). rounding floor|half_up|ceil (default floor).
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": "jp_invoice_tax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | ||
| amount | Yes | ||
| rounding | No | ||
| price_basis | No |