Skip to main content
Glama

Mapbox Directions

mapbox_directions
Read-onlyIdempotent

"Directions from A to B" / "how long does it take to drive from X to Y" / "how far is [A] from [B]" / "walking / cycling / driving directions" / "navigation between points" / "shortest route", turn-by-turn routing between two or more coordinates. Returns geometry, distance (meters), duration (seconds), voice + banner instructions, and alternatives. Profile: driving, driving-traffic, walking, or cycling. Backed by Mapbox's commercial-grade traffic data and global road network.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "coordinates": [
        [
          -122.4194,
          37.7749
        ],
        [
          -118.2437,
          34.0522
        ]
      ]
    },
    "name": "mapbox_directions"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNo
profileNo
languageNo
overviewNo
geometriesNo
annotationsNo
coordinatesYes
alternativesNo
voice_instructionsNo
banner_instructionsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered; the description adds that results include traffic-aware data and alternatives. It does not flag operational gotchas an agent would care about here, notably coordinate order (lon,lat), upper limits on waypoints, or traffic-profile freshness. Listing return fields is partially redundant given the output schema exists.

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

Conciseness3/5

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

Front-loaded, which is good, but the opening is six quoted keyword phrases that largely restate each other instead of one crisp trigger statement. The substantive sentences that follow are tight and information-dense, so the redundancy is the main cost.

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?

With rich annotations and an output schema, the description needn't cover return shape, and it doesn't need to for correctness. However, for a 10-parameter routing tool with zero schema coverage, leaving eight parameters (including meaningful ones like geometries and overview format) undocumented means an agent cannot confidently use the optional surface from the description alone.

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 0% across 10 parameters, so the description carries the burden: it does explain that coordinates are two or more points and enumerates the profile values (driving, driving-traffic, walking, cycling), which the schema leaves as a free-form string. But steps, language, overview, geometries, annotations, alternatives, voice_instructions, and banner_instructions are never explained, so most parameters remain guesswork.

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?

Explicit: "turn-by-turn routing between two or more coordinates" with stated outputs (geometry, distance in meters, duration in seconds, instructions, alternatives). This is a specific verb+resource, not a restatement of the name. It does not, however, distinguish itself from the sibling directions_matrix for many-to-many routing, so it stops short of a 5.

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 quoted user-query phrasings ("how long does it take to drive from X to Y", "how far is A from B", "walking / cycling / driving directions") give strong positive selection signals, and the listed profiles narrow it to a point-to-point route lookup. There are no explicit exclusions, e.g. no guidance pointing to directions_matrix when the caller has many origins/destinations.

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.