Skip to main content
Glama

Get a driving, truck, cycling or walking route in the US

directions
Read-onlyIdempotent

Route between 2 to 25 points in the United States, in the order given, by car, truck, bike or foot (OpenStreetMap roads, Valhalla engine). Returns distance in metres, duration in seconds and the route line as an encoded polyline (precision 6); steps=true adds turn-by-turn instructions. Travel times are free-flow estimates with no live traffic: never present them as a live ETA. Geocode addresses first (geocode tool). Counts 1 address lookup against the monthly cap.

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

Input Schema

NameRequiredDescriptionDefault
avoidNoKinds of road to avoid where possible
stepsNoInclude turn-by-turn instructions
pointsYesStops in travel order, each [lat, lon]
profileNoHow to travel: car, truck (keeps to roads trucks may use), bike or footcar
alternativesNoExtra alternative routes (2 points only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the data source (OpenStreetMap roads, Valhalla), that times are free-flow estimates with no live traffic, the exact output encoding and precision (polyline, precision 6, metres, seconds), and that the call consumes quota against a monthly cap. These are operationally significant facts an agent could not infer from readOnlyHint/idempotentHint.

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

Conciseness5/5

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

Four tight sentences front-loaded with the core operation, then output contract, then accuracy caveat, then prerequisite. Nothing is repetitive and every clause carries distinct 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?

No output schema exists, and the description compensates by specifying the return shape (metres, seconds, encoded polyline precision 6) and what steps=true adds. With the geocoding prerequisite, quota note and accuracy caveat, an agent has everything needed to call and interpret results correctly.

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 the schema already documents points, profile, avoid, steps and alternatives. The description restates the point count and the steps=true effect and adds polyline precision, which is return-value detail rather than parameter meaning; baseline 3 applies.

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 verb and resource ('Route between 2 to 25 points in the United States, in the order given'), enumerates the four travel profiles, names the underlying road data and engine, and constrains geography. An agent can tell this produces route geometry and distances, distinct from a matrix or geocoding tool, without opening the schema.

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

Usage Guidelines4/5

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

Gives an explicit prerequisite workflow ('Geocode addresses first (geocode tool)') and an explicit prohibition on how to present results ('never present them as a live ETA'). It does not, however, say when to prefer this over distance_matrix or isochrone for non-geometry needs, so sibling routing guidance is only partial.

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.