Skip to main content
Glama

Route (capped)

maps_route

Calculate travel time and distance between two addresses or coordinates for driving, walking, cycling, or transit, with Spend Brake pricing each route call against your budget cap.

Instructions

Route between two places. Default field mask routes.duration,routes.distanceMeters (Essentials). mode defaults to drive. A wider mask costs more.

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>"
    },
    "name": "maps_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
fieldsNoX-Goog-FieldMask. The default is the cheapest useful set; a wider mask costs more.
originYesAddress, or "lat,lng"
destinationYesAddress, or "lat,lng"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations, the description discloses two behavioral defaults not present in structured data: the default field mask (routes.duration,routes.distanceMeters) and mode defaulting to drive. It also flags that widening the mask increases cost, which is important context for an openWorld tool. It stops short of explaining billing granularity or error behavior.

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?

Three short sentences, front-loaded with purpose and then defaults, with no filler. The closing cost sentence partially repeats the schema's own note on the fields parameter, a small redundancy that keeps it from a 5.

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?

With no output schema, the description usefully indicates what is returned via the default field mask (duration, distanceMeters). Combined with annotations covering open-world/non-destructive behavior, an agent has enough to invoke it correctly; units and response shape remain implicit.

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?

Schema coverage is 75%, but the description adds the one piece of meaning the schema lacks: mode defaults to drive, and the exact default field-mask value for fields. Origin/destination formats are already documented in the schema, so no further compensation is needed.

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 uses a specific verb and resource ('Route between two places') and names the default output fields, so an agent knows exactly what the call produces. It does not differentiate itself from siblings like maps_geocode or maps_details, but the routing purpose is unambiguous.

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 description — call this to get duration/distance between an origin and destination — and the cost note hints that the default mask should be kept unless more is needed. However, there is no explicit when-to-use vs. when-not guidance and no mention of maps_geocode for resolving addresses first.

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