Skip to main content
Glama
pakistan-mcp

pakistan-mcp

by mubasher1111

Check a CNIC number

validate_cnic
Read-onlyIdempotent

Checks Pakistani CNIC format and returns the formatted, masked number, region, and gender; verifies format only, not NADRA registration.

Instructions

Checks whether a Pakistani CNIC (13 digits, with or without dashes) has a valid format, and returns the formatted and masked number, the region from the first digit and the gender from the last digit. Checks format only; it does not verify the CNIC with NADRA.

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": {
      "cnic": "<cnic>"
    },
    "name": "validate_cnic"
  }
}

Input Schema

NameRequiredDescriptionDefault
cnicYesCNIC, e.g. 35202-1234567-3

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. The description adds real value beyond that: it discloses the returned fields (formatted and masked number, region from first digit, gender from last digit) and the format-only limitation. It does not say what the response looks like for a malformed input, which keeps it off a 5.

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 sentence with no filler: purpose first, accepted formats next, outputs next, and the negative constraint (no NADRA check) last. Every clause earns its place.

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 correctly compensates by enumerating the returned values, and the lone parameter is fully documented. Only minor ambiguity remains about what is returned for a format-failing CNIC (e.g., whether the derived fields are omitted).

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?

Schema coverage is 100% and the single parameter already carries an example, so the schema does the heavy lifting and the baseline is 3. The description does add a little meaning by stating that dashes are optional and that exactly 13 digits are expected, which is stricter than the example alone.

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?

States a specific verb and resource ("Checks whether a Pakistani CNIC ... has a valid format") and immediately scopes what is and isn't validated ("Checks format only; it does not verify the CNIC with NADRA"). That scope statement plus the sibling names (validate_iban, validate_ntn) make it unambiguous which validator to pick.

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?

Gives clear usage context via the accepted input forms (13 digits, with or without dashes) and an explicit exclusion: this is not a NADRA verification, so an agent knows not to use it when identity confirmation is needed. It stops short of naming any alternative tool for real verification, but no sibling appears to provide that, so the gap is minor.

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