Skip to main content
Glama
jp-postal-code-mcp

jp-postal-code-mcp

by koizumikento

lookup_postal_code

Read-onlyIdempotent

Retrieves every matching town-area entry for a seven-digit Japan Post postal code, returning prefecture, municipality, and town area details plus all results when one code maps to multiple areas.

Instructions

Find every town-area entry for a seven-digit Japan Post address postal code.

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": {
      "postal_code": "<postal_code>"
    },
    "name": "lookup_postal_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
postal_codeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world, non-destructive, so the safety profile is covered. The description adds real value by signaling that a lookup can return multiple 'town-area' entries rather than a single record, and by pinning the data source to Japan Post. It says nothing about result limits, ordering, or behavior when a code is unknown, which keeps it at a middling score.

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?

One sentence with no filler, and the scope word 'every' is placed early. 'Town-area entry' is slightly jargon-heavy but functional; nothing is wasted.

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 an output schema present, return-value documentation is not needed, and a one-parameter lookup is simple enough that the description plus annotations cover the essentials. Only the multi-result behavior and the hyphen-format question are left underspecified.

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 0%, but the schema's regex pattern already encodes the accepted format. The description's 'seven-digit' phrasing restates the same constraint in prose and adds only that the code belongs to Japan Post, without clarifying whether the hyphen is expected.

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?

The description gives a specific verb ('Find') and resource ('town-area entry for a Japan Post address postal code') with an explicit scope ('every'). It implicitly separates this from lookup_business_postal_code by naming Japan Post residential town areas, but never names the sibling outright, so the differentiation requires inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this versus lookup_business_postal_code or search_postal_codes, and no preconditions or exclusions. The only guidance is the implied 'you have a postal code, you want town areas', which the agent must reconstruct itself.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.