Skip to main content
Glama

Duo Data Utilities: IBAN, ISIN, VAT & Tax ID, Barcode, Timezone, Geo APIs

Distance calculator: geodesic distance, bearing and destination point on WGS-84

geo_distance
Read-onlyIdempotent

Distance calculator: distance and direction between WGS-84 coordinates: geodesic distance by Vincenty with a haversine fallback, initial and final bearing, the midpoint, and the destination point reached from a start point on a given bearing and distance. Also computes the cumulative length of a supplied coordinate path. Results in metres, kilometres, nautical miles and miles. Price: $0.05 per successful call, paid over x402 (USDC on Base).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opNodistance (default), destination, midpoint or path. Accepted: distance, destination, midpoint, path.
lat1NoStart latitude. Accepted: a number between -90 and 90.
lat2NoEnd latitude. Accepted: a number between -90 and 90.
lon1NoStart longitude. Accepted: a number between -180 and 180.
lon2NoEnd longitude. Accepted: a number between -180 and 180.
pathNoComma-separated lat,lon pairs for op=path, at most 200 points. Accepted: comma-separated lat,lon pairs, at most 200 points.
methodNovincenty (default, WGS-84) or haversine. Accepted: vincenty, haversine.
bearingNoInitial bearing in degrees for op=destination. Accepted: number 0-360.
distance_mNoDistance in metres for op=destination, 0 to 1e9 (about 25 Earth circumferences); larger values are 400 INVALID_PARAM. Accepted: a number between 0 and 1e9 (metres).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / distance_m / description
      Previous value: -"Distance in metres for op=destination. Accepted: a number >= 0."New value: +"Distance in metres for op=destination, 0 to 1e9 (about 25 Earth circumferences); larger values are 400 INVALID_PARAM. Accepted: a number between 0 and 1e9 (metres)."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful context beyond that: the Vincenty-with-haversine-fallback algorithm, supported output units, and a concrete pricing/auth model ($0.05 per successful call via x402 USDC on Base).

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 operation and resource, then operations, then results and pricing. Dense but every clause carries information; the pricing sentence is non-obvious and worth its space, though the first sentence is long enough to require re-reading.

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?

No output schema exists, so the description must explain returns, and it does specify the result units and the quantities produced (distance, bearings, midpoint, destination, cumulative path length). The only gap is that it never clarifies the zero-required-parameter design or how invalid combinations of op and inputs are rejected.

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 the baseline is 3; the description earns above that by tying parameters to outcomes (e.g., 'destination point reached from a start point on a given bearing and distance') and stating that results come back in metres, kilometres, nautical miles and miles. It adds cohesive meaning without duplicating schema syntax.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('distance and direction between WGS-84 coordinates') and enumerates the five operations (distance, destination, midpoint, path) plus the algorithm (Vincenty with haversine fallback). This clearly differentiates it from siblings like point_in_polygon and geohash_encode_decode.

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 implied by the operation list and the schema's op enum, so an agent can infer when each mode applies. However, there is no explicit when-to-use guidance, no mention of prerequisites, and no routing to alternative sibling tools for related geo tasks.

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.