Skip to main content
Glama

Parse citizen ID

vn_id_parse
Read-onlyIdempotent

Validate and decode 12-digit CCCD IDs to extract province, sex, and birth year with 2025 province mapping, or check 9-digit CMND format offline.

Instructions

Offline validation and decoding of a 12-digit CCCD (province, sex, birth year; legacy province mapped to 2025 province) or format check of a 9-digit CMND. Format validity does not prove the identity exists.

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": {
      "id": "<id>"
    },
    "name": "vn_id_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

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 cover the safety profile (readOnly, idempotent, closed-world, non-destructive), yet the description still adds real value: the operation is offline (no lookup/network), it decodes specific fields, it applies a legacy-to-2025 province mapping, and it explicitly warns that format validity does not prove the identity exists. Only failure/error behavior for malformed input is left unspecified.

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?

Two sentences, front-loaded with the core operation, with the caveat placed last where it belongs. The parenthetical about province, sex, birth year, and 2025 mapping is dense but each element earns its place as output/behavior disclosure.

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?

For a read-only single-parameter tool with no output schema, the description covers input format, offline behavior, decoded fields, and a key caveat. It does not describe the response shape or how invalid IDs are signaled, which leaves a meaningful gap given no output schema exists to fill it.

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?

With a single parameter and 0% schema description coverage, the schema alone says nothing about what 'id' must contain. The description compensates by specifying the two accepted formats (12-digit CCCD, 9-digit CMND), which is the decisive semantic an agent needs. It stops short of detailing what formats are rejected or what happens to malformed input.

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 names a specific verb (offline validation and decoding) and resource (12-digit CCCD / 9-digit CMND), and even enumerates the decoded fields (province, sex, birth year). It doesn't explicitly contrast with the sibling vn_id_parse_batch, but the singular 'an ID' framing and the digit-length distinctions make the operation unambiguous.

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 implied by the framing: use it to validate and decode one citizen ID offline. There is no explicit when-to-use versus when-not, and the batch sibling is never named as the alternative for multiple IDs. The closing caveat about format validity is a limitation, not routing guidance.

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