インボイスの消費税の端数(税率ごとに1回)
jp_invoice_consumption_taxCalculate Japanese consumption tax on a qualified invoice (適格請求書 / インボイス) the way Japan's National Tax Agency requires: sum the lines per tax rate (10% standard, 8% reduced, and 1% for food sold 2027-04-01 to 2029-03-31 — that 1% rate is still a bill in the Diet, so give each 1% line its transaction date and the answer marks it rule_status bill), then round the tax ONCE per rate per invoice — never per line. It applies to writing, checking or explaining a Japanese invoice, receipt (適格簡易請求書) or delivery note total (納品書), and to questions about why per-item tax (消費税 端数処理) adds up differently. It calculates one invoice from a single issuer; when one document carries invoices of several businesses, the agency-delivery case (代理交付) must be rounded per business and per rate. Rounding direction (切り捨て floor / 四捨五入 round_half_up / 切り上げ ceil) is the issuer's choice. All lines of one invoice must use the same price basis (税抜 or 税込). Returns per-rate totals, the correct tax, and what per-line rounding would have given, with NTA sources. It does not check other invoice requirements such as the registration number.
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": {
"price_basis": "<price_basis>",
"rounding": "<rounding>",
"lines": "<lines>"
},
"name": "jp_invoice_consumption_tax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| rounding | Yes | 1円未満の処理。切り捨て・四捨五入・切り上げ | |
| price_basis | Yes | 行の金額が税抜(tax_excluded)か税込(tax_included)か。1枚の中ではどちらかに揃える | |
| transaction_date | No | 取引(譲渡)の日 YYYY-MM-DD。行に date が無い時に使う。税率 1 の行には、どちらかの日が要る |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | この答えに効いた決まり・前提(日本語) | |
| result | Yes | ||
| doc_url | Yes | 人が読む説明のページ(式・出所・例)。利用者に次に読んでもらう先 | |
| sources | Yes | ||
| law_as_of | No | 出所が書く法令の基準日(例:2026-04-01=令和8年4月1日現在法令等) | |
| checked_on | Yes | Cyclix Agents が出所を最後に確かめた日 | |
| disclaimer | Yes |