Skip to main content
Glama
zippopotam-global-postal-mcp

zippopotam-global-postal-mcp

Calculate postal distance

calculate_postal_distance
Read-onlyIdempotent

Calculate the great-circle distance between two postal codes in different countries, returning results in kilometers and miles for route planning, delivery estimates, or location analysis.

Instructions

Compute great-circle Haversine distance in kilometers and miles between two postal codes across any supported countries.

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": {
      "from_country_code": "<from_country_code>",
      "from_postal_code": "<from_postal_code>",
      "to_country_code": "<to_country_code>",
      "to_postal_code": "<to_postal_code>"
    },
    "name": "calculate_postal_distance"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_postal_codeYesDestination postal code (e.g. 90210).
to_country_codeYesDestination 2-letter ISO country code (e.g. US).
from_postal_codeYesOrigin postal code (e.g. 10001).
from_country_codeYesOrigin 2-letter ISO country code (e.g. US).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that by naming the algorithm (great-circle Haversine) and the units of the result, but it says nothing about failure behavior for unresolvable postal codes or unsupported countries.

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 verb, algorithm, units, and inputs all appear before any trailing qualifier.

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?

With no output schema, the description does well to state that the result is in kilometers and miles. However, it omits error conditions for invalid or unsupported postal codes and country codes, and gives no hint that a supported-country list exists as a sibling — both of which matter for a 4-required-parameter, open-world tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so per-parameter meaning is already documented with examples. The description only adds the cross-country framing and the units of the computed result, which is modest but appropriate added context.

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 gives a specific verb and resource — 'Compute great-circle Haversine distance' — plus the units (kilometers and miles) and the input pair (two postal codes). It does not explicitly distinguish itself from the sibling lookup tools, but the resource it operates on is clearly different from a lookup or list operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says to first resolve codes via lookup_postal_code, to check list_supported_postal_countries when a country is unknown, or when a batch call would be preferable. The phrase 'any supported countries' hints at a constraint but never states what to do when a country is not supported.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.