Skip to main content
Glama

mapsDirections

Get route summaries and turn-by-turn directions between addresses or coordinates, with travel modes for driving, walking, cycling, or transit.

Instructions

Get a route summary and turn-by-turn instructions between addresses or coordinates.

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": {
      "origin": "<origin>",
      "destination": "<destination>",
      "travelMode": "<travelMode>"
    },
    "name": "mapsDirections"
  }
}

Input Schema

NameRequiredDescriptionDefault
originYesRoute start: address string or {latitude, longitude}
travelModeYesTravel mode for the route
destinationYesRoute end: address string or {latitude, longitude}
departureTimeNoRFC 3339 departure time. Omit to depart now. Must be in the future unless travelMode is TRANSIT (the Routes API rejects past times for other modes).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden unaided. It never discloses that travelMode is mandatory and constrained to DRIVE/WALK/BICYCLE/TRANSIT, that departureTime in the past is rejected for non-transit modes, or anything about failure behavior, rate limits, or result freshness—all material for an agent deciding how to call this.

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?

A single front-loaded sentence that names the resource and the inputs without filler. Nothing extraneous is present.

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 four-parameter tool with no annotations and no output schema, the description omits what the 'route summary' actually contains (distance, duration, waypoint order) and any behavioral caveats around mode and departure time. The rich schema compensates for parameter meaning, but behavioral completeness is thin.

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 explains origin/destination accepting either an address string or coordinates, the travelMode enum, and the RFC 3339 future-time constraint. The phrase 'between addresses or coordinates' merely echoes that, adding no format or edge-case detail.

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 ('Get') and resource ('route summary and turn-by-turn instructions') with input scope ('between addresses or coordinates'). It is distinguishable from the geocode/search siblings, which resolve places or find nearby POIs rather than compute a route, though the description does not explicitly contrast with them.

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?

Usage is implied by the purpose: call it when you have an origin and destination and want directions. There is no explicit when-to-use/when-not guidance, no mention of pairing with mapsGeocode when only place names are known, and no mention of which travel modes are supported or how TRANSIT differs.

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