Skip to main content
Glama

Validate tax ID

vn_tax_id_validate
Read-onlyIdempotent

Validate Vietnamese tax IDs offline: check 10-digit enterprise, 13-digit branch check digits, and 12-digit personal ID format without querying the tax authority.

Instructions

Offline validation of a Vietnamese tax ID (mã số thuế): 10 digits (enterprise), 13 digits (branch, e.g. 0100233488-001) with check-digit verification, or 12-digit personal ID (format only). Does not query the tax authority.

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": {
      "taxId": "<taxId>"
    },
    "name": "vn_tax_id_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, and the description adds value on top: validation is local, no network call is made, and verification depth differs by format (real check-digit verification for 10/13 digits versus format-only for 12 digits). It stops short of describing the result shape or failure messaging, which matters since there is no output schema.

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?

A single dense sentence with the core action, format rules and the network caveat front-loaded; every clause carries information an agent needs and there is no filler.

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?

For a one-parameter validator with no output schema, the description covers input formats, verification depth per format, and offline behavior — enough to invoke correctly. The one remaining gap is what the response contains (validity flag, parsed components), which the absence of an output schema leaves entirely undocumented.

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% — taxId is an unconstrained string — so the description carries the burden and does so well, spelling out accepted lengths and even a hyphenated branch example. It does not say whether separators, spaces or non-numeric characters are tolerated or must be stripped beforehand.

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 and resource ('Offline validation of a Vietnamese tax ID') and enumerates exactly which ID forms it handles (10-digit enterprise, 13-digit branch with check digit, 12-digit personal format-only). It is clearly the single-ID validator rather than the batch sibling, though it never names an alternative tool, so differentiation is inferential.

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?

'Offline' and 'Does not query the tax authority' imply the situation to use it (no authority lookup available or desired), and the format-only caveat for 12-digit IDs tells the agent what to expect in that case. However, there is no explicit when-to-use/when-not statement and no routing to siblings such as the batch validator or the bare check-digit tool.

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