Validate Postcode
validate_postcodeValidate a UK postcode format (e.g., 'SW1A 1AA'). Returns whether it's valid and format details.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"postcode": "SW1A 1AA"
},
"name": "validate_postcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postcode | Yes | UK postcode to validate (e.g. "SW1A 1AA"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | Whether the postcode is valid | |
| postcode | Yes | The UK postcode that was validated |