Skip to main content
Glama

UK Property & Location Data

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. 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.1/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses pricing, the charging rule when no postcode is valid, the per-postcode statuses, GB-only coverage, and the returned fields. It still omits rate limits, timeout behavior, and what happens if more than 100 postcodes are sent.

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?

The description is front-loaded with the core batch-lookup purpose and is appropriately sized for a paid batch API. It is mostly efficient, though 'for AI agents' is filler and pricing is introduced twice ('Pay-per-call' and the explicit $0.05 USDC line).

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

Completeness4/5

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

For a one-parameter batch tool with no output schema and no annotations, the description covers the essential invocation context: input format, GB-only scope, output fields, per-postcode statuses, and charging behavior. It is not fully exhaustive on edge cases such as malformed input or over-limit batches, but it gives an agent enough to call the tool 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%, so the baseline is 3, but the description adds a meaningful input constraint beyond the schema: the service is Great Britain only. It also reinforces the batch size and comma-separated format already present in the schema, and its status list helps explain how invalid or unsupported postcodes are treated.

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 a specific verb and resource: bulk UK postcode lookup. It also distinguishes the tool's batch scope by saying it accepts up to 100 postcodes in one request, which separates it from single-postcode siblings without needing to name them.

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

Usage Guidelines3/5

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

Usage is implied by 'bulk' and 'up to 100 comma-separated postcodes', and the description explicitly limits the service to Great Britain. However, it does not explicitly say when to use this instead of a single-postcode lookup or other UK location tools, leaving the agent to infer the batch-versus-single distinction.

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