Skip to main content
Glama

get_route_directions

Calculate route directions between two coordinates using OpenStreetMap. Supports car, bike, and foot modes with optional turn-by-turn instructions.

Instructions

Calculate detailed route directions between two geographic points.

This tool provides comprehensive routing information between two locations using OpenStreetMap/OSRM. The output can be minimized using the steps, overview, and annotations parameters to reduce the response size.

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) ctx: Context (provided internally by MCP) mode: Transportation mode ("car", "bike", "foot") steps: Turn-by-turn instructions (True/False, Default: False) overview: Geometry output ("full", "simplified", "false"; Default: "simplified") annotations: Additional segment info (True/False, Default: False)

Returns: Dictionary with routing information (summary, directions, geometry, waypoints)

Example: { "from_latitude": 51.3334193, "from_longitude": 9.4540423, "to_latitude": 51.3295516, "to_longitude": 9.4576721, "mode": "car", "steps": false, "overview": "simplified", "annotations": false }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNocar
stepsNo
overviewNosimplified
annotationsNo
to_latitudeYes
to_longitudeYes
from_latitudeYes
from_longitudeYes
Behavior3/5

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

With no annotations, the description must convey behavioral traits. It adds useful context: uses OSRM, output can be minimized via parameters, and returns a dictionary with routing info. However, it does not mention side effects, rate limits, error handling, or explicitly label itself as read-only, so it only partially carries the transparency burden.

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 purpose statement, an Args list, and an example. It is moderately lengthy but each sentence earns its place given the 8 parameters. The front-loading is effective and the format is readable.

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 (8 params, no output schema, no annotations), the description covers the purpose, parameters, return format, and provides an example. It lacks details on edge cases or error conditions, but for a routing tool this is fairly complete and sufficient for an agent to invoke it.

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?

The input schema has 0% description coverage, but the description's Args section comprehensively documents every parameter with types, defaults, and allowed values (e.g., mode, steps, overview, annotations). This fully compensates for the schema gap and adds meaning well beyond the raw schema.

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 clearly states 'Calculate detailed route directions between two geographic points' with specific verb and resource, and further explains it uses OpenStreetMap/OSRM. It is unambiguous but does not explicitly differentiate from sibling tools like analyze_commute, 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no explicit guidance on when to use this tool versus alternatives. It states what it does but does not mention scenarios where it should be preferred or excluded, leaving the agent to infer usage from the purpose.

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/Sowjanyakaki/OpenStreetMap_MCP'

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