Skip to main content
Glama

Multi-stop route

route
Read-onlyIdempotent

Road route through 2 to 25 stops in the given order, each a latitude/longitude point or an address (looked up first): distance and time of every leg and the total, optionally with the route shape. Costs $0.001 per leg (N stops = N-1 legs), plus $0.001 for each different address; nothing is charged if a stop is not found or routing fails.

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": {
      "points": "<points>"
    },
    "name": "route"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsNoDistance units: miles or kilometers.mi
pointsYesStops in visiting order: points {latitude, longitude} or addresses as text.
vehicleNoTravel mode. direct gives the straight-line (great-circle) distance with no travel time.auto
geometryNoRoute shape to include: none, geojson (LineString of [lon, lat]) or polyline (Google encoded, precision 5).none
priorityNoFastest or shortest road route.fast

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / properties / points / description
      Previous value: -"Stops in visiting order."New value: +"Stops in visiting order: points {latitude, longitude} or addresses as text."
    • removedInput schema / properties / points / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / points / items / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "latitude": {
      +        "description": "Latitude in decimal degrees (WGS84).",
      +        "maximum": 90,
      +        "minimum": -90,
      +        "type": "number"
      +      },
      +      "longitude": {
      +        "description": "Longitude in decimal degrees (WGS84).",
      +        "maximum": 180,
      +        "minimum": -180,
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "latitude",
      +      "longitude"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "An address, e.g. \"350 5th Avenue, New York, NY 10118, USA\".",
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +]
    • addedInput schema / properties / points / items / description
      Added value: +"A point {latitude, longitude}, or an address as text."
    • removedInput schema / properties / points / items / properties
      Removed value: -{
      -  "latitude": {
      -    "description": "Latitude in decimal degrees (WGS84).",
      -    "maximum": 90,
      -    "minimum": -90,
      -    "type": "number"
      -  },
      -  "longitude": {
      -    "description": "Longitude in decimal degrees (WGS84).",
      -    "maximum": 180,
      -    "minimum": -180,
      -    "type": "number"
      -  }
      -}
    • removedInput schema / properties / points / items / required
      Removed value: -[
      -  "latitude",
      -  "longitude"
      -]
    • removedInput schema / properties / points / items / type
      Removed value: -"object"
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations, which only declare read-only/idempotent/non-destructive/open-world. It discloses the geocoding pre-step for address stops, the pricing model ($0.001 per leg plus per distinct address), and that nothing is charged on lookup failure or routing failure — behavior an agent cannot get from any structured field.

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 packs the capability, the input shape, the output content, and the cost model with no filler. The dense nested parentheticals make it slightly harder to parse on first read, but every clause carries information.

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?

There is no output schema, and the description fills that gap by naming the returned data (per-leg and total distance/time, optional route shape). Combined with failure handling and pricing, an agent has everything needed to invoke it correctly and predict the cost.

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?

Schema description coverage is 100%, so units, vehicle, geometry, priority, and point formats are already documented. The description adds only marginal meaning: stop ordering semantics and the fact addresses are resolved before routing, plus that geometry is optional output rather than input behavior.

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 verb+resource: a road route over an ordered list of 2-25 stops returning per-leg and total distance/time, optionally with geometry. The multi-stop, ordered nature implicitly separates it from single-pair tools like distance, but no sibling is named explicitly, so differentiation is left partly to inference.

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?

The description establishes practical preconditions (2-25 stops, visiting order, address strings are geocoded first) and a cost model that helps an agent decide whether a call is worth making. However, it never states when to prefer this over distance or geocode, nor any when-not condition beyond the stop-count bounds.

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