Skip to main content
Glama

Clear Postcode

Look up UK postcodes

lookup_postcode
Read-onlyIdempotent

Everything about one UK postcode, or up to 50 at once: whether it is live or terminated, latitude and longitude, and the council, ward, parish, constituency, county, region, police force, NHS board, rural-urban class and deprivation decile it sits in. Use for any question about where a postcode is or which area it belongs to.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lookup_postcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoOptional comma-separated fields to keep, e.g. "location,local_authority".
postcodeNoA UK postcode, e.g. "SW1A 1AA" (any case, space optional).
postcodesNoUp to 50 postcodes instead of one.

Output Schema

NameRequiredDescriptionDefault

No arguments

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 closed-world behavior, so the safety profile is covered. The description adds useful behavioral context (batch up to 50, reports terminated as well as live postcodes), but an output schema exists, so the field enumeration partly duplicates structured data.

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 capability and batch limit, followed by a compact field list and a usage sentence. No wasted phrasing, though the long field enumeration is slightly dense.

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 an output schema and rich read-only annotations, the description covers the essential capability, batch scope, and usage context an agent needs to invoke it. Remaining gaps (sibling routing, the fields filter) are minor given the full schema coverage.

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 coverage is 100%, so the schema already documents all three parameters including the fields filter and case/space insensitivity. The description reinforces the single-vs-batch distinction (up to 50) matching postcode/postcodes, but adds little beyond the schema, so 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?

States a specific verb and resource ('Everything about one UK postcode, or up to 50 at once') and enumerates returned data (liveness, coordinates, admin areas). It is clearly a comprehensive lookup, distinguishable from validate_postcode or nearest_postcodes by the breadth of fields, though it does not explicitly name a sibling to contrast against.

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?

Gives explicit usage context: 'Use for any question about where a postcode is or which area it belongs to.' This is clear when-to-use guidance, but offers no when-not guidance or named alternatives (e.g., validate_postcode for validity-only checks), leaving some inference to the agent.

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