Skip to main content
Glama

Duo Data Utilities

Geodesic distance, initial bearing and destination point on WGS-84

geo_distance
Read-onlyIdempotent

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. Accepted: a number >= 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld=false, but the description adds real behavioral context beyond them: the Vincenty algorithm with haversine fallback, the units returned, and notably the $0.05 per-call x402/USDC payment requirement, which an agent must know before invoking.

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?

Two dense sentences that front-load the core capability and append units and pricing. Efficient with no filler, though the first sentence packs several capabilities together.

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 no output schema, the description usefully states the units returned (metres, km, nm, miles) and enumerates all operations and the destination inputs. It stops short of mapping which params each op requires, but the 100%-covered schema fills that gap.

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%, so the schema already documents all nine parameters, including enums for op and method. The description reinforces op semantics and mentions bearing/distance for destination, but adds no syntax or meaning beyond the schema, so the baseline applies.

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 precise verbs and resources: geodesic distance, initial/final bearing, midpoint, destination point, and cumulative path length. It is clearly a coordinate-math tool, distinguishable from geo_geohash, geo_pluscode, and geo_polygon siblings.

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 description enumerates the four operations, which implicitly signals usage, but it gives no explicit when-to-use or when-not-to-use guidance and names no alternatives. Selection among siblings is left to inference.

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