Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

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).

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

Input 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. Changed7 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / bearing / type
      Previous value: -"string"New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / distance_m / type
      Previous value: -"string"New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / lat1 / type
      Previous value: -"string"New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / lat2 / type
      Previous value: -"string"New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / lon1 / type
      Previous value: -"string"New value: +[
      +  "number",
      +  "string"
      +]
    • changedInput schema / properties / lon2 / type
      Previous value: -"string"New value: +[
      +  "number",
      +  "string"
      +]
  2. 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)."
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so safety and determinism are covered. The description adds genuinely new behavioral context: the Vincenty-with-haversine-fallback algorithm, the output unit set, and — importantly — a $0.05 per-call price paid over x402/USDC, which is a cost an agent must know before invoking. It does not, however, describe error behavior or the response payload shape.

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?

A single dense sentence plus a units sentence and a pricing sentence; the operation set is front-loaded. It is slightly overpacked — the algorithm, bearings, midpoint, destination, path, units, and payment all land in one sentence — but no sentence is wasted.

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?

For a 9-parameter, four-mode tool with no output schema, the description covers inputs conceptually and discloses cost, but leaves return-value structure and per-op required-parameter combinations unexplained. An agent still has to infer which parameters are mandatory for each op.

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%, with every parameter documented including ranges, defaults, enums, and even the 400 INVALID_PARAM condition for oversized distance_m. The description adds only the conceptual framing (start point, bearing, distance for destination; path as a coordinate sequence) and no syntax detail beyond the schema, so the baseline 3 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?

The description names a specific verb+resource set: geodesic distance, bearings, midpoint, destination point, and cumulative path length on WGS-84. It also distinguishes the modes (op=distance/destination/midpoint/path) so an agent knows exactly what family of computation this tool covers, unlike siblings such as point_in_polygon or 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?

The description implies usage by enumerating operations and naming the algorithm and units, but it never says when to choose this tool over a sibling or when a given op is inappropriate. There are no explicit exclusions or preconditions (e.g., 'use path only for ordered coordinate sequences').

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.