Skip to main content
Glama

jpverify

Extract Japanese invoice (OCR)

jp_invoice_extract
Read-onlyIdempotent

OCR a Japanese billing invoice (text, HTTPS file URL, or small Base64) with local date, tax, arithmetic and T-number checks; no registry lookup. Use when: You need Japanese billing-invoice OCR and deterministic quality checks without registry lookup. Returns: OCR-derived invoice fields plus format, arithmetic, tax, completeness, and review status. Price: $0.01 USDC per successful call, paid with x402 on Base. / 日本語請求書をOCRし、日付・税額・金額・T番号をローカル検証します(法人照合なし)。 用途: 日本語の請求書をOCRし、法人照合なしで日付・金額・税額・T番号を検証したい場合。 返却: OCR請求書項目に加え、形式・金額計算・税額・必須項目・確認状態を返します。 料金: 成功した呼び出し1回あたり $0.01 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は指定できません。
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

A4/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent and non-destructive; the description goes beyond them by disclosing the paid-call model ($0.01 USDC per successful call via x402 on Base) and the input ceilings (small Base64, max 1–2 PDF pages). What it does not disclose is failure behavior (e.g. what happens on an unreadable scan or when payment fails), which for a paid OCR call would matter.

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 block is well front-loaded (purpose, when-to-use, returns, price), but the entire description is then repeated verbatim in Japanese, roughly doubling length with no added information for an agent that already read the first half. Every sentence earns its place in the English block; the mirrored block does not.

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 carries the return-value burden and does so at a category level (invoice fields plus format, arithmetic, tax, completeness, review status). Combined with the fully described 7-parameter schema and the paid-call disclosure, this is nearly complete; only concrete output shape or error semantics are absent.

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% and every parameter already carries bilingual descriptions, so the baseline is 3. The description adds only a coarse restatement of the three input modes ('text, HTTPS file URL, or small Base64') with no new syntax or selection rules beyond what the schema states.

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 and resource ('OCR a Japanese billing invoice') plus the exact validation scope (local date, tax, arithmetic, T-number checks) and the explicit negative scope ('no registry lookup'). That negative scope separates it cleanly from siblings like jp_invoice_extract_and_verify, jp_invoice_issuer_check and jp_receipt_extract without opening any schema.

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?

A 'Use when' clause names the situation: Japanese billing-invoice OCR with deterministic quality checks and no registry lookup. The exclusion of registry lookup implicitly routes verification needs to a sibling, though it never names that alternative, so the agent must infer it from the sibling list.

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