validate_postcode

Pack: postcodes · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/validate_postcode for the schema, then POST the same URL with its arguments for the data.

Validate a UK postcode format (e.g., ‘SW1A 1AA’). Returns whether it’s valid and format details.

Parameters

NameTypeRequiredDescription
postcodestringyesUK 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

FieldTypeDescription
postcodestringThe UK postcode that was validated
validbooleanWhether 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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the postcodes pack
{
  "mcpServers": {
    "postcodes": {
      "url": "https://gateway.pipeworx.io/postcodes/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 30, 2026