Skip to main content
Glama

Convert old address to new (2025)

vn_address_convert
Read-onlyIdempotent

Convert pre-July-2025 Vietnamese addresses to the new 34-province, two-level structure, returning mapped wards, provinces, and candidates for split wards.

Instructions

Convert a pre-July-2025 Vietnamese address (63 provinces, districts, wards) into the new 2-level structure (34 provinces, wards). Returns the new ward/province, mapping type (unchanged/merged/divided) and all candidates when the old ward was split. When the client supports elicitation, the server may ask the user to pick the new ward for a split old ward (chosenBy: user|default).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "vn_address_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoFree-text old address
wardNo
streetNo
districtNo
provinceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's extra value is real: it discloses the return payload (new ward/province, mapping type unchanged/merged/divided, all candidates on splits) and, importantly, an interactive elicitation step where the server may prompt the user mid-call with a chosenBy: user|default fallback. That is non-obvious behavior an agent must be prepared for. It does not cover failure modes (unmatched or ambiguous old ward) or rate limits, keeping it at 4.

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 sentences, front-loaded with the core transformation, then the return shape, then the elicitation caveat — each sentence carries distinct information. Dense parenthetical lists (63→34, unchanged/merged/divided, chosenBy values) make it slightly harder to scan than ideal, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 does the necessary work of describing return values, and it flags the elicitation behavior. What's missing for a data-lookup/mapping tool of this complexity is what happens on no-match or ambiguous input, and which parameter combination is expected given 0 required params — an agent could call it with an empty object and get no warning from the definition.

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 only 20% — only 'text' is documented. The description partially compensates by framing the inputs as old 3-level addresses (province/district/ward are pre-merger names), which gives real semantic meaning to three otherwise bare properties. However, with all 5 parameters optional and required count 0, it never says whether to supply free-text 'text' alone, the structured fields alone, or both, nor how conflicts are resolved.

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 precise verb and resource plus the transformation direction: 'Convert a pre-July-2025 Vietnamese address (63 provinces, districts, wards) into the new 2-level structure (34 provinces, wards).' That is far more specific than the bare name. It stops short of a 5 because it never names a sibling such as vn_address_convert_batch, so the single-address vs batch distinction is only implied by the singular wording.

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?

The input condition is stated explicitly ('pre-July-2025', 3-level structure), which tells an agent exactly which class of data this tool is for. There is no exclusion guidance (e.g., what to do for already-2-level addresses) and no named alternative for bulk input, so it falls one step short of full when/when-not guidance.

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