Skip to main content
Glama

Japan Food Consumption Tax 1% Checker

Read a bookkeeping CSV and compare filing methods

summarize_ledger_csv
Read-only

Read 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

NameRequiredDescriptionDefault
csvYesThe CSV text, first line = headers. Example header: 日付,収支区分,勘定科目,税区分,金額
whoNoindividual (taxable period = calendar year) or corporate. Default individual.
presetNoBusiness type used for default simplified-taxation types: restaurant (飲食店(店内飲食が中心)), takeout (持ち帰り・弁当・惣菜), wholesale (食品の卸(仕入れ先)), retail (食品の小売(スーパー・商店)), maker (食品の製造・加工).
currentNoCurrent filing method: general (standard), simple (simplified) or exempt. Default general.
invoiceNoRegistered as a qualified invoice issuer (then tax-exempt status is not allowed). Default false.
endMonthNoCorporate fiscal year-end month (1-12). Default 3. Ignored for individuals.
annualizeNoIf the CSV covers fewer than 12 months, scale the totals to one year (default true).
baseSalesNoTaxable 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.
foodKubunNoType 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%).
eatInKubunNoType 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%).
otherKubunNoType 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%).
specifiedOverNoIn the specified period (e.g. January-June of the previous year) both sales and salaries exceeded 10 million yen. Default false.
amountsIncludeTaxNoWhether amounts in the CSV include tax. Default auto (guessed from the tax categories, as on the site).
tenPercentSalesAreNoWhere to put 10% sales: eatIn (eat-in, default) or otherSales (alcohol, goods).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With readOnlyHint/openWorldHint already declaring a safe local read, the description still adds substantial behavior: header-driven column detection, skipping non-taxable rows and counting them by reason, annual scaling, and a returned openInBrowser link. It also discloses caveats (estimates only, the 1% rate depends on pending legislation) that no annotation conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core workflow is front-loaded in the first sentence, but the tail is bloated: the disclaimer about estimates and confirming with a tax accountant is stated in English and then repeated almost verbatim in Japanese. That duplication consumes space without adding information for an agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter tool with no output schema, the description covers the essentials: accepted CSV shape, skipping behavior, and what the response contains (totals, skipped rows, comparison, openInBrowser). It stops short of describing malformed-CSV failure behavior or the size limit that the schema enforces.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every parameter including the kubun codes, baseSales and endMonth is already documented in the schema. The description only loosely reinforces this by mentioning annualization and tax-rate grouping, adding little semantic value beyond the structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource chain: read a bookkeeping CSV, total sales/purchases by tax rate, annualize, and run compare_tax_methods. It names the upstream data sources (freee, Money Forward, Yayoi) and explicitly ties itself to compare_tax_methods, so an agent can tell this is the CSV-ingestion front end rather than the bare comparison tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context on when the tool applies (you have CSV exports from accounting software), what header layouts are accepted, and what input hygiene to observe (no names or account numbers in the CSV). It does not explicitly say when to prefer compare_tax_methods or what_if_tax_methods instead, so there are no stated exclusions or alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.