Skip to main content
Glama

FMF Tools Dev Utils

geo_distance

Geodesic distance, bearing, midpoint + geohash ($0.001 per call, paid via MPP on Tempo). WGS-84 ellipsoidal (Vincenty) and great-circle distance in m/km/mi/nmi, initial and final bearing, midpoint, from a point to up to 100 others (sorted nearest-first). Also encodes/decodes geohashes (pass geohash or point + precision). Duo Data charges $0.05. HTTP POST https://mpp-utils.fmf-x402.workers.dev/geo/distance. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

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{lat, lon}
fromNo{lat, lon}
pointsNoup to 100 destinations
geohashNo
precisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose a lot beyond schema: per-call pricing, the MPP payment authorization requirement, the upstream HTTP route, and that the wrapper does not settle payment itself. However, return-value behavior is only partially described ('sorted nearest-first') and it never says what the response looks like, what errors occur on unpaid calls, or how units are selected.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the capability, which is good, but then bundles pricing, payment plumbing, an HTTP URL, and a third-party charge notice into the same block, some of which is operational clutter for an MCP caller. The multi-purpose sentence structure makes it dense to parse but not padded with filler.

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 5-parameter tool with nested objects, no annotations and no output schema, the description should more fully explain the result shape and unit selection. Payment/auth requirements and the multi-point sorting behavior are covered, but the missing unit parameter and unexplained output leave real gaps.

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?

At 60% schema coverage, the description adds some meaning: 'to'/'from' as points, 'points' as up to 100 destinations returned nearest-first, and geohash vs point+precision as alternative inputs. But it introduces distance units (m/km/mi/nmi) that have no corresponding parameter in the schema, leaving the reader unsure how units are chosen, and 'precision' semantics are not clarified.

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?

The description opens with concrete verbs and resources: geodesic distance, bearing, midpoint, and geohash encode/decode, including the Vincenty/WGS-84 and great-circle variants. An agent can tell this is a geo-math computation tool, distinct from the chain/code/id/time/text siblings, though the doubled scope (distance calculation + geohash coding) muddies the single-purpose framing slightly.

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?

Usage modes are implied rather than stated: 'from a point to up to 100 others' and 'pass geohash or point + precision' hint at the two invocation shapes. There is no explicit when-to-use/when-not or alternate-tool routing, and no guidance on which variant (Vincenty vs great-circle) or unit to pick.

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