Skip to main content
Glama

Postcodes Lookup Postcode

postcodes_lookup_postcode
Read-onlyIdempotent

Get geographic details for a UK postcode (e.g., 'SW1A 1AA'). Returns coordinates, region, district, ward, and constituency.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "postcode": "SW1A 1AA"
    },
    "name": "postcodes_lookup_postcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
postcodeYesUK postcode to look up (e.g. "SW1A 1AA" or "SW1A1AA").

Output Schema

NameRequiredDescriptionDefault
latNoLatitude coordinate
lonNoLongitude coordinate
codesYesCodes mapping object
incodeYesIncode part of postcode
regionNoRegion name
countryYesCountry name
outcodeYesOutcode part of postcode
eastingsNoEastings grid reference
postcodeYesThe UK postcode
northingsNoNorthings grid reference
admin_wardNoAdministrative ward
admin_districtNoAdministrative district
parliamentary_constituencyNoParliamentary constituency

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered without the description. The description adds that lookups are UK-scoped and shows accepted postcode formatting, but says nothing about coverage gaps, error behavior for unknown postcodes, 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.

Conciseness5/5

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

Two sentences, both front-loaded and purposeful: what it does first, what it returns second. No filler, no redundancy, appropriate length for a one-parameter lookup.

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 present, the return values need not be enumerated, and the description restates them anyway as a helpful preview. For a single-parameter, well-annotated readonly lookup this is essentially complete, with only edge-case behavior (invalid or non-existent postcodes) left unmentioned.

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 a single required parameter with 100% schema description coverage and inline examples, so the schema does all the work. The description's example postcode and field list add no semantics about the parameter beyond what the schema already states.

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 uses a specific verb and resource ('Get geographic details for a UK postcode') and names the concrete fields returned, so the agent knows exactly what this does. It does not differentiate itself from siblings like validate_postcode or nearest_postcodes, which are close enough in surface vocabulary to invite confusion.

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 only implied: the agent can infer you call this when you already have a specific postcode and want its geography. There is no explicit statement of when this is preferable to validating a postcode or finding nearby ones, and no prerequisites or exclusion conditions are given.

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.