Skip to main content
Glama

Vietnamese phone number

vn_phone
Read-onlyIdempotent

Normalize Vietnamese phone numbers from 0/84/+84 or old 11-digit mobile prefixes into national and E.164 formats, then classify them as mobile or landline with area code and province.

Instructions

Normalise a Vietnamese phone number (0/84/+84, old 11-digit 01xx mobile prefixes) to national and E.164 forms and classify it: mobile (original carrier) or landline (area code, province). Offline.

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": {
      "phone": "<phone>"
    },
    "name": "vn_phone"
  }
}

Input Schema

NameRequiredDescriptionDefault
phoneYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety and determinism are covered structurally. The description adds real context on top: the output forms produced (national and E.164) and the classification scheme (mobile with original carrier vs landline with area code and province). It says nothing about invalid-input behavior or how ambiguous prefixes are resolved, which keeps it at a solid 3 rather than higher.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense sentence with zero filler: input formats are front-loaded, then outputs, then the classification rule, then the 'Offline' qualifier. Every clause carries information an agent would otherwise have to guess.

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 correctly compensates by naming the return shapes (national form, E.164 form, classification) rather than leaving returns opaque. For a one-parameter offline normalizer this is close to complete; the remaining gap is that error handling for malformed or non-Vietnamese numbers is unstated.

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 0% and the single 'phone' property has no description, so the description carries the full burden here. It does so usefully by naming the accepted shapes (leading 0, 84, +84, and legacy 11-digit 01xx mobile prefixes), which is exactly the meaning an agent needs to format the argument correctly.

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 pair (normalise, classify) against a specific resource (Vietnamese phone number), and even enumerates the accepted input notations (0/84/+84, legacy 01xx) and the two output forms. An agent knows exactly what comes out. It stops short of 5 because it never distinguishes itself by name from the nearby vn_number_format or vn_phone_parse_batch siblings, leaving that routing to inference.

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 only implied: the singular 'a Vietnamese phone number' plus the batch sibling's name suggests this handles one number at a time, and 'Offline' tells the agent no network call is needed. There is no explicit when-to-use, when-not-to-use, or named alternative, so the agent must infer the boundary itself.

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