Read a bookkeeping CSV and compare filing methods
summarize_ledger_csvRead transactions or journal entries exported from accounting software (freee, Money Forward, Yayoi, etc.) as CSV text, total sales and purchases by tax rate (the same reader as the site's 「帳簿のCSVから入れる」), scale them to one year, and run compare_tax_methods on the totals. Columns are found from their headers (date, tax category, amount, income/expense, account; or debit/credit columns for journals). Rows without tax (salaries, taxes, non-taxable) are skipped and counted by reason. Returns the totals, what was skipped, the comparison, and openInBrowser to check the totals on the site. Do not include names or account numbers in the CSV. Estimates only, not individual tax advice. The 1% rate (April 1, 2027 to March 31, 2029) is a plan that assumes the bill passes the Diet. Confirm filings with a tax accountant or the tax office. 結果は目安でございます(法案の成立が前提です)。届出と申告につきましては、税理士または税務署にご確認ください。
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": {
"csv": "<csv>"
},
"name": "summarize_ledger_csv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | The CSV text, first line = headers. Example header: 日付,収支区分,勘定科目,税区分,金額 | |
| who | No | individual (taxable period = calendar year) or corporate. Default individual. | |
| preset | No | Business type used for default simplified-taxation types: restaurant (飲食店(店内飲食が中心)), takeout (持ち帰り・弁当・惣菜), wholesale (食品の卸(仕入れ先)), retail (食品の小売(スーパー・商店)), maker (食品の製造・加工). | |
| current | No | Current filing method: general (standard), simple (simplified) or exempt. Default general. | |
| invoice | No | Registered as a qualified invoice issuer (then tax-exempt status is not allowed). Default false. | |
| endMonth | No | Corporate fiscal year-end month (1-12). Default 3. Ignored for individuals. | |
| annualize | No | If the CSV covers fewer than 12 months, scale the totals to one year (default true). | |
| baseSales | No | Taxable sales in the base period (two years before), in yen. Needed to judge whether tax-exempt status (10 million yen or less) or simplified taxation (50 million yen or less) is allowed. If omitted, tax-exempt status is treated as not allowed. | |
| foodKubun | No | Type for food sales. Default from preset, else 2. Simplified-taxation business type 1-6 (1 wholesale 90%, 2 retail 80%, 3 manufacturing/takeout cooked food 70%, 4 eat-in restaurant 60%, 5 services 50%, 6 real estate 40%). | |
| eatInKubun | No | Type for eat-in sales. Default 4. Simplified-taxation business type 1-6 (1 wholesale 90%, 2 retail 80%, 3 manufacturing/takeout cooked food 70%, 4 eat-in restaurant 60%, 5 services 50%, 6 real estate 40%). | |
| otherKubun | No | Type for other sales. Default from preset, else 2. Simplified-taxation business type 1-6 (1 wholesale 90%, 2 retail 80%, 3 manufacturing/takeout cooked food 70%, 4 eat-in restaurant 60%, 5 services 50%, 6 real estate 40%). | |
| specifiedOver | No | In the specified period (e.g. January-June of the previous year) both sales and salaries exceeded 10 million yen. Default false. | |
| amountsIncludeTax | No | Whether amounts in the CSV include tax. Default auto (guessed from the tax categories, as on the site). | |
| tenPercentSalesAre | No | Where to put 10% sales: eatIn (eat-in, default) or otherSales (alcohol, goods). |