validate_ids
Checks and decodes national IDs, tax IDs, company/VAT numbers, passports, and MRZ data to return matching ID types, checksum status, formatted layouts, and encoded fields (birth date, sex, region).
Instructions
Validate and decode ID numbers: national IDs, tax IDs, company and VAT numbers, passport numbers or MRZ.
Every ID type a value fits is returned, checksum-verified ones first, with the number's formatted layout and the fields it encodes (birth date, sex, region...). Without a hint, valid is null: one string can be a valid number in several countries. With country (ISO alpha-3, e.g. "POL") or an exact type (e.g. "pol_pesel", from an earlier result) only those types are tried and valid is true or false (null where the country's IDs have no checksum). Offline validation only: valid means correctly built, not that the document exists.
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": {
"values": "<values>"
},
"name": "validate_ids"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| values | Yes | ||
| country | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |