Skip to main content
Glama

Parse Vietnamese address

vn_address_parse
Read-onlyIdempotent

Parse free-text Vietnamese addresses into province, ward, and street with post-2025 catalogue, including missing diacritics and abbreviations; switch to legacy mode for pre-2025 districts.

Instructions

Parse a free-text Vietnamese address into province / ward / street using the post-01/07/2025 catalogue (34 provinces, no districts). Handles missing diacritics and abbreviations (TP.HCM, Q.1, P. Bến Nghé). Set mode "legacy" for pre-2025 addresses with districts.

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": {
      "text": "<text>"
    },
    "name": "vn_address_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDefault auto
textYesFree-text address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds genuine value with the catalogue version (post-01/07/2025, 34 provinces, no districts) and the diacritic/abbreviation tolerance — those are real behavioral traits an agent could not infer from structured fields. Missing is any statement about failure behavior (what happens on an unparseable address) or confidence output.

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?

Three tight sentences with the core action front-loaded, zero wasted clauses. Slightly dense with parenthetical asides (catalogue stats, example abbreviations) but they all carry information.

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?

For a 2-parameter read-only tool with full schema coverage and annotations, the description covers action, output fields, and the tricky mode case. Since there is no output schema, it would be stronger if it stated the exact return shape or error behavior, but it is close to complete.

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 coverage is 100%, so both parameters are already documented, and the baseline of 3 applies. The description does add real meaning for mode="legacy" that the enum alone does not convey, but it does not distinguish "auto" from "from2025", leaving the agent to guess which to pick.

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 ("Parse a free-text Vietnamese address") and names the output shape (province / ward / street), so an agent knows exactly what comes back. It also names the underlying catalogue version, which implicitly separates it from vn_address_convert, but it never explicitly contrasts with that sibling.

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?

The only conditional guidance is parameter-level: "Set mode 'legacy' for pre-2025 addresses with districts." There is no statement of when to call this versus vn_address_convert, vn_address_search_wards, or vn_address_province, so routing among siblings 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.