Skip to main content
Glama

Route

route
Read-onlyIdempotent

Traffic-aware routing / directions: calculate the best route between two points and return distance plus travel time computed with live traffic. Reports traffic delay so you get realistic ETAs, not free-flow estimates. Supports car, truck, pedestrian, and bicycle travel modes. Example: route({ from_lat: 40.748, from_lon: -73.985, to_lat: 40.689, to_lon: -74.044 })

Input Schema

NameRequiredDescriptionDefault
to_latYesDestination latitude
to_lonYesDestination longitude
_apiKeyNoOptional — your own TomTom API key for higher limits; omit to use the shared Pipeworx key.
from_latYesOrigin latitude
from_lonYesOrigin longitude
travel_modeNoTravel mode for traffic-aware routing (default "car")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "_apiKey": "your-tomtom-api-key",
      -    "from_lat": 40.748,
      -    "from_lon": -73.985,
      -    "to_lat": 40.689,
      -    "to_lon": -74.044
      -  },
      -  {
      -    "_apiKey": "your-tomtom-api-key",
      -    "from_lat": 51.5074,
      -    "from_lon": -0.1278,
      -    "to_lat": 51.5165,
      -    "to_lon": -0.0945,
      -    "travel_mode": "pedestrian"
      -  }
      -]New value: +[
      +  {
      +    "from_lat": 40.748,
      +    "from_lon": -73.985,
      +    "to_lat": 40.689,
      +    "to_lon": -74.044
      +  },
      +  {
      +    "from_lat": 51.5074,
      +    "from_lon": -0.1278,
      +    "to_lat": 51.5165,
      +    "to_lon": -0.0945,
      +    "travel_mode": "pedestrian"
      +  }
      +]
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-tomtom-api-key",
      +    "from_lat": 40.748,
      +    "from_lon": -73.985,
      +    "to_lat": 40.689,
      +    "to_lon": -74.044
      +  },
      +  {
      +    "_apiKey": "your-tomtom-api-key",
      +    "from_lat": 51.5074,
      +    "from_lon": -0.1278,
      +    "to_lat": 51.5165,
      +    "to_lon": -0.0945,
      +    "travel_mode": "pedestrian"
      +  }
      +]
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior: results are computed against live traffic, traffic delay is reported separately from free-flow time, and four travel modes are supported. It does not discuss rate limits or API-key/quota behavior, but that is documented in the schema.

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?

Front-loaded with the core purpose, then the differentiators (traffic delay, ETAs, travel modes), then an example. Every sentence carries information, though the inline example largely duplicates the two examples already present in the input schema, which is minor redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only routing tool with no output schema, the description does the necessary work of stating what comes back (distance, travel time, traffic delay) and what modes are accepted. Only the response's precise shape and units (metric vs imperial) are left implicit, which is a small gap.

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%, including origin/destination lat-lon labels and the travel_mode enum with its default, so the schema carries parameter meaning. The description repeats the mode list and shows an example call but adds no coordinate-format or unit conventions beyond what the schema already states. 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: 'calculate the best route between two points and return distance plus travel time computed with live traffic.' It also names the output payload (distance, travel time, traffic delay), which cleanly separates it from siblings like geocode, reverse_geocode, and search_poi.

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?

The phrase 'Traffic-aware routing / directions' plus the travel_mode list gives clear context for when this is the right call (point-to-point ETA rather than address lookup). It stops short of explicitly naming alternatives such as geocode or search_within, so there is no stated when-not-to-use rule.

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.