Skip to main content
Glama

Clear Postcode

Postcodes near a place or point

nearest_postcodes
Read-onlyIdempotent

Live UK postcodes nearest a postcode or a latitude/longitude, closest first, with distances in metres. Use it to find the postcode for coordinates (reverse geocoding) or what is near an address.

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": "nearest_postcodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 5.
latitudeNo
postcodeNo
radius_mNoDefault 500.
longitudeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/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, so safety is covered; the description usefully adds live-data freshness, ordering, and metre-based distances. It omits important behavior: all five parameters are optional, so it never says whether postcode or coordinates are required, or what happens if none are supplied.

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 dense sentences with the core capability front-loaded and the usage case second; nothing is padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described. However, with zero required parameters and no explanation of the postcode-versus-coordinates contract, an agent cannot tell from the definition alone how to correctly form a minimal valid call.

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 only 40%, so the description carries weight — it explains that postcode/latitude/longitude drive the proximity search and that distances are in metres (relevant to radius_m). It says nothing about the optional-only parameter set or the interaction between postcode and coordinates, and limit/radius_m defaults live only in the schema.

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 names a specific resource (live UK postcodes) and operation (nearest to a postcode or lat/long), plus result ordering ('closest first') and distance units. It implicitly separates itself from lookup_postcode and postcode_distance by emphasizing proximity search, though it never names a sibling explicitly.

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?

It gives concrete use cases: reverse geocoding coordinates to a postcode, and discovering what is near an address. There are no exclusions or named alternatives telling the agent when to prefer lookup_postcode or postcode_distance instead.

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