Skip to main content
Glama

Official Records Hub: UK & US Property and Location Data

uk_postcode_nearest

Read-onlyIdempotent

Pay-per-call nearest-postcode search for AI agents. Send a UK (Great Britain) postcode and get the postcodes around it, closest first, with distance in metres, coordinates, council and ward, as clean JSON. Optional radius (up to 2000 m, default 500) and limit (up to 100, default 10). Useful for local search, delivery areas and catchments. Built on official ONS / Ordnance Survey open data. Invalid or unknown postcodes return an error and are never charged. Great Britain only. Use this when the user wants postcodes near a UK postcode or near coordinates. Not for: finding shops, services or places of interest. Price: $0.01 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_nearest"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesUK postcode to search around, e.g. SW1A 2AA. Example: SW1A 2AA
limitNoMaximum results, 1-100 (default 10). Example: 10
radiusNoSearch radius in metres, 1-2000 (default 500). Example: 500

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered; the description goes well beyond that. It discloses the billing model and price ($0.01 USDC per call via x402), the failure semantics ('Invalid or unknown postcodes return an error and are never charged'), the data provenance (ONS/Ordnance Survey open data), and the geographic limit (Great Britain only). For a paid, external-data tool, these are exactly the traits an agent needs before committing 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?

The description is front-loaded with the core action and the result shape, then layers constraints, exclusions and pricing; each sentence carries information. There is mild redundancy: 'Pay-per-call' appears in the first clause and is repeated as 'Price: $0.01 USDC per call (x402)' at the end, and the mention of coordinate proximity adds a claim the schema does not support.

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, so the description must carry the return contract, and it does: it specifies sorted order, distance units, coordinate fields, and administrative fields (council and ward) as JSON. Combined with limits, defaults, pricing, error behavior and geographic scope, an agent has everything needed to decide whether to call and to interpret the result.

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 description largely restates what the schema already says: radius up to 2000 m with default 500, and limit up to 100 with default 10. It adds the useful output-ordering semantics ('closest first'), but it gives no new meaning for the required `q` parameter, such as accepted postcode formats or normalization behavior. With the schema doing the heavy lifting, baseline 3 is appropriate.

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

Purpose4/5

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

The description gives a specific verb and resource ('Send a UK postcode and get the postcodes around it, closest first'), and it enumerates the payload (distance in metres, coordinates, council, ward, JSON). It also scopes the tool to Great Britain and excludes categories of use ('Not for: finding shops, services or places of interest'). One flaw keeps it from 5: it claims the tool works 'near coordinates', yet the schema's only required input is a postcode string, so the stated capability does not match what an agent can actually supply.

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?

It contains an explicit trigger ('Use this when the user wants postcodes near a UK postcode') and an explicit exclusion ('Not for: finding shops, services or places of interest'), which is more than most definitions offer. It does not name a sibling alternative (for example, lookup_uk_postcode or uk_postcode_distance) that would let an agent route a single-postcode lookup elsewhere, so the 'alternatives' prong of a 5 is unmet.

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