Skip to main content
Glama

PlugRail JP Corporate

search_invoice_batch

Read-only

適格請求書発行事業者番号(T+13桁)を1回の呼び出しで最大100件まで一括照会し、番号ごとに status(active=登録・cancelled=取消・expired=失効・not_found=未登録)と登録日・取消日・失効日を返します(国税庁公表データを加工)。results は入力順に1対1で返し、重複は除去しません。summary は出現回数で数えます。not_found は「その番号が存在しない」との断定ではなく、取り込みデータに無いことを示します(個人事業者の番号は取り込んでいないため、ここでは見つかりません)。形式が合わない番号(半角の T+13桁の数字でないもの)が1件でもあると、照会せず全体を拒否します。空配列と101件以上も拒否します。鍵なし・free プランは暦月100回まで(1回の呼び出しを1回として数えます)、pro プランは無制限です。入力例: {"invoiceNumbers": ["T1180301018771", "T1180301018772"]}

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": {
      "invoiceNumbers": "<invoiceNumbers>"
    },
    "name": "search_invoice_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceNumbersYes半角の T+13桁の適格請求書発行事業者番号の配列(1〜100件・入力順に結果を返す)。例: ["T1180301018771"]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / invoiceNumbers / description
      Previous value: -"T+13桁の登録番号の配列(1〜100件)。例: [\"T1180301018771\"]"New value: +"半角の T+13桁の適格請求書発行事業者番号の配列(1〜100件・入力順に結果を返す)。例: [\"T1180301018771\"]"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description adds substantial behavior beyond that – 1:1 input-order results, duplicates not removed, summary counted by occurrence, whole-request atomic rejection on one bad input, per-call rate accounting, and the crucial caveat that not_found means 'absent from ingested data' rather than 'does not exist'. The openWorldHint=false claim is consistent with the stated static 国税庁 dataset. Only the note that sole-proprietor numbers are not ingested borders on scope explanation rather than behavior, but it is still useful 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?

Front-loaded with the batch scope and return payload, then layered with rejection rules, limits, and the not_found caveat in a logical order. It is one dense block of near-run-on sentences with no separation between contract, caveats, and quotas, which costs some readability but no sentence is filler.

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

Completeness5/5

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

No output schema exists, and the description fully compensates: it enumerates status values (active/cancelled/expired/not_found) with meanings, names the date fields returned, and explains the results and summary shapes. Combined with the rejection rules and quota, an agent can call this correctly and interpret the response without further documentation.

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 100%, so baseline is 3; the description goes further by explaining that results come back in input order, that duplicates are preserved rather than collapsed, and by supplying a concrete input example. It does not add format rules beyond the schema pattern, so it does not reach 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?

States a specific verb and resource ('適格請求書発行事業者番号を1回の呼び出しで最大100件まで一括照会') plus exactly what is returned per number. The '一括' (batch) framing implicitly contrasts with the single-number sibling verify_invoice_number, but no sibling is named, so differentiation still requires the agent to infer it.

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?

Gives concrete usage conditions: one or more malformed numbers rejects the whole request, empty arrays and >100 entries are rejected, and free-tier callers are capped at 100 calls per calendar month. It never explicitly routes an agent to verify_invoice_number for a single number, which is the one missing piece of alternative-selection 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.