Skip to main content
Glama

Official Records Hub: UK & US Property and Location Data

uk_postcode_batch

Read-onlyIdempotent

Pay-per-call bulk UK (Great Britain) postcode lookup for AI agents. Send up to 100 comma-separated postcodes in one request and get latitude/longitude, council, county, region, country, ward, parish, constituency and LSOA/MSOA for each, as clean JSON, with a per-postcode status (ok, invalid, not_found, unsupported_area). One flat price for the whole batch. Built on official ONS / Ordnance Survey open data. If no postcode is valid, the call is never charged. Great Britain only. Use this when you need to look up or validate many UK postcodes at once (up to 100). Not for: a single postcode (use lookup_uk_postcode). Price: $0.05 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": "uk_postcode_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesUp to 100 UK postcodes, comma-separated, e.g. SW1A 2AA,M1 1AE,L35 1QA. Example: SW1A 2AA,M1 1AE,ZZ99 9ZZ

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the bar is lower, but the description still adds substantive context: $0.05 flat per call, no charge when zero postcodes validate, per-postcode status codes, and the ONS/Ordnance Survey data provenance. The only gap is that it doesn't say how partial failures affect billing or whether results are ordered to match the input list.

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 sized reasonably for a paid bulk tool, with the usage rule and exclusion at the end. Minor waste: price is stated twice ('One flat price for the whole batch' and '$0.05 USDC per call') and Great Britain is repeated as both 'UK (Great Britain)' and 'Great Britain only'.

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?

There is no output schema, so the description carries the return-value burden and does so by enumerating output fields and per-postcode statuses. Pricing, billing exception, geographic scope, and the single alternative are all covered, leaving nothing an agent needs in order to invoke it correctly.

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?

Schema coverage is 100% and the single parameter already documents the comma-separated format, the 100 limit, and examples, so the description only reinforces what is structured. The status vocabulary (ok, invalid, not_found, unsupported_area) is informative but describes outputs rather than the input parameter.

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 ('bulk UK postcode lookup'), the batch cap (up to 100), and the returned fields, so the agent knows exactly what this does. It also explicitly names the sibling it is not ('Not for: a single postcode (use lookup_uk_postcode)'), making it distinguishable without opening a schema.

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 directions: use when looking up or validating many UK postcodes at once, and explicitly exclude single-postcode work in favor of lookup_uk_postcode. The 'Great Britain only' boundary is a real constraint that prevents wasted paid calls on NI postcodes.

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