Skip to main content
Glama

UK Postcodes Crime Risk MCP

Lookup UK postcode metadata

lookup_uk_postcode
Read-onlyIdempotent

Look up a UK postcode via Postcodes.io to retrieve latitude, longitude, country, region, admin district, parliamentary constituency, LSOA, and MSOA.

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": {
      "postcode": "<postcode>"
    },
    "name": "lookup_uk_postcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
postcodeYesUK postcode (e.g. "SW1A 1AA", "EC2R 8AH", "M1 1AE").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world. The description adds the meaningful fact that data comes from the external Postcodes.io service, which explains the open-world hint. It says nothing about rate limits, behavior for malformed-but-length-valid postcodes, or error responses for unknown postcodes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler. The field enumeration is doing real work here because there is no output schema, so every clause earns its place.

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 correctly compensates by listing the returned attributes, which is the key missing structured information for this simple one-parameter tool. The remaining gap is failure behavior (invalid or non-existent postcode) and whether all listed fields are always present.

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?

Only one parameter and schema description coverage is 100%, with the schema itself supplying format examples ("SW1A 1AA", "EC2R 8AH") and 5–10 char bounds. The description adds only 'UK postcode', which is baseline when the schema already does the work.

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+resource ('Look up a UK postcode') and enumerates exactly what is returned (latitude, longitude, country, region, admin district, constituency, LSOA, MSOA). This makes the forward-geocoding nature clear enough to separate it in practice from reverse_geocode_uk_postcode, though it never names or explicitly contrasts with that sibling.

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?

The use case is implied by the enumerated return fields (you call this when you need location/demographic metadata for a known postcode), but there is no explicit 'use this when…' or 'use validate_uk_postcode instead if…' statement. An agent must infer the boundary from sibling names alone.

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.