Skip to main content
Glama

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

uk_postcode_distance

Pay-per-call distance between two UK (Great Britain) postcodes for AI agents. Send from and to postcodes (e.g. SW1A 2AA and M1 1AE) and get the straight-line distance in miles and kilometres, the compass direction and bearing, plus the council, region and coordinates of both ends, as clean JSON. Saves two lookups and the maths. 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 asks how far apart two UK postcodes are. Not for: driving times or routes. 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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "uk_postcode_distance"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination UK postcode, e.g. SW1A 2AA. Example: SW1A 2AA
fromYesStarting UK postcode, e.g. L35 1QA. Example: L35 1QA

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?

With no annotations, the description carries the burden and does well: it discloses pricing ($0.01 USDC per call via x402), failure semantics (invalid/unknown postcodes return an error and are never charged), and the geographic restriction. What's missing is any statement about the payment/auth flow an agent must satisfy before calling, and there is no note on latency or rate limits.

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 scope, then output, then caveats, then routing guidance, then price – a sensible order. Slightly padded by '(Great Britain)' duplicated against the later 'Great Britain only' and the marketing aside 'Saves two lookups and the maths'.

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 two-parameter, single-shot calculation tool with no output schema, the description covers return contents, error behavior, billing, and geographic limits. Nothing an agent needs in order to invoke it correctly is missing.

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?

Both parameters are fully documented in the schema (100% coverage) with per-parameter examples, so the description's added postcode examples (SW1A 2AA, M1 1AE) are largely confirmatory. It adds the conceptual framing that 'from' is the starting point and 'to' the destination, but no new syntax or validation rules beyond the schema.

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 ('distance between two UK (Great Britain) postcodes') and enumerates exactly what comes back: distance in miles/km, compass direction and bearing, council, region, coordinates. It also explicitly distinguishes itself from route/driving tools and, implicitly, from the point-lookup siblings like lookup_uk_postcode.

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 trigger ('Use this when the user asks how far apart two UK postcodes are') and an explicit exclusion ('Not for: driving times or routes'), plus a geographic scope restriction ('Great Britain only'). An agent has everything needed to decide to call this rather than a sibling.

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