Skip to main content
Glama

x402_georesolve_get_v1_distance

Calculates route distance and travel duration between two coordinate pairs for travel planning, logistics, or proximity analysis.

Instructions

georesolve — Geocoding (address→lat/lon) and routing distance/duration (Nominatim + OSRM) [GET /v1/distance] $0.005 USDC on eip155:8453. Example: /v1/distance?from=52.52,13.41&to=48.13,16.18

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

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the load, and it does disclose genuinely useful traits: HTTP method, upstream providers (Nominatim + OSRM), and a per-call price of $0.005 USDC on eip155:8453. It stops short of what matters most for a paid call — what happens on failure, whether the charge is incurred on error, and any rate limits — leaving the paid-retry semantics to the schema's restart/operationId fields.

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 dense line that front-loads the resource, then endpoint, price, and a call example. Every element is load-bearing — provider, cost, and query shape are all things the agent needs — though the geocoding mention at the front could be trimmed since that belongs to the sibling.

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 paid, unannotated GET with no output schema, the definition covers cost, upstream, endpoint, and query shape well, but says nothing about the response payload (distance/duration fields, units) or failure/refund behavior. Enough to make the call, not enough to consume or recover from it confidently.

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?

The schema only defines a generic query object with free-form properties, so it conveys nothing about the actual parameter names. The inline example surfaces the real keys (from, to) and their coordinate format (52.52,13.41), which is information an agent cannot get from the schema alone.

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 names a concrete verb/resource pair — routing distance/duration via OSRM — and pins it to the GET /v1/distance endpoint, which distinguishes it from the sibling geocode tool that is explicitly labeled 'address→lat/lon'. The mixed scope (it also mentions geocoding in the parenthetical) slightly blurs the boundary, but the bracket endpoint tag resolves the ambiguity.

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?

Use is implied by the example query with from/to coordinates, but there is no explicit statement of when to choose this over x402_georesolve_get_v1_geocode, nor any prerequisite or exclusion. An agent can infer the case from the endpoint path, but the definition does not spell it out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools