Skip to main content
Glama

Parse many citizen IDs

vn_id_parse_batch
Read-onlyIdempotent

Validate and parse up to 1,000 Vietnamese CCCD/CMND numbers in one batch call, returning per-row outcomes and a summary of valid and invalid rows.

Instructions

Check up to 1000 Vietnamese CCCD/CMND 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": {
      "ids": "<ids>"
    },
    "name": "vn_id_parse_batch"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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, so the safety profile is covered. The description adds genuine behavioral context beyond that: per-row results, a summary of total/valid/invalid, and the precise failure contract for null, empty or non-string entries (ok:false, EMPTY, counted in summary.invalid).

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?

Three tight sentences, front-loaded with the operation and capacity, then return shape, then edge-case contract. No sentence restates a structured field without adding 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?

With no output schema, the description carries the return-value burden and does so adequately: per-row fields, ok:false, EMPTY, and summary.invalid. The main gap is that the full result field set is deferred to 'same fields as the single-value tool,' forcing a lookup in a sibling definition.

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% and the single parameter is documented there, so the baseline is a 3. The description still adds meaning: it extends the schema's 'null or empty' note to non-string entries and specifies the resulting error code and where those rows are counted.

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 states a specific verb and resource with explicit batch scope: 'Check up to 1000 Vietnamese CCCD/CMND numbers in one call.' The batch-versus-single distinction is conveyed by referring to 'the single-value tool,' though that sibling (vn_id_parse) is described only indirectly rather than named.

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?

It makes clear this is the bulk path ('up to 1000 ... in one call') and points to a single-value counterpart, so an agent can route correctly. What is missing is an explicit exclusion, such as 'use vn_id_parse for a single ID,' and any guidance on when batching is undesirable.

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