Skip to main content
Glama

Official Records Hub: UK & US Property and Location Data

lookup_uk_postcode

Read-onlyIdempotent

Pay-per-call UK (Great Britain) postcode lookup for AI agents. Send a postcode such as SW1A 2AA and get latitude/longitude, council (local authority), county, region, country, ward, parish, parliamentary constituency and LSOA/MSOA statistical area codes, as clean JSON. Built on official ONS / Ordnance Survey open data, with the required licence attribution included. Invalid or unknown postcodes return an error and are never charged. Great Britain only (no Northern Ireland). Use this when the user gives a UK postcode and needs where it is (coordinates, council, ward, constituency, region) or wants to check a postcode is real. Not for: detailed area data (use uk_location_report) or US addresses. Price: $0.005 USDC per call (x402).

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": {
      "q": "<q>"
    },
    "name": "lookup_uk_postcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesUK (Great Britain) postcode, e.g. SW1A 2AA. Example: SW1A 2AA

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover safety (readOnly, idempotent, non-destructive), and the description adds information annotations cannot: per-call pricing ($0.005 USDC via x402), the fact that invalid/unknown postcodes error out and are never charged, the GB-only coverage excluding Northern Ireland, and the ONS/Ordnance Survey data source with licence attribution. That is meaningful operational context for an agent deciding whether to spend a call.

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

Conciseness4/5

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

Front-loaded with the core action and return fields, then pricing and constraints. Mostly dense, though a few phrases ('for AI agents', 'with the required licence attribution included') are filler that could be trimmed without losing meaning.

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?

No output schema exists, but the description enumerates the returned fields explicitly, and coverage limits, error behavior, and cost are all disclosed. An agent has everything needed to decide and invoke correctly.

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

Parameters4/5

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

Schema coverage is 100% and there is only one parameter, so the schema does the heavy lifting. The description still adds value by constraining valid input to GB postcodes (no Northern Ireland) and giving an accepted format example (SW1A 2AA), which reduces malformed calls.

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?

States a specific verb and resource (postcode lookup returning coordinates, council, ward, constituency, etc.) and explicitly scopes it to Great Britain. It also names the sibling it is not ('Not for: detailed area data (use uk_location_report)'), so an agent can route correctly without opening schemas.

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

Usage Guidelines5/5

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

Gives both positive triggers ('when the user gives a UK postcode and needs where it is ... or wants to check a postcode is real') and explicit exclusions ('Not for: detailed area data (use uk_location_report) or US addresses'), naming the alternative tool. Nothing is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources