Skip to main content
Glama

Japan Business Tools

Find postal codes by address / 住所から郵便番号

search_postal_code
Read-onlyIdempotent

Find Japanese postal codes by prefecture, city and (optionally) part of the town name, from Japan Post data. The city must be the full municipality name (e.g. 札幌市中央区, 新宿区); the county name may be omitted. With office_name, searches business-specific codes (大口事業所個別番号) of businesses in that city by name instead. Returns up to 100 matches. / 都道府県・市区町村・町域(部分一致、任意)から郵便番号を探す。市区町村は正式な名前で(郡名は省いてよい)。office_name を指定すると、その市区町村の事業所の個別郵便番号を事業所名(部分一致)で探す。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYesMunicipality, e.g. 新宿区 / 市区町村
townNoPart of the town name, e.g. 西新宿 (optional) / 町域の一部(任意)
prefectureNoPrefecture, e.g. 東京都 (optional) / 都道府県(任意)
office_nameNoPart of a business name, in kanji or katakana (optional) / 事業所名の一部(任意)

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 declare readOnlyHint/idempotentHint/openWorldHint=false, so the safety profile is covered. The description adds value beyond that by naming the data source (Japan Post data) and disclosing a result cap ('Returns up to 100 matches'), which the agent needs to interpret truncation. No auth, rate-limit, or ordering details.

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 core purpose and the mode switch in the first two sentences, and the 100-match limit is placed where it matters. The full Japanese restatement roughly doubles the length, which is defensible for a Japanese-data tool but is pure duplication for a reader of one language.

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 burden and does state what comes back (postal codes, up to 100 matches). It leaves unstated whether the response includes the matched address/town and whether multiple codes per town can be returned, which matters for a partial-match search.

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 the baseline is 3, but the description adds real semantics the schema does not carry: that `office_name` does not merely filter but switches the search to business-specific codes by name, and that `city` must be the formal municipality with the county name optionally dropped.

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 ('Find Japanese postal codes by prefecture, city and (optionally) part of the town name') and clearly delineates a second mode via `office_name` for business-specific codes (大口事業所個別番号). It never names the near-identical sibling `lookup_postal_code`, so an agent cannot tell from this text which of the two postal tools to pick.

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 input preconditions ('the city must be the full municipality name, e.g. 札幌市中央区; the county name may be omitted') and explains the conditional branch that changes behavior when `office_name` is supplied. It stops short of any when-not-to-use guidance or an explicit alternative tool.

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