Check a CNIC number
validate_cnicChecks 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
| Name | Required | Description | Default |
|---|---|---|---|
| cnic | Yes | CNIC, e.g. 35202-1234567-3 |