validate_postcode
Validates a UK postcode format, splitting it into outward and inward codes. Returns the canonical spaced form for reliable storage and matching.
Instructions
USE THIS to check a UK postcode is well-formed and to split it into its outward and inward codes before storing or matching it — instead of trusting raw input. Deterministic format check only (no lookup); returns the canonical spaced form, outcode and incode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postcode | Yes | The UK postcode to validate. |