Skip to main content
Glama

get_route_directions

Get turn-by-turn navigation directions between two locations with distance, duration, and route geometry. Supports car, bike, and foot travel modes.

Instructions

Calculate detailed route directions between two geographic points.

This tool provides comprehensive turn-by-turn navigation directions between any two locations on Earth. It calculates the optimal route based on the specified transportation mode and returns detailed information about distance, duration, maneuvers, and the route geometry. Perfect for trip planning, navigation assistance, and commute analysis.

Args: from_latitude: Starting point latitude (decimal degrees) from_longitude: Starting point longitude (decimal degrees) to_latitude: Destination latitude (decimal degrees) to_longitude: Destination longitude (decimal degrees) mode: Transportation mode - options include: - "car" (default): Standard automobile routing - "bike": Bicycle-friendly routes - "foot": Pedestrian walking paths

Returns: Comprehensive routing information including: - Summary with total distance (meters) and duration (seconds) - Turn-by-turn directions with individual segments - Route geometry for mapping visualization - Waypoint information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNocar
to_latitudeYes
to_longitudeYes
from_latitudeYes
from_longitudeYes
Behavior4/5

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

With no annotations provided, the description discloses key behaviors: calculates the optimal route based on mode, returns distance/duration/maneuvers/geometry, and supports car/bike/foot modes. It clarifies that coordinates are in decimal degrees. It does not mention rate limits or error handling, but the core behavior is well covered.

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?

The description is well-structured with a summary, Args, and Returns sections, and it front-loads the purpose. It is slightly verbose with phrases like 'between any two locations on Earth,' but the structure makes it easy to parse and the content is relevant.

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 tool with no annotations and no output schema, the description provides parameter semantics, return value details, and use cases. It lacks explicit error handling or regional availability notes, but overall it gives an agent enough context to select and invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description compensates by explaining every parameter: coordinates as decimal degrees and the mode options with the default 'car'. This adds significant meaning beyond the bare schema property names and types.

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 'Calculate detailed route directions between two geographic points,' which is a specific verb and resource. It distinguishes itself from sibling tools like geocoding and nearby search by focusing on turn-by-turn navigation.

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 use cases: 'Perfect for trip planning, navigation assistance, and commute analysis.' It doesn't explicitly mention when not to use it or alternatives, but the context is sufficient for an agent to understand the primary scenarios.

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/LLLeoLi/osm-mcp-server'

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