Skip to main content
Glama
cn-mcp-kit

cn-mcp-kit

by yuannuo233

idcard_validate

Validates Chinese mainland 18-digit ID numbers using checksum and birth-date checks, returning birth date, age, gender, and region code; does not verify real identity.

Instructions

校验中国大陆 18 位身份证号是否合法(校验位算法 + 出生日期是否真实存在),合法时返回出生日期、年龄、性别和地区码。仅做格式校验,不查询真实身份。

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": "idcard_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes18 位身份证号,末位可为 X

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the validation checks and the fields returned for a valid ID, plus the no-identity-query guarantee, but it does not say what happens for an invalid ID (false, error, or partial result).

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?

Two short sentences, front-loaded with purpose and scope. Every clause adds useful information, with no redundant or filler wording.

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 simple pure validator with no output schema, the description explains the checks and the valid-case return fields well enough to call it. The main missing piece is explicit invalid-case return or error behavior.

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?

There is only one parameter and schema coverage is 100%; the schema already documents the 18-digit string and trailing X allowance. The description adds no further format, normalization, or error-handling detail beyond the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (validate) and resource (mainland China 18-digit ID number), specifies the exact checks (check digit algorithm and real birth date existence), and explicitly limits scope to format validation rather than identity lookup.

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 gives a clear usage boundary: format validation only, not real identity verification. However, it does not name any alternative tool or explicitly describe when a different validation approach should be used.

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