Skip to main content
Glama

UK Property & Location Data

lookup_uk_postcode

Pay-per-call UK (Great Britain) postcode lookup for AI agents. Send a postcode such as SW1A 2AA and get latitude/longitude, council (local authority), county, region, country, ward, parish, parliamentary constituency and LSOA/MSOA statistical area codes, as clean JSON. Built on official ONS / Ordnance Survey open data, with the required licence attribution included. Invalid or unknown postcodes return an error and are never charged. Great Britain only (no Northern Ireland). Price: $0.005 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": "lookup_uk_postcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesUK (Great Britain) postcode, e.g. SW1A 2AA. Example: SW1A 2AA

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses pay-per-call pricing ($0.005 USDC via x402), that invalid/unknown postcodes error out and are never charged, the ONS/Ordnance Survey data provenance with licence attribution, and the Great Britain/Northern Ireland boundary. It stops short of stating rate limits, latency, or pagination/return envelope details beyond 'clean JSON'.

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 purpose, then returns, then pricing and error policy — good ordering and no repetition. The phrase 'for AI agents' is pure filler, and the pricing/attribution sentences could be tightened, but overall it is dense and readable.

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 read tool with no output schema and no annotations, the description is nearly complete: it effectively serves as an output-field listing, and covers cost, error behavior, and geographic scope. The main omissions are the response envelope shape (flat object vs nested) and any rate/throughput expectations for a paid endpoint.

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?

There is only one parameter and schema coverage is 100%, so the schema already documents 'q' fully with an example. The description adds only the geographic constraint (Great Britain, no Northern Ireland) and repeats the example postcode; per the baseline, 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource (postcode lookup) and enumerates the exact return fields (lat/long, council, county, region, ward, LSOA/MSOA, etc.), so an agent knows precisely what it gets back. It does not explicitly differentiate itself from siblings like uk_postcode_batch or uk_postcode_distance, leaving the single-vs-multiple distinction to inference from the 'Send a postcode such as SW1A 2AA' example.

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 the example postcode and the inputs are constrained to Great Britain only (no Northern Ireland), which is useful eligibility guidance. However, there is no explicit when-to-use/when-not framing and no named alternative for batch, distance, or nearest-postcode needs, so the agent must infer routing from sibling names.

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