Skip to main content
Glama

JPVerify

Extract and verify Japanese invoice

jp_invoice_extract_and_verify
Read-onlyIdempotent

OCR a Japanese billing invoice, validate it locally, and resolve the issuer against NTA registries. Use when: You need invoice OCR and issuer name/address comparison or completion using NTA public data. Returns: OCR values, registry values, resolved issuer values, validation, and an explicit review signal. Price: $0.05 USDC per successful call, paid with x402 on Base. / 日本語請求書をOCR・ローカル検証し、発行者を国税庁データと照合します。 用途: 請求書OCRに加えて、国税庁公開データで発行者名・住所・T番号を照合・補完したい場合。 返却: OCR値、登記値、採用した発行者値、検証結果、明示的な確認シグナルを返します。 料金: 成功した呼び出し1回あたり $0.05 USDC(Base上のx402決済)。

Input Schema

NameRequiredDescriptionDefault
textNoAlready available document text. Choose exactly one primary source: text, image_base64, or file_url. / 既に取得済みの文書テキスト。主入力としてtext、image_base64、file_urlのいずれか1つを指定します。
fieldsNoBilling-invoice fields only; receipt_date, receipt_number, and transaction_time are rejected. / 請求書専用項目。receipt_date、receipt_number、transaction_timeは指定できません。
addressNoOptional issuer address supplied by the caller for registry comparison. / 法人データ照合用の発行者住所(任意)。
file_urlNoHTTPS URL for an image or document file. / 画像・文書ファイルのHTTPS URL。
max_pagesNoMaximum PDF pages to process (1-2). / 処理するPDF最大ページ数(1〜2)。
mime_typeNoInput MIME type; inferred when omitted. / 入力MIMEタイプ。未指定時は推定します。image/jpeg
image_base64NoBase64-encoded file, at most 5 MB decoded over MCP/A2A; use an HTTPS URL or the HTTP API for larger files. / Base64エンコードしたファイル(MCP/A2Aではデコード後5MBまで。大きいファイルはHTTPS URLまたはHTTP APIを使用)。
supplier_nameNoOptional issuer name supplied by the caller for registry comparison. / 法人データ照合用の発行者名(任意)。
response_languageNoResponse presentation language: ja, en, or both. / レスポンス表示言語: ja、en、both。both

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, open-world, idempotent, and non-destructive behavior. Beyond that, the description discloses pricing ($0.05 USDC per successful call), x402 payment on Base, and returned components including an explicit review signal. It does not explain failure behavior or rate limits, but it adds substantial operational context.

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?

The description front-loads purpose and then uses labeled sections for use case, returns, and price. The English/Japanese duplication is redundant for an agent and roughly doubles length, though the structure remains clear.

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 complex OCR-plus-registry resolution tool with no output schema, the description covers purpose, use case, major return categories, and pricing. It leaves the meaning of the 'review signal' and failure behavior underspecified, but input constraints are fully covered by 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 all nine parameters are already documented in the schema. The description only loosely signals that issuer name/address may be supplied for comparison and that OCR input is supported; it adds no format, precedence, or validation detail beyond the schema.

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?

The opening sentence gives a specific three-step verb sequence—OCR, validate locally, and resolve the issuer against NTA registries—for a Japanese billing invoice. The composite scope clearly separates it from single-purpose sibling tools such as invoice extraction or issuer-only checks.

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?

The description explicitly says to use it when you need invoice OCR plus issuer name/address comparison or completion using NTA public data. It does not state when not to use it or name alternative siblings, so routing between related tools still requires some inference.

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