validate_company_number
Validate the format of a UK company number and identify its register prefix (e.g., SC, NI, OC). Ensures the number has correct structure (8 digits or 2-letter prefix + 6 digits) before use.
Instructions
USE THIS to check a UK company number is well-formed and identify its register/type before relying on it — never assume 8 characters are valid. Checks the format (8 digits, or a 2-letter prefix + 6 digits; there is NO check digit) and returns what the prefix denotes (e.g. SC = Scotland, NI = Northern Ireland, OC = LLP). Does NOT confirm the company exists — use lookup_company for that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | The UK company number to validate. |