Skip to main content
Glama

ScorpTech x402 Tools

Geo Distance

geo_distance
Read-onlyIdempotent

Geodesic distance and bearings on the WGS-84 ellipsoid: Vincenty (millimetre accuracy) plus great-circle haversine, initial / final bearing with 16-point compass, midpoint, multi-point path length with per-segment legs, and the destination point from a start, bearing and distance. Units km, m, mi, nautical miles or feet. Offline, deterministic. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/geo-distance

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
toNoEnd "lat,lon"
fromNoStart "lat,lon" (decimal degrees)
unitsNokm
pointsNoPath: list of "lat,lon" (total length + legs)
bearingNoWith from + distance: destination mode
distanceNoDistance to travel in the chosen units (destination mode)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Adds genuinely useful context beyond the annotations: millimetre accuracy for Vincenty, offline/deterministic behaviour, affordability of multiple calls, and explicit cost ($0.001 USDC per successful call via x402 on Solana) plus an HTTPS fallback endpoint. Minor tension: 'Offline, deterministic' sits awkwardly against openWorldHint=true, though that hint likely reflects the paid remote service rather than data lookup.

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?

Operations are front-loaded in one dense but well-ordered clause, followed by units, then a separated pricing/endpoint line. It is long and somewhat run-on, but every clause (accuracy, units, payment, HTTPS alias) carries information an agent needs.

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?

With no output schema, the description partly compensates by naming outputs (16-point compass bearing, per-segment legs, midpoint). However, with zero required parameters it never explains the mutually exclusive input combinations or the failure mode when no mode inputs are given, leaving the most consequential ambiguity unaddressed.

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 83%, so the schema already documents most params; the description adds the units vocabulary and clarifies that 'points' yields total length plus per-segment legs and that 'bearing'+'distance' trigger destination mode. It doesn't explain the 'lat,lon' string format limits or how overlapping inputs are resolved, so slightly above baseline only.

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 opens with a precise verb+resource ('Geodesic distance and bearings on the WGS-84 ellipsoid') and enumerates the distinct computations: Vincenty/haversine distance, initial/final bearing, midpoint, multi-point path length with legs, and destination-from-bearing. An agent can immediately tell this apart from siblings like coord_convert, geo_polygon, or cosine_law.

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?

Mode selection is only implied by pairing operations with inputs ('the destination point from a start, bearing and distance'; 'Path: list of lat,lon'). There is no explicit when-to-use guidance, no statement of what happens if several or no mode inputs are supplied (all 6 params are optional), and no comparison to nearby tools such as coord_convert or geo_polygon.

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