validate_polish_id
Validate Polish identifiers (NIP, PESEL, REGON, KRS, IBAN) using local checksums. Receive validity status and normalized form without network calls.
Instructions
Validate a Polish identifier (NIP tax id, PESEL national id, REGON business registry id, KRS National Court Register number, or IBAN/NRB bank account) and return whether it is valid plus its normalized form. Purely local checksum validation — makes no network calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Which Polish identifier to validate: "nip" (tax id), "pesel" (national id), "regon" (business registry id), "krs" (National Court Register number), or "iban" (Polish IBAN/NRB bank account). | |
| value | Yes | The raw identifier value, in any common formatting (spaces, dashes, an optional "PL" prefix for NIP/IBAN). |