Skip to main content
Glama

Normalize a Japanese address (to town level) / 住所の正規化(町域まで)

normalize_address
Read-onlyIdempotent

Split a Japanese address into prefecture, city, town and the rest (block numbers, building), matching Japan Post's address data, and return candidate postal codes. Absorbs full/half-width, spacing, kanji vs. arabic numerals, ヶ/ケ and omitted county names; fills in the prefecture when the city is unique. Does NOT verify block/house numbers and has no coordinates. level tells how far the match went: 0 = nothing matched, 1 = prefecture only (see city_candidates if the city name is ambiguous), 2 = city matched but not the town (postal_codes are city-wide candidates), 3 = town matched. address and municipality_code are null below level 2. flags: partial (level below 3), ambiguous (several city or postal code candidates — ask the user or show all). / 住所を都道府県・市区町村・町域・残り(番地・建物名など)に分け、郵便番号の候補を返す(日本郵便のデータにあてはめる)。番地が実在するかの確認と緯度・経度はない。level:0=わからない、1=都道府県まで、2=市区町村まで(町域はわからない)、3=町域まで。

Input Schema

NameRequiredDescriptionDefault
addressYesJapanese address, e.g. 北海道札幌市中央区大通西10丁目1-1 / 住所

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / address / maxLength
      Added value: +200
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations cover safety (readOnly, idempotent, closed-world), and the description adds substantial context beyond them: which input variants it absorbs (full/half-width, spacing, kanji vs. arabic numerals, ヶ/ケ, omitted county names), that it does not verify block numbers and returns no coordinates, the meaning of `level` 0-3, nullability below level 2, and the `partial`/`ambiguous` flags.

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?

Purpose is front-loaded, followed by behavior, level semantics, then flags in a logical order. The bilingual English/Japanese rendering roughly doubles the length, and the Japanese portion drops some details (flags, city_candidates note), so there is mild redundancy rather than pure waste.

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?

With no output schema, the description correctly carries the burden of explaining return values: `level`, `city_candidates`, `postal_codes`, `address`, `municipality_code`, and the flags. For a single-parameter tool, an agent has everything needed to call and interpret it.

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% and there is only one parameter, so the baseline is 3. The description adds genuine input semantics beyond the schema example by explaining the tolerated input variation (full/half-width, spacing, numeral styles) and the prefecture-fill behavior, which helps the agent format input.

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 ('Split a Japanese address into prefecture, city, town and the rest') and defines the exact scope ('to town level'). The tool is clearly distinguishable from siblings like lookup_postal_code by its parsing/decomposition behavior, and it explicitly declares its boundaries ('Does NOT verify block/house numbers and has no coordinates').

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the agent learns it handles messy/omitted address forms and should ask the user or show all candidates when `ambiguous`. However, it never says when to prefer this over lookup_postal_code or search_postal_code, so alternative selection is left to inference.

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