Skip to main content
Glama

jpverify

Extract Japanese receipt (OCR)

jp_receipt_extract
Read-onlyIdempotent

OCR a Japanese receipt with local amount, tax and T-number checks; detected T-numbers are verified with the NTA registry. Use when: You need Japanese receipt or 領収書 OCR with local tax, amount, T-number, and format checks. Returns: Structured receipt fields, deterministic validation, field status, and review signals. Price: $0.03 USDC per successful call, paid with x402 on Base. / 日本語領収書をOCRし、金額・税額・T番号を検証します。 用途: 日本語の領収書・レシートをOCRし、金額・税額・T番号・形式を検証したい場合。 返却: 構造化された領収書項目、決定論的検証、項目状態、確認シグナルを返します。 料金: 成功した呼び出し1回あたり $0.03 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つを指定します。
fieldsNoReceipt fields only; postal code, phone, and address checks are format/structure checks and do not verify reality or exact location. / 領収書項目のみ。郵便番号・電話番号・住所は形式・構造だけを確認し、実在性や番地の正確性は検証しません。
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を使用)。
response_languageNoResponse presentation language: ja, en, or both. / レスポンス表示言語: ja、en、both。both

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing per-call price ($0.03 USDC via x402 on Base), the external NTA registry verification step, and that returned validation is deterministic with field status and review signals. It does not say what happens when a T-number fails registry lookup or how errors/partial OCR are reported, which keeps it from a 5.

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 English text is well front-loaded with labeled 'Use when:', 'Returns:', 'Price:' blocks and zero filler. However, the entire description is then duplicated verbatim in Japanese, roughly doubling token cost for an agent that only needs one rendering.

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 no output schema, the description compensates by enumerating return contents (structured fields, deterministic validation, field status, review signals) and discloses cost and validation limits. For a 7-parameter, multi-source-input tool it is nearly complete, missing only failure-mode behavior.

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 one-of input source rule, page limit, size ceiling and language enum are already fully documented in the schema. The description adds only indirect meaning (that T-number checks relate to registration fields) and no syntax or format detail beyond what the schema provides; baseline 3 applies.

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?

States a specific verb+resource ('OCR a Japanese receipt') plus the validation scope (local amount, tax, T-number, NTA registry lookup), which is enough to separate it from jp_business_card_extract or jp_address_validate. It never explicitly contrasts itself with the adjacent jp_invoice_extract / jp_invoice_extract_and_verify siblings, so an agent must infer the receipt-vs-invoice boundary from the noun alone.

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 'Use when:' line gives a clear triggering context (Japanese receipt/領収書 OCR with tax, amount, T-number and format checks), repeated in Japanese for the same audience. There are no explicit exclusions or 'use X instead' routing to the invoice/verification siblings, so it stops short of full when-not guidance.

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