validate_postcode
Check a UK postcode is well-formed and split it into outward and inward codes, returning the canonical spaced form. Deterministic format check only.
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.
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": {
"postcode": "<postcode>"
},
"name": "validate_postcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postcode | Yes | The UK postcode to validate. |