Skip to main content
Glama

Convert many old addresses to new (2025)

vn_address_convert_batch
Read-onlyIdempotent

Converts up to 1,000 pre-July-2025 Vietnamese free-text addresses from the old 63-province structure to the new 34-province, two-level format and returns per-row results with a conversion summary.

Instructions

Convert up to 1000 pre-July-2025 Vietnamese free-text addresses (63 provinces, districts, wards) into the new 2-level structure (34 provinces, wards) in one call. Returns per-row results plus a summary of converted and failed rows. Null, empty or non-string entries do not fail the call: they come back as failed rows (ok:false with an error code) and are counted in summary.failed.

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": {
      "addresses": "<addresses>"
    },
    "name": "vn_address_convert_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressesYesFree-text old addresses (max 1000); null or empty entries become failed rows

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, closed-world behavior, and the description adds genuinely new behavioral context: bad input (null/empty/non-string) does not abort the call but surfaces as ok:false failed rows counted in summary.failed. It does not discuss partial-failure thresholds, ordering, or latency for a 1000-row batch, which would round it out.

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, front-loaded with the operation and its limit, then the return shape, then the edge case. The failure behavior is stated twice in slightly different words (failed rows vs. summary.failed count), which is minor redundancy but also reinforcement.

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 supplied, the description carries the return contract itself ('per-row results plus a summary of converted and failed rows') and documents the error path, which is exactly what an agent needs before issuing a 1000-row call.

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 goes beyond the schema by clarifying what 'old' means (pre-July-2025, 63 province/district/ward structure) and by extending the failure semantics to non-string entries, which the schema does not mention.

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?

The description names a concrete verb and resource (convert Vietnamese free-text addresses), the scope (up to 1000 rows, one call) and the transformation direction (pre-July-2025 3-level to 2025 2-level, 63→34 provinces). An agent can immediately tell this is the bulk variant of the address conversion task.

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 'up to 1000 ... in one call' phrasing and the 'pre-July-2025' qualifier make the intended situation clear: bulk historical address conversion. It stops short of explicitly routing single-address callers to the sibling vn_address_convert, so there are no stated exclusions or alternatives.

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