Skip to main content
Glama

UK Property & Location Data

uk_postcode_nearest

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. 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

A3.5/5.0
Behavior3/5

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

With no annotations, the description does substantial work: per-call pricing ($0.01 USDC via x402), invalid postcodes returning an error and never being charged, GB-only coverage, radius cap of 2000 m and limit cap of 100. It still omits error payload shape and any rate-limit or latency behavior, so it is strong but not exhaustive for a metered external-data tool.

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?

It is front-loaded with the core action, then constraints, then pricing, and every sentence carries information. The ONS/Ordnance Survey provenance line is mildly promotional but defensible as data-quality context.

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?

With no output schema, the description compensates by enumerating returned fields, ordering and distance units, plus pricing and failure handling. Only the error response format is left undefined, which is a minor gap for a three-parameter read tool.

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%, so q, limit and radius are already documented with examples and ranges. The description only restates the defaults and maximums, adding no new meaning such as whether radius is measured from the postcode centroid.

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 states a specific verb and resource: send a UK postcode and get the surrounding postcodes ordered closest-first, with named fields (distance in metres, coordinates, council, ward). It is clear what the tool does, though it doesn't explicitly contrast itself with lookup_uk_postcode or uk_postcode_distance.

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?

It names use cases (local search, delivery areas, catchments) and a hard scope boundary (Great Britain only), which implies when to use it. However, it gives no explicit when-not guidance and does not route the agent to sibling alternatives such as a single-postcode lookup or distance calculation.

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