Skip to main content
Glama

Japan Corporate Number & Invoice Check

Validate Corporate Number Check Digit (Local)

validate_corporate_number
Read-onlyIdempotent

13桁の法人番号の形式およびモジュラス9(ウェイト1-2方式)によるチェックデジットをローカルで検証します(外部通信なし)。チェックデジットが正しくても、その法人が実在することは確認しません。 / Offline-validate a 13-digit Japanese corporate number's format and Modulus 9 (weight 1-2) check digit without external network calls or verifying company existence.

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": {
      "corporate_number": "<corporate_number>"
    },
    "name": "validate_corporate_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
corporate_numberYes13-digit corporate number string to validate

Output Schema

NameRequiredDescriptionDefault
error_reasonYesValidation failure reason code if invalid; null when valid
is_valid_formatYesTrue if input matches 13 half-width digits
is_valid_check_digitYesTrue if Modulus 9 (weight 1-2) check digit matches the first digit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so safety and offline behavior are largely covered, and 'no external communication' partly restates openWorldHint=false. The genuinely additive disclosure is the caveat that a valid check digit does not prove the corporation exists — a real behavioral limit an agent could otherwise misread as confirmation. It says nothing about the shape of the result, though an output schema exists to cover that.

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?

Each language version is tight and front-loaded with the verb and resource, but the Japanese and English sentences are full duplicates of the same content, effectively doubling length without adding information for a single agent. The scope caveat is placed well at the end of each version. Acceptable, but the redundancy costs it a point.

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?

For a single-parameter, pure-function validator this is complete: the algorithm, the offline constraint, and the existence caveat are all stated, and the output schema covers return values so they need not be described. Nothing an agent needs in order to call it correctly is missing.

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?

There is one parameter with 100% schema description coverage and a regex pattern (^[0-9]{13}$), so the schema already carries the semantics. The description reinforces the 13-digit format and names the checksum algorithm, but adds no input-level detail (e.g., handling of hyphens, full-width digits, or leading zeros) beyond what the schema states. Baseline 3 is appropriate.

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 (validate) and resource (13-digit Japanese corporate number) plus the exact algorithm applied (Modulus 9, weight 1-2), and explicitly delimits scope by saying it does not confirm the company actually exists — which cleanly separates it from lookup_corporate_by_number. An agent can distinguish it from every listed sibling without opening a 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?

Gives clear usage context: local/offline, no network calls, checksum-only, no existence verification. That implicitly tells the agent to reach for a lookup sibling when real-entity confirmation is needed. It stops short of naming the alternative tool or stating an explicit 'use this instead of X when...' rule, so it is strong but not a 5.

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.