Skip to main content
Glama

route

Plan routes between two or more waypoints with turn-by-turn directions. Choose from car, truck, bicycle, pedestrian, or motor scooter. Returns distance, duration, and step instructions.

Instructions

Get turn-by-turn directions between two or more waypoints.

Returns: { distance_km, duration_sec, legs: [{ steps: [{ instruction, distance_km, duration_sec }] }], geometry (GeoJSON LineString) }.

WAYPOINT ORDER: First element = origin, last = destination. Intermediate elements are via-points in order. TRAVEL MODES: auto (car), truck (HGV — applies weight/height/hazmat restrictions), bicycle, pedestrian, motor_scooter. ETA: duration_sec is road-network travel time under normal conditions. Does not account for live traffic. MULTI-STOP: Add intermediate waypoints for optimized stop sequences.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waypointsYesArray of {lat, lon} waypoints. First = origin, last = destination. Min 2, max 50.
modeNoTravel mode. Default: auto (car). Use truck for commercial vehicles with size/weight restrictions.
unitsNoDistance units for the response. Default: km.
Behavior5/5

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

No annotations are provided, but the description fully discloses the return format (distance_km, duration_sec, legs, steps, geometry), explains that duration_sec is under normal conditions without live traffic, and clarifies waypoint order and travel mode effects (e.g., truck restrictions).

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?

The description is concise and well-structured: a single sentence for purpose, structured return format, and bullet-point notes for key aspects like waypoint order and travel modes. Every sentence provides essential information without 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?

Given the tool's complexity (routing with waypoints, modes, units), the description covers critical behavioral aspects (order, modes, ETA, multi-stop). Missing details like optimization criteria (time vs. distance) and lack of output schema slightly reduce completeness.

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?

The input schema covers 100% of parameters with descriptions, so baseline is 3. The description adds value by reinforcing waypoint order, explaining travel mode enum semantics (e.g., truck applies restrictions), and noting multi-stop optimization, earning a 4.

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?

The description clearly states 'Get turn-by-turn directions between two or more waypoints,' specifying a unique verb and resource. It distinguishes the tool from siblings like 'matrix' and 'isochrone' by focusing on detailed route generation.

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 description provides clear usage context: waypoint ordering, travel modes, and ETA limitations (no live traffic). However, it does not explicitly state when not to use this tool (e.g., for simple distance queries where 'matrix' might be better), leaving room for improvement.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/algolayertechnologies/mapsi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server