validate_postcode
Pack: postcodes · Endpoint: https://gateway.pipeworx.io/postcodes/mcp
Validate a UK postcode format (e.g., ‘SW1A 1AA’). Returns whether it’s valid and format details.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
postcode | string | yes | UK postcode to validate (e.g. “SW1A 1AA”). |
Example call
Arguments
{
"postcode": "SW1A 1AA"
}
curl
curl -X POST https://gateway.pipeworx.io/postcodes/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"validate_postcode","arguments":{"postcode":"SW1A 1AA"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('validate_postcode', {
"postcode": "SW1A 1AA"
});
More examples
{
"postcode": "invalid"
}
Response shape
Always returns: postcode, valid
| Field | Type | Description |
|---|---|---|
postcode | string | The UK postcode that was validated |
valid | boolean | Whether the postcode is valid |
Full JSON Schema
{
"type": "object",
"properties": {
"postcode": {
"type": "string",
"description": "The UK postcode that was validated"
},
"valid": {
"type": "boolean",
"description": "Whether the postcode is valid"
}
},
"required": [
"postcode",
"valid"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"postcodes": {
"url": "https://gateway.pipeworx.io/postcodes/mcp"
}
}
}
See Getting Started for client-specific install steps.