Skip to main content
Glama

Nearby postal codes

find_nearby_postal_codes
Read-onlyIdempotent

The postal codes nearest to a point (GeoNames), nearest first, with distance in km. 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends Authorization: Bearer <key>.

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": {
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "find_nearby_postal_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude in decimal degrees, from -90 to 90.
lonYesLongitude in decimal degrees, from -180 to 180.
limitNoDefault 10
radiusNoKilometres, default 50

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / lat / description
      Added value: +"Latitude in decimal degrees, from -90 to 90."
    • addedInput schema / properties / lon / description
      Added value: +"Longitude in decimal degrees, from -180 to 180."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and closed-world behavior, and the description adds real value on top: result ordering, distance units, the auth mechanism (Bearer key), and a documented failure mode (503 NOT_READY on datasets predating the feature). Missing only result cap/pagination behavior, which keeps it below 5.

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?

Three tight sentences, each carrying distinct information (what, failure mode, auth), with the core purpose front-loaded. Slightly telegraphic in places but no filler.

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 4-parameter read tool with no output schema, the description covers purpose, ordering, units, auth and one error condition. The main remaining gap is the shape/cap of the result set (does limit cap results inside radius?), but overall it is sufficient to invoke correctly.

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%, including units and defaults for limit and radius, so the schema does the heavy lifting and a 3 baseline applies. The description adds ordering semantics and the unit of the returned distance, but does not clarify how radius interacts with limit or what happens when radius is omitted beyond the schema default.

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 ('postal codes nearest to a point'), plus the data source (GeoNames) and output ordering ('nearest first, with distance in km'). It implicitly separates itself from lookup_postal_code by being point-based rather than code-based, but never names or contrasts 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'nearest to a point' implies the use case (reverse geocoding from coordinates), but there is no explicit when-to-use or when-not-to-use guidance. Nothing tells the agent whether to prefer this over find_nearby_places or find_places_at_point, so the agent must infer from 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