Skip to main content
Glama

Agent Data Hub

Great-circle distance between two places

geo_distance
Read-onlyIdempotent

Distance between two points given as airport codes (IATA/ICAO) or 'lat,lon'. Returns kilometres, miles, nautical miles and the initial compass bearing (great-circle / haversine). Useful for flight distance, travel and logistics estimates. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

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

Input Schema

NameRequiredDescriptionDefault
toYesAirport code or 'lat,lon'
fromYesAirport code or 'lat,lon'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), yet the description adds genuinely new behavioral facts: the unit set returned (km, miles, nautical miles, initial bearing) and, importantly, a pricing/rate-limit model ($0.001 per call via x402 with 10 free calls/day). That cost disclosure is material for an agent deciding whether and how often to call. It stops short of stating input-validation failure behavior for malformed codes or coordinates.

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?

Three tight sentences, front-loaded with the core operation, then outputs, then use cases, then cost. Nothing is redundant with the title or schema and no sentence is padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 correctly carries the return-value burden by enumerating the distance units and the bearing. Inputs, use context, and billing are all covered, leaving nothing essential an agent needs before invoking it.

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 coverage is 100% so the baseline would be 3, but the description adds specificity the schema lacks by naming IATA/ICAO as accepted airport-code formats alongside 'lat,lon'. It still doesn't say how ambiguous codes or out-of-range coordinates are handled, so it isn't a full 5.

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?

States a specific computation (great-circle/haversine distance) over a specific input form (airport codes IATA/ICAO or 'lat,lon') and names the return values. It does not explicitly contrast itself with any sibling, but the purpose is unambiguous from the first clause.

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?

'Useful for flight distance, travel and logistics estimates' gives implied usage contexts but no explicit when-to-use/when-not rules and no named alternative. An agent gets a general sense of fit but no routing logic.

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