Skip to main content
Glama

Jp Consumption Tax

jp_consumption_tax
Idempotent

Consumption tax: per-rate invoice rounding, qualified-invoice validation, simplified taxation, 20% special. $0.01/call. Deterministic, cites primary sources; errors and unverified rules are never billed. Required by mode (default invoice_totals): invoice_totals -> lines; validate_invoice -> document; simplified -> taxable_sales_excl_yen, category; two_percent -> taxable_sales_excl_yen, taxable_period_start, taxable_period_end.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoRequired by mode (default invoice_totals): invoice_totals -> lines; validate_invoice -> document; simplified -> taxable_sales_excl_yen, category; two_percent -> taxable_sales_excl_yen, taxable_period_start, taxable_period_end.invoice_totals
as_ofNoCalculation reference date YYYY-MM-DD (default today); selects the rules version
linesNoInvoice lines [{amount_yen, qty, rate_key: standard|reduced}]
categoryNoSimplified-taxation business class 1-6
documentNoQualified-invoice fields to validate (registration_number etc.)
x_paymentNoOptional: base64 X-PAYMENT header value (x402 exact scheme, USDC on Base mainnet). Omit it to receive the payment requirements (accepts[] + docs) for this call without being charged.
taxable_period_endNoTaxable period last day YYYY-MM-DD (two_percent)
taxable_period_startNoTaxable period first day YYYY-MM-DD (two_percent)
taxable_sales_excl_yenNoTaxable sales excluding tax, in yen

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesJSON body of the underlying call (see /samples/{product} for each product's shape)
statusYesHTTP status of the underlying call (200 result, 402 payment terms, 4xx input error)
how_to_payNo
receipt_idNoset on paid results; free re-fetch via get_receipt
payment_requiredNotrue when status is 402: body holds x402 payment terms, not a result. Pay and call again with x_payment

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (idempotentHint=true, destructiveHint=false), the description discloses cost ($0.01/call), the billing guarantee that errors and unverified rules are never billed, and that output is deterministic and cites primary sources. Those are meaningful behavioral traits an agent cannot get from the annotation block; only the x402 payment mechanics are left to the schema.

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

Conciseness4/5

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

Purpose, pricing, guarantees, and mode routing are front-loaded and the whole thing is compact. The only waste is the long 'Required by mode...' clause, which duplicates the schema's mode description almost word-for-word.

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?

With nine parameters, nested objects, an output schema, and annotations, the description supplies the missing commercial context (price, billing rules, deterministic sourcing) plus mode routing. It is nearly complete; a hint about as_of selecting the rules version and the uncharged x_payment discovery flow would close the gap, though the latter is covered in the schema.

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 description coverage is 100%, so the schema already documents every parameter, including the mode->parameter mapping. The description reproduces that mapping verbatim rather than adding syntax, formats, or defaults that the schema lacks, so this is the baseline 3 case.

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?

It names a specific domain (Japanese consumption tax) and enumerates concrete capabilities: per-rate invoice rounding, qualified-invoice validation, simplified taxation, and the 20% special case. That scope cleanly separates it from neighbors like jp_crypto_tax, jp_retirement_tax, and verify_invoice, so an agent can pick it without opening the schema.

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

Usage Guidelines3/5

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

The mode->parameter mapping implicitly tells the agent which mode fits which input shape (invoice lines vs. document vs. taxable sales), which is real routing guidance. However, it never states when to prefer this tool over alternatives such as verify_invoice or quote_parse, nor any prerequisites, so usage guidance is only implied.

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.

Resources