pesel_validate
Validates the checksum of an 11-digit Polish national identification number (PESEL). Checksum uses weights 1 3 7 9 1 3 7 9 1 3 over the first 10 digits; control digit is (10 - sum mod 10) mod 10. On success also decodes the date of birth and sex embedded in the number; a checksum-valid number with an impossible calendar date (e.g. Feb 30) is still reported invalid.
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": {
"value": "<value>"
},
"name": "pesel_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | digits-only identifier to validate (no spaces or dashes) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sex | No | ||
| valid | Yes | ||
| reason | No | ||
| birthDate | No |