Skip to main content
Glama

geo distance

geo_distance
Read-only

Great-circle distance between coordinates in km, miles and nautical miles, initial bearing and compass direction, midpoint, bounding box and rough travel times, or the total length of a multi-point path. Costs $0.002 USDC per call (x402).

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
toNo
fromNolat,lon
pointsNolat,lon|lat,lon|... for a path

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered. The description adds a genuinely useful non-annotation trait — the $0.002 USDC per call x402 cost — but omits other behavioral facts such as coordinate ordering, unit defaults, and error behavior for malformed coordinates.

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 front-loaded sentence that leads with the primary computation before enumerating extras, with the cost disclosure appended at the end. It is dense and list-like, but every clause maps to a real capability.

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?

There is no output schema, so the description carries the burden of describing returns — and it does so thoroughly by naming every output quantity. The gaps are the input-mode selection (from/to vs points) and coordinate convention rather than missing return information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 67% and 'to' has no description at all. The description mentions 'coordinates' and 'multi-point path' which loosely hints at from/to versus points, but adds no format, ordering, or required/optional semantics beyond what the schema already states.

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 computation (great-circle distance between coordinates) and enumerates the exact derived quantities returned: km/miles/nautical miles, initial bearing, compass direction, midpoint, bounding box, travel times, and multi-point path length. This clearly separates it from siblings like route (turn-by-turn directions) or isochrone (reachability polygons).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance, and no routing to alternatives such as route or isochrone for driving directions or travel-time reachability. It also never says when to supply from/to versus points, even though those are mutually exclusive input modes.

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