Skip to main content
Glama

Tax ID check digit

vn_tax_id_check_digit
Read-onlyIdempotent

Computes the 10th check digit for a Vietnamese tax ID from its first 9 digits, validating tax ID accuracy.

Instructions

Compute the 10th check digit of a Vietnamese tax ID from its first 9 digits.

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": {
      "first9": "<first9>"
    },
    "name": "vn_tax_id_check_digit"
  }
}

Input Schema

NameRequiredDescriptionDefault
first9YesExactly 9 digits

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds that this is a pure computation over 9 digits, but says nothing about the return shape (bare digit vs. object) or how non-digit/short input is handled.

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 sentence, zero filler, and the input constraint is front-loaded ahead of the computed result. Nothing could be removed without losing meaning.

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 pure function whose annotations already cover safety, this is nearly complete. The only real gap is that no output schema exists and the description does not state what the computed digit looks like on return.

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?

The single parameter has 100% schema coverage ('Exactly 9 digits'), so the schema carries the semantics. The description restates the same fact ('from its first 9 digits') without adding format rules, allowed characters, or an example, so baseline 3 applies.

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?

Names a specific verb (compute) and a precise resource (the 10th check digit of a Vietnamese tax ID), plus the exact input scope (first 9 digits). An agent can distinguish it from the batch/validate siblings by the word 'check digit' alone, though it never names the closest alternative (vn_tax_id_validate) explicitly.

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: you call it when you already hold 9 digits and want the check digit appended. There is no explicit statement about when to prefer vn_tax_id_validate instead, nor any precondition such as 'use after vn_tax_id_validate fails on digit 10'.

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