Skip to main content
Glama

Validate UK Postcode

address.ukpost.validate
Read-onlyIdempotent

Validate UK postcodes and confirm they exist. Returns true or false for form validation and data cleaning.

Instructions

Check if a UK postcode is valid and exists — returns true/false. Use for form validation or data cleaning (Postcodes.io)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
postcodeYesUK postcode to validate (e.g. "SW1A 1AA"). Returns true if valid format and exists

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate readOnlyHint=true and idempotentHint=true, making the tool's non-destructive nature obvious. The description adds that it relies on Postcodes.io and returns a boolean, but doesn't elaborate on rate limits or other behavioral nuances.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single, front-loaded sentence that efficiently conveys the tool's purpose and typical use cases without any superfluous words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple validation tool with 1 parameter and boolean output, the description provides all necessary information: what it does, how to use it (example postcode), and the data source. No further detail is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema covers 100% of the single parameter with a clear example and explanation. The description adds minimal extra meaning beyond the schema's description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool checks if a UK postcode is valid and exists, returning a boolean. It distinguishes itself from sibling tools like address.ukpost.lookup (which likely returns details) by focusing purely on validation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly recommends use for 'form validation or data cleaning'. While it doesn't state when not to use it, the context implies that for detailed postcode information, other sibling tools would be more appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/whiteknightonhorse/APIbase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server