Skip to main content
Glama

Openrouteservice Directions

openrouteservice_directions
Read-onlyIdempotent

"Directions from A to B" / "how far is [X] from [Y]" / "hiking / cycling / wheelchair / walking route" / "truck routing" / "HGV directions" / "driving route", turn-by-turn routing between coordinates with profile-specific routing. Profiles: driving-car, driving-hgv (trucks), foot-walking, foot-hiking, cycling-regular / mountain / road / electric, wheelchair. Returns geometry, distance, duration, turn-by-turn instructions, elevation. Uses OpenStreetMap data via OpenRouteService. Use for hiking/biking/wheelchair/truck cases where Mapbox/Google don't have the right profile.

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": {
      "profile": "driving-car",
      "coordinates": [
        [
          8.681495,
          49.41461
        ],
        [
          8.687872,
          49.420318
        ]
      ],
      "instructions": true
    },
    "name": "openrouteservice_directions"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNojson (default) | geojson | gpx
profileNo
coordinatesYes[[lon, lat], ...]
instructionsNo

Output Schema

NameRequiredDescriptionDefault
bboxNo
typeNoformat geojson: FeatureCollection
routesNoformat json: one entry per route
featuresNoformat geojson: route features with geometry and properties.summary/segments
metadataNoQuery echo, engine version, attribution

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / description
      Previous value: -"Routing response from OpenRouteService"New value: +"Route between the given coordinates. format json returns routes[]; format geojson returns a FeatureCollection in features[]. Which of the two appears depends on format, so neither is guaranteed."
    • addedOutput schema / properties
      Added value: +{
      +  "bbox": {
      +    "items": {
      +      "type": "number"
      +    },
      +    "type": "array"
      +  },
      +  "features": {
      +    "description": "format geojson: route features with geometry and properties.summary/segments",
      +    "items": {
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "metadata": {
      +    "description": "Query echo, engine version, attribution",
      +    "type": "object"
      +  },
      +  "routes": {
      +    "description": "format json: one entry per route",
      +    "items": {
      +      "properties": {
      +        "bbox": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "geometry": {
      +          "description": "Encoded polyline string",
      +          "type": "string"
      +        },
      +        "segments": {
      +          "items": {
      +            "properties": {
      +              "distance": {
      +                "type": "number"
      +              },
      +              "duration": {
      +                "type": "number"
      +              },
      +              "steps": {
      +                "items": {
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "summary": {
      +          "properties": {
      +            "distance": {
      +              "description": "Meters",
      +              "type": "number"
      +            },
      +            "duration": {
      +              "description": "Seconds",
      +              "type": "number"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "way_points": {
      +          "items": {
      +            "type": "integer"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "type": {
      +    "description": "format geojson: FeatureCollection",
      +    "type": "string"
      +  }
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / coordinates / description
      Previous value: -"[[lon, lat], …]"New value: +"[[lon, lat], ...]"
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), so the bar is lower; the description adds the data provenance ('OpenStreetMap data via OpenRouteService') and the returned fields (geometry, distance, duration, instructions, elevation). It omits operational details like coordinate ordering, units, or limits, but those are partly covered by the schema.

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?

Front-loaded with intent-matching phrases, then the core behavior, then the profile list and return values in a logical order. The quoted-phrase list is long but each entry maps to a distinct routing intent, so it mostly earns its space.

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?

An output schema exists, so describing return values is largely redundant, yet the profile enumeration and data-source note fill the schema's real gaps. Remaining omissions (coordinate order, distance units, coordinate-count limits) are modest for a read-only routing call.

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?

With only 50% schema description coverage, the description earns credit for enumerating the accepted profile values (driving-car, driving-hgv, foot-walking, foot-hiking, cycling variants, wheelchair), which the schema leaves as a bare string with no enums. It does not clarify the 'format' options or the 'instructions' flag beyond implying turn-by-turn output.

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?

States a specific verb and resource ('turn-by-turn routing between coordinates with profile-specific routing') and anchors it with concrete user-phrase examples like 'how far is X from Y' and 'truck routing'. An agent can easily separate this from siblings such as matrix, isochrones, or geocode_search.

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?

Explicitly says to use this for hiking/biking/wheelchair/truck cases 'where Mapbox/Google don't have the right profile', which gives clear positive guidance and a comparative condition. It stops short of naming sibling alternatives (e.g., matrix for many-to-many, isochrones for reachable areas) or stating exclusions against them.

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.