Skip to main content
Glama

Official Records Hub (UK & US): property, company, sanctions, health, vehicle & travel checks

uk_postcode_batch

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.6/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so: it discloses pricing model ($0.05 USDC flat per batch, x402), a billing safeguard ('if no postcode is valid, the call is never charged'), per-postcode status values (ok, invalid, not_found, unsupported_area), data provenance (ONS / Ordnance Survey), and a hard geographic restriction (Great Britain only). These are exactly the traits an agent cannot infer from the schema.

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 capability, then output fields, statuses, pricing, and exclusions in a logical order. Minor redundancy: the geographic restriction appears twice ('UK (Great Britain)' and 'Great Britain only') and pricing is mentioned in two sentences, but most of the text earns its place.

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 single-parameter tool with no output schema, the description covers everything needed: what comes back (lat/long, council, county, region, ward, parish, constituency, LSOA/MSOA), the JSON format, per-item status semantics, cost, and coverage limits. No gap remains that would cause a misinvocation.

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 description coverage is 100% and the single parameter already documents the comma-separated, up-to-100-postcode format with an example. The description repeats the batch format but adds no syntax or edge-case detail beyond it, so the baseline 3 applies.

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 (Great Britain) postcode lookup') plus scope (up to 100 postcodes, GB only), and explicitly names the single-postcode sibling it is not. An agent can distinguish it from lookup_uk_postcode without opening either 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 an explicit when-to-use condition ('look up or validate many UK postcodes at once, up to 100') and an explicit when-not with the named alternative ('Not for: a single postcode (use lookup_uk_postcode)'). 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