Skip to main content
Glama

Parse many phone numbers

vn_phone_parse_batch
Read-onlyIdempotent

Validate and parse up to 1,000 Vietnamese phone numbers in one call, returning per-row results plus totals for valid and invalid entries.

Instructions

Check up to 1000 Vietnamese phone numbers in one call. Returns per-row results (same fields as the single-value tool) plus a summary of total, valid and invalid rows. Null, empty or non-string entries do not fail the call: they come back as failed rows (ok:false, error code EMPTY) and are counted in summary.invalid.

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": {
      "phones": "<phones>"
    },
    "name": "vn_phone_parse_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
phonesYesPhone numbers (max 1000); null or empty entries become failed rows

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's real contribution is the error-handling contract: null, empty, and non-string entries do not fail the whole call but come back as ok:false rows with error code EMPTY and are tallied in summary.invalid. That is genuinely useful behavior not derivable from the annotations. It stops short of covering ordering, duplicate handling, or partial-failure reporting beyond the empty case.

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 scope and the 1000-item cap front-loaded, followed by return shape and then the edge-case contract. No filler or redundancy; the only minor inefficiency is restating the null/empty behavior that the schema also carries.

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?

There is no output schema, so the description correctly takes on the burden of describing return values: per-row results using the single-value tool's fields plus a total/valid/invalid summary. Combined with the explicit empty-entry behavior, an agent has enough to call this correctly. It would be a 5 with a note on result ordering or how partial results relate to input indices.

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 description coverage is 100% and the single parameter's description already states the max-1000 limit and that null/empty entries become failed rows. The prose mostly restates that, adding only the EMPTY error code detail, so it does not materially extend parameter meaning beyond the schema.

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 concrete action ('check'), a concrete resource ('Vietnamese phone numbers'), and an explicit batch scope ('up to 1000 ... in one call'), which cleanly separates it from the single-value parse tool it references. It loses a point only because it refers to the sibling obliquely as 'the single-value tool' rather than naming it, so an agent must infer that this is the batch counterpart.

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 usage context is implied by the batch framing and the 1000-item cap, which tells the agent this is for bulk input rather than a single lookup. However, there is no explicit when-not guidance (e.g., 'use vn_phone for one number') and no mention of cost, throttling, or recommended chunking for large lists.

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