Skip to main content
Glama

Crypto & Web Data API for Agents

Great-circle distance and bearing between two places

world_distance
Read-only

Great-circle distance and bearing between two places. Geocodes both place names via Nominatim, then computes haversine distance (km, miles) and initial bearing. Use for travel planning or proximity checks. Price $0.005 per call (x402: USDC on Base or Solana).

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": "<from>",
      "to": "<to>"
    },
    "name": "world_distance"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesDestination place name or address
txNoAlternative to the X-Payment-Tx header
fromYesOrigin place name or address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations, it discloses the external dependency (both names are geocoded through Nominatim), the exact outputs (km, miles, initial bearing), and a per-call price with the x402 payment mechanism on Base or Solana. What it omits is failure behavior when a place name cannot be geocoded.

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?

The core operation is front-loaded in the first sentence, followed by implementation, use case, and pricing in a tight sequence. Each sentence carries distinct information, with only mild density in the pricing clause.

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 names the returned values, and it surfaces the payment requirement an agent must satisfy before calling. The main remaining gap is what happens on geocoding failure or ambiguous place names.

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 from/to are already documented as origin/destination names; the description confirms both are geocoded, adding modest meaning. The payment-related tx parameter remains thinly explained (schema only says it is an alternative to the X-Payment-Tx header) and the description does not clarify its role.

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 states a specific computation (great-circle distance and initial bearing) over a specific resource (two named places) and even names the underlying algorithms (Nominatim geocoding, haversine). This clearly separates it from world_geocode (coords only) or world_reverse without needing to open the schema.

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?

It offers two loose use cases ('travel planning or proximity checks') but no explicit when-not conditions and no named alternatives for related needs such as getting coordinates alone. An agent knows the general shape of the task it serves, yet must infer the boundaries itself.

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