Skip to main content
Glama

JP Gateway

jp_invoice_verify

[PAID x402: $0.05 USDC] Deterministic Japanese Qualified Invoice (インボイス制度) validator & consumption tax engine (T+13 check digit, mandatory legal fields, exact 10%/8% rounding once per rate).

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": {
      "registration_number": "<registration_number>",
      "items": "<items>"
    },
    "name": "jp_invoice_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesLine items with description, amount_jpy, and tax_rate (10|8|0).
issuer_nameNo
recipient_nameNo
transaction_dateNoYYYY-MM-DD
registration_numberYesNTA invoice number (T + 13 digits).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose two valuable behaviors: the tool is paid ($0.05 USDC via x402) and it is deterministic with specific legal checks and rounding semantics. However, it says nothing about what a failed validation returns (error vs. structured result), what the response contains, or how the x402 payment flow must be completed before invocation.

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

Conciseness5/5

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

One dense sentence, front-loaded with the cost tag followed immediately by the core purpose and the substantive rules. Nothing is redundant and no sentence is wasted, though the parentheticals are information-heavy.

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

Completeness3/5

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

There is no output schema and no annotations, so the description should signal the shape of a validation result or the failure mode, and it does not. Combined with three undocumented-by-description parameters, the definition is adequate to pick the tool but leaves an agent guessing about what it will get back.

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

Parameters4/5

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

Schema coverage is 60%, and the description adds real meaning beyond the schema: the registration number follows the NTA T+13 format, the tax rates cover 10%/8% with exact rounding applied once per rate, and validation covers mandatory legal fields. It does not illuminate issuer_name, recipient_name, or transaction_date, keeping it short of a 5.

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

Purpose4/5

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

The description names a specific resource and action: a Japanese Qualified Invoice (インボイス制度) validator plus consumption tax engine, with the concrete checks (T+13 check digit, mandatory legal fields, per-rate rounding) spelled out. That is well beyond a tautology and clearly distinct from siblings like jp_address_normalize or jp_wareki_convert, though no sibling is named explicitly.

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?

Usage is only implied by the noun 'validator' and the enumerated checks; there is no explicit statement of when to call this versus computing tax manually or using another tool, and no when-not conditions. The only explicit guidance is the pricing line, which tells the agent a payment is involved but not when the tool is the right choice.

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.