Skip to main content
Glama

Generate routes

generate_routes
Read-onlyIdempotent

Use this when someone wants a cycling (road or gravel), running, trail running, walking or hiking route that starts and finishes at the same place, with a target distance or duration and optional climbing, scenery, style and route preferences, or a trip from a start to a destination, split into days (give destination, or dest_lng and dest_lat; distance or duration is then the longest day). Do not use it for driving. Shows the routes on a map where the host supports it, and always returns a link that opens the same request in Remap. Give either start (place text such as "Tempelhofer Feld, Berlin") or lng and lat, never both. When the person has not said where, call generate_routes without a start: the map asks for the person’s location and generates routes from there.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sport": "<sport>"
    },
    "name": "generate_routes"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoStart latitude in degrees, when the start is known as a coordinate.
lngNoStart longitude in degrees, when the start is known as a coordinate.
sportYesThe activity. gravel generates gravel bike routes that welcome unpaved roads and tracks; walking generates foot routes at walking pace; hiking and trail_running seek trails and never use a path rated above the level of the style; a path with no rating is priced by an estimate and labelled as unrated. touring is a bike tour over several days and needs a destination; each night ends near a mapped bed where one is in reach.
startNoWhere the route starts and finishes, as place text (a town, park, street or address).
styleNoThe route style, one the activity offers, or under e_bike one of the e-bike styles; leave it out for its usual style. balanced: Smooth roads, busier ones only when they save real distance (cycling); fast: Direct main roads, smooth surfaces (cycling); quiet: Calm streets and protected lanes (cycling); balanced: Quiet streets, parks and paths (running, walking); night: Lit and calm after dark (running, walking); balanced: Gravel roads and tracks, linked by quieter roads. Busier ones only when they save real distance. (gravel); quiet: Gravel roads and tracks, linked by calm streets and protected lanes. (gravel); easy: Well-made paths, no steep ground (hiking); moderate: Steeper, rougher paths, nothing exposed (hiking); hard: Can include exposed and alpine ground. Know your limits (hiking); easy: Well-made paths, no steep ground (trail_running); moderate: Steeper, rougher paths, nothing exposed (trail_running); hard: Can include exposed and alpine ground. Know your limits (trail_running); balanced: Smooth roads, busier ones only when they save real distance (touring); quiet: Calm streets and protected lanes (touring); road: Smooth roads and protected lanes (e_bike); mixed: Roads and firm tracks, whichever rides better (e_bike); gravel: Gravel roads and tracks, linked by quieter roads. Busier ones only when they save real distance. (e_bike).
e_bikeNotrue when the person rides a pedal-assist e-bike (cycling or gravel only): climbs cost less and times use e-bike speed. With gravel it is the e-bike on its gravel style.
climbingNoflat avoids hills, balanced neither seeks nor avoids them, hilly looks for climbs.
dest_latNoDestination latitude in degrees, when the destination is known as a coordinate.
dest_lngNoDestination longitude in degrees, when the destination is known as a coordinate.
distanceNoTarget distance of the whole route; for a trip to a destination, the longest day.
destinationNoWhere a trip ends, as place text. With a destination Remap plans a trip from the start to it, split into days, and climbing and scenery do not apply.
preferencesNoRoute preferences the person asked for, as name:value, each laid over the style. `any` or `no` clears one the style sets. road_comfort (cycling, touring, gravel): The main way to control how your rides feel on the road: quiet, standard, direct; traffic_separation (cycling, touring, gravel): How much your rides should hold out for cycling space away from motor traffic: marked, separated, any; avoid_shared_paths (cycling, touring, gravel): Steer away from paths and cycleways where you must share with pedestrians: yes, no; mapped_cycle_routes (cycling, touring, gravel): Stick to signed or mapped cycling routes when they're available: auto, prefer, prioritize, any; paved_surface (cycling, touring, gravel): The roughest paved surface you're happy riding on: smooth, fair, coarse, rough, any; unpaved_tolerance (cycling, touring): Whether your rides can include unpaved roads and tracks: avoid, firm; intersections (cycling, touring, gravel): Cut down on traffic lights, stop signs, and crossings on your rides: avoid, strongly_avoid, any; turns (cycling, touring, gravel, running, trail_running, walking, hiking): Prefer longer, straighter stretches with fewer turns and less time crossing or waiting for traffic: fewer, minimal, any; avoid_ferries (cycling, touring, gravel): Skip ferry crossings entirely: yes, no; traffic_volume (cycling, touring, gravel): Stay off roads that carry a lot of motor traffic: avoid, strongly_avoid, any; lighting (cycling, touring, gravel, running, walking): Prefer roads with street lighting, useful for early morning or evening rides: prefer, prioritize, any; surface (running, walking): The ground you'd rather be on: road, mixed.
environmentsNoScenery to favour where the area has it. forest: through forest; parks: through parks and nature reserves; waterside: along rivers, canals and lakes; coast: along the coastline; climbs: over hills worth climbing; quiet_streets: through calm residential streets and lanes; long_stretches: along long, quiet, uninterrupted stretches; cycle_routes: following signed cycle routes (cycling only).
distance_unitNoUnit of distance: km or mi. Defaults to km.
speed_limit_kmhNoAvoid roads at or above this speed limit, unless the road has a separated or marked cycle lane. In km/h, from 20 to 100, for cycling, touring, gravel.
duration_minutesNoTarget duration in minutes, instead of a distance; for a trip, the longest day.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / preferences / description
      Previous value: -"Route preferences the person asked for, as name:value, each laid over the style. `any` or `no` clears one the style sets. road_comfort (cycling, touring, gravel): The main way to control how your rides feel on the road: quiet, standard, direct; traffic_separation (cycling, touring, gravel): How much your rides should hold out for cycling space away from motor traffic: marked, separated, any; avoid_shared_paths (cycling, touring, gravel): Steer away from paths and cycleways where you must share with pedestrians: yes, no; mapped_cycle_routes (cycling, touring, gravel): Stick to signed or mapped cycling routes when they're available: auto, prefer, prioritize, any; paved_surface (cycling, touring, gravel): The roughest paved surface you're happy riding on: smooth, fair, coarse, rough, any; unpaved_tolerance (cycling, touring): Whether your rides can include unpaved roads and tracks: avoid, firm; unpaved_tolerance (gravel): How rough your rides can get: firm, gravel; intersections (cycling, touring, gravel): Cut down on traffic lights, stop signs, and crossings on your rides: avoid, strongly_avoid, any; turns (cycling, touring, gravel, running, trail_running, walking, hiking): Prefer longer, straighter stretches with fewer turns and less time crossing or waiting for traffic: fewer, minimal, any; avoid_ferries (cycling, touring, gravel): Skip ferry crossings entirely: yes, no; traffic_volume (cycling, touring, gravel): Stay off roads that carry a lot of motor traffic: avoid, strongly_avoid, any; lighting (cycling, touring, gravel, running, walking): Prefer roads with street lighting, useful for early morning or evening rides: prefer, prioritize, any; surface (running, walking): The ground you'd rather be on: road, mixed."New value: +"Route preferences the person asked for, as name:value, each laid over the style. `any` or `no` clears one the style sets. road_comfort (cycling, touring, gravel): The main way to control how your rides feel on the road: quiet, standard, direct; traffic_separation (cycling, touring, gravel): How much your rides should hold out for cycling space away from motor traffic: marked, separated, any; avoid_shared_paths (cycling, touring, gravel): Steer away from paths and cycleways where you must share with pedestrians: yes, no; mapped_cycle_routes (cycling, touring, gravel): Stick to signed or mapped cycling routes when they're available: auto, prefer, prioritize, any; paved_surface (cycling, touring, gravel): The roughest paved surface you're happy riding on: smooth, fair, coarse, rough, any; unpaved_tolerance (cycling, touring): Whether your rides can include unpaved roads and tracks: avoid, firm; intersections (cycling, touring, gravel): Cut down on traffic lights, stop signs, and crossings on your rides: avoid, strongly_avoid, any; turns (cycling, touring, gravel, running, trail_running, walking, hiking): Prefer longer, straighter stretches with fewer turns and less time crossing or waiting for traffic: fewer, minimal, any; avoid_ferries (cycling, touring, gravel): Skip ferry crossings entirely: yes, no; traffic_volume (cycling, touring, gravel): Stay off roads that carry a lot of motor traffic: avoid, strongly_avoid, any; lighting (cycling, touring, gravel, running, walking): Prefer roads with street lighting, useful for early morning or evening rides: prefer, prioritize, any; surface (running, walking): The ground you'd rather be on: road, mixed."
    • changedInput schema / properties / style / description
      Previous value: -"The route style, one the activity offers, or under e_bike one of the e-bike styles; leave it out for its usual style. balanced: Smooth roads, busier ones only when they save real distance (cycling); fast: Direct main roads, smooth surfaces (cycling); quiet: Calm streets and protected lanes (cycling); balanced: Quiet streets, parks and paths (running, walking); night: Lit and calm after dark (running, walking); balanced: Gravel roads and tracks, linked by quieter roads (gravel); quiet: Calm tracks and protected links (gravel); easy: Well-made paths, no steep ground (hiking); moderate: Steeper, rougher paths, nothing exposed (hiking); hard: Can include exposed and alpine ground. Know your limits (hiking); easy: Well-made paths, no steep ground (trail_running); moderate: Steeper, rougher paths, nothing exposed (trail_running); hard: Can include exposed and alpine ground. Know your limits (trail_running); balanced: Smooth roads, busier ones only when they save real distance (touring); quiet: Calm streets and protected lanes (touring); road: Smooth roads and protected lanes (e_bike); mixed: Roads and firm tracks, whichever rides better (e_bike); gravel: Gravel roads and tracks, linked by quieter roads (e_bike)."New value: +"The route style, one the activity offers, or under e_bike one of the e-bike styles; leave it out for its usual style. balanced: Smooth roads, busier ones only when they save real distance (cycling); fast: Direct main roads, smooth surfaces (cycling); quiet: Calm streets and protected lanes (cycling); balanced: Quiet streets, parks and paths (running, walking); night: Lit and calm after dark (running, walking); balanced: Gravel roads and tracks, linked by quieter roads. Busier ones only when they save real distance. (gravel); quiet: Gravel roads and tracks, linked by calm streets and protected lanes. (gravel); easy: Well-made paths, no steep ground (hiking); moderate: Steeper, rougher paths, nothing exposed (hiking); hard: Can include exposed and alpine ground. Know your limits (hiking); easy: Well-made paths, no steep ground (trail_running); moderate: Steeper, rougher paths, nothing exposed (trail_running); hard: Can include exposed and alpine ground. Know your limits (trail_running); balanced: Smooth roads, busier ones only when they save real distance (touring); quiet: Calm streets and protected lanes (touring); road: Smooth roads and protected lanes (e_bike); mixed: Roads and firm tracks, whichever rides better (e_bike); gravel: Gravel roads and tracks, linked by quieter roads. Busier ones only when they save real distance. (e_bike)."
  2. Changed6 schema fields changed
    • addedInput schema / properties / e_bike
      Added value: +{
      +  "description": "true when the person rides a pedal-assist e-bike (cycling or gravel only): climbs cost less and times use e-bike speed. With gravel it is the e-bike on its gravel style.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / preferences
      Added value: +{
      +  "description": "Route preferences the person asked for, as name:value, each laid over the style. `any` or `no` clears one the style sets. road_comfort (cycling, touring, gravel): The main way to control how your rides feel on the road: quiet, standard, direct; traffic_separation (cycling, touring, gravel): How much your rides should hold out for cycling space away from motor traffic: marked, separated, any; avoid_shared_paths (cycling, touring, gravel): Steer away from paths and cycleways where you must share with pedestrians: yes, no; mapped_cycle_routes (cycling, touring, gravel): Stick to signed or mapped cycling routes when they're available: auto, prefer, prioritize, any; paved_surface (cycling, touring, gravel): The roughest paved surface you're happy riding on: smooth, fair, coarse, rough, any; unpaved_tolerance (cycling, touring): Whether your rides can include unpaved roads and tracks: avoid, firm; unpaved_tolerance (gravel): How rough your rides can get: firm, gravel; intersections (cycling, touring, gravel): Cut down on traffic lights, stop signs, and crossings on your rides: avoid, strongly_avoid, any; turns (cycling, touring, gravel, running, trail_running, walking, hiking): Prefer longer, straighter stretches with fewer turns and less time crossing or waiting for traffic: fewer, minimal, any; avoid_ferries (cycling, touring, gravel): Skip ferry crossings entirely: yes, no; traffic_volume (cycling, touring, gravel): Stay off roads that carry a lot of motor traffic: avoid, strongly_avoid, any; lighting (cycling, touring, gravel, running, walking): Prefer roads with street lighting, useful for early morning or evening rides: prefer, prioritize, any; surface (running, walking): The ground you'd rather be on: road, mixed.",
      +  "items": {
      +    "enum": [
      +      "avoid_ferries:no",
      +      "avoid_ferries:yes",
      +      "avoid_shared_paths:no",
      +      "avoid_shared_paths:yes",
      +      "intersections:any",
      +      "intersections:avoid",
      +      "intersections:strongly_avoid",
      +      "lighting:any",
      +      "lighting:prefer",
      +      "lighting:prioritize",
      +      "mapped_cycle_routes:any",
      +      "mapped_cycle_routes:auto",
      +      "mapped_cycle_routes:prefer",
      +      "mapped_cycle_routes:prioritize",
      +      "paved_surface:any",
      +      "paved_surface:coarse",
      +      "paved_surface:fair",
      +      "paved_surface:rough",
      +      "paved_surface:smooth",
      +      "road_comfort:direct",
      +      "road_comfort:quiet",
      +      "road_comfort:standard",
      +      "surface:mixed",
      +      "surface:road",
      +      "traffic_separation:any",
      +      "traffic_separation:marked",
      +      "traffic_separation:separated",
      +      "traffic_volume:any",
      +      "traffic_volume:avoid",
      +      "traffic_volume:strongly_avoid",
      +      "turns:any",
      +      "turns:fewer",
      +      "turns:minimal",
      +      "unpaved_tolerance:avoid",
      +      "unpaved_tolerance:firm",
      +      "unpaved_tolerance:gravel"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 12,
      +  "type": "array"
      +}
    • addedInput schema / properties / speed_limit_kmh
      Added value: +{
      +  "description": "Avoid roads at or above this speed limit, unless the road has a separated or marked cycle lane. In km/h, from 20 to 100, for cycling, touring, gravel.",
      +  "type": "number"
      +}
    • changedInput schema / properties / sport / description
      Previous value: -"The activity. Walking generates foot routes at walking pace."New value: +"The activity. gravel generates gravel bike routes that welcome unpaved roads and tracks; walking generates foot routes at walking pace; hiking and trail_running seek trails and never use a path rated above the level of the style; a path with no rating is priced by an estimate and labelled as unrated. touring is a bike tour over several days and needs a destination; each night ends near a mapped bed where one is in reach."
    • changedInput schema / properties / sport / enum
      Previous value: -[
      -  "cycling",
      -  "running",
      -  "walking"
      -]New value: +[
      +  "cycling",
      +  "touring",
      +  "gravel",
      +  "running",
      +  "trail_running",
      +  "walking",
      +  "hiking"
      +]
    • addedInput schema / properties / style
      Added value: +{
      +  "description": "The route style, one the activity offers, or under e_bike one of the e-bike styles; leave it out for its usual style. balanced: Smooth roads, busier ones only when they save real distance (cycling); fast: Direct main roads, smooth surfaces (cycling); quiet: Calm streets and protected lanes (cycling); balanced: Quiet streets, parks and paths (running, walking); night: Lit and calm after dark (running, walking); balanced: Gravel roads and tracks, linked by quieter roads (gravel); quiet: Calm tracks and protected links (gravel); easy: Well-made paths, no steep ground (hiking); moderate: Steeper, rougher paths, nothing exposed (hiking); hard: Can include exposed and alpine ground. Know your limits (hiking); easy: Well-made paths, no steep ground (trail_running); moderate: Steeper, rougher paths, nothing exposed (trail_running); hard: Can include exposed and alpine ground. Know your limits (trail_running); balanced: Smooth roads, busier ones only when they save real distance (touring); quiet: Calm streets and protected lanes (touring); road: Smooth roads and protected lanes (e_bike); mixed: Roads and firm tracks, whichever rides better (e_bike); gravel: Gravel roads and tracks, linked by quieter roads (e_bike).",
      +  "enum": [
      +    "balanced",
      +    "fast",
      +    "quiet",
      +    "night",
      +    "easy",
      +    "moderate",
      +    "hard",
      +    "road",
      +    "mixed",
      +    "gravel"
      +  ],
      +  "type": "string"
      +}
  3. Changed5 schema fields changed
    • addedInput schema / properties / dest_lat
      Added value: +{
      +  "description": "Destination latitude in degrees, when the destination is known as a coordinate.",
      +  "maximum": 90,
      +  "minimum": -90,
      +  "type": "number"
      +}
    • addedInput schema / properties / dest_lng
      Added value: +{
      +  "description": "Destination longitude in degrees, when the destination is known as a coordinate.",
      +  "maximum": 180,
      +  "minimum": -180,
      +  "type": "number"
      +}
    • addedInput schema / properties / destination
      Added value: +{
      +  "description": "Where a trip ends, as place text. With a destination Remap plans a trip from the start to it, split into days, and climbing and scenery do not apply.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • changedInput schema / properties / distance / description
      Previous value: -"Target distance of the whole route."New value: +"Target distance of the whole route; for a trip to a destination, the longest day."
    • changedInput schema / properties / duration_minutes / description
      Previous value: -"Target duration in minutes, instead of a distance."New value: +"Target duration in minutes, instead of a distance; for a trip, the longest day."
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare this tool as read-only, idempotent and non-destructive. The description adds useful behavior beyond annotations: routes are shown on a map where supported, a Remap link is always returned, omitting start triggers a location prompt, and start versus lng/lat must not both be supplied. It does not discuss rate limits or error behavior, but those are less central for this read-only tool.

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 front-loaded with the use case and includes every sentence for a reason: exclusions, return behavior, start/coordinate exclusivity, and no-start handling. However, the first sentence is dense and long, and some schema-covered details are repeated. Bullets or shorter sentences would improve scanning.

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 complex 16-parameter tool with no output schema, the description covers purpose, sport modes, loop versus trip behavior, start/destination constraints, the no-start flow, and the broad return behavior via map and Remap link. It does not describe the route response structure or error cases in detail, but annotations and the fully documented schema cover most remaining needs.

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?

The schema has 100% description coverage and already documents all 16 parameters in detail, including sports, styles, preferences and environments. The description adds the cross-field constraint that start and lng/lat must not both be given, and clarifies trip distance/duration semantics, but much of its parameter discussion repeats schema content. The baseline of 3 is appropriate.

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 states a specific verb and resource: generating cycling, running, walking or hiking routes, including loop routes or start-to-destination trips split into days. It explicitly excludes driving, which helps an agent distinguish this from directions tools. Although it does not name find_place, the purpose is clear and specific.

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?

It gives explicit when-to-use conditions, including route type, loop versus trip, and how to handle an unknown start by calling without a start. It also gives a clear when-not-to-use rule: do not use for driving. It does not explicitly mention find_place as an alternative for resolving place text, so it falls short of a full 5.

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.

Resources