Skip to main content
Glama

Route, Höhenmeter, Wegtypen & Belag berechnen

plan_route
Read-onlyIdempotent

Berechnet eine Fahrrad-, Wander-, Rennrad-, Auto- (BRouter) oder Luftlinien-Route (direct) mit Schwerpunkt DACH (max. 600 km Wegpunkt-Luftlinie) inkl. Distanz (km), Höhenmetern (m), geschätzter Dauer (Minuten), getrennter Belags-, Wegtyp- und optionaler Smoothness-Verteilung (mit Unterscheidung zwischen expliziten OSM-Angaben, abgeleiteten Hinweisen und unbekannten Werten), optionalen zusammengefassten Streckenabschnitten (includeSegments) und koordinatengebundenem DACHmap-Deep-Link mit Höhenprofil. Für eine Rundtour from und to gleich setzen und die Stationen in Reihenfolge als waypoints angeben; Hin- und Rückweg als eine Route mit einem Kartenlink planen, nicht als zwei Aufrufe. Mehrdeutige Namen werden in der Nähe des vorherigen Punkts aufgelöst. near legt die Gegend für den Start fest. Bestimmte Straßentypen lassen sich nicht hart ausschließen, die Wanderprofile meiden Hauptstraßen nur.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "plan_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesZielort oder Koordinaten 'lat,lon'.
fromYesStartort oder Koordinaten 'lat,lon'.
nearNoOptionaler Ortsbezug 'lat,lon' für den Startpunkt from.
profileNoRoutingprofil (Standard: trekking/cycling).
waypointsNoOptional bis zu 3 Zwischenziele in Reihenfolge (Ortsname oder 'lat,lon'). Für eine Rundtour from und to gleich setzen und die Stationen in Reihenfolge als waypoints angeben.
includeSegmentsNoOptional: Aufeinanderfolgende Streckenabschnitte mit identischem Belag und Wegtyp zurückgeben (Standard: false, max. 120 Abschnitte).

Output Schema

NameRequiredDescriptionDefault
toYes
fromYes
mapUrlYesDACHmap-Routenlink mit aufgelösten Koordinaten und profileChart=1.
ascentMNoAufstieg in Höhenmetern (3-m-Hysterese).
profileYes
snappedNoOptionale Hinweise auf Wegpunkte, die für das Routing an den nächsten Weg eingerastet wurden.
descentMNoAbstieg in Höhenmetern (3-m-Hysterese).
segmentsNoNur bei includeSegments=true: zusammengefasste Streckenabschnitte mit identischem Belag und Wegtyp (max. 120).
timedOutNotrue, wenn die Routenberechnung das MCP-Zeitbudget überschritten hat und direkt in DACHmap geöffnet werden soll.
distanceKmNoStreckenlänge in Kilometern.
maxElevationMNoHöchster Punkt in Metern.
minElevationMNoNiedrigster Punkt in Metern.
wayDataSourceNoHerkunft der Wegmerkmale: brouter_messages, none (Luftlinie) oder unavailable.
resolvedPointsNoAufgelöste Routenpunkte in Reihenfolge (Start, Zwischenziele, Ziel) inkl. Gemeinde, Bundesland, Koordinaten und ob ein Ortsbezug gewirkt hat.
surfaceBreakdownNoBelagsverteilung unabhängig vom Wegtyp (mit Kennzeichnung explicit, derived oder unknown).
wayTypeBreakdownNoWegtyp-Verteilung unabhängig vom Belag (mit Kennzeichnung explicit oder unknown).
segmentsTruncatedNotrue, wenn die Streckenabschnitte auf das Ausgabelimit gekürzt wurden; die Gesamtverteilungen berücksichtigen stets die vollständige Route.
totalSegmentCountNoGesamtanzahl der zusammengefassten Streckenabschnitte vor einer eventuellen Kürzung.
surfaceCoveragePctNoAnteil der Streckenlänge (0..100 %) mit expliziter oder abgeleiteter Belagsinformation.
wayTypeCoveragePctNoAnteil der Streckenlänge (0..100 %) mit bekannter Wegtyp-Angabe.
smoothnessBreakdownNoOptionale Verteilung der Befahrbarkeit (OSM smoothness), falls in den Wegdaten vorhanden.
estimatedDurationMinutesNoGeschätzte Dauer in Minuten.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, and the description still adds real behavioral context: the 600 km constraint, the 120-segment cap, how ambiguous place names are resolved relative to the previous point, and the caveat that road types cannot be strictly excluded. It does not cover error behavior or whether routing is deterministic across profile aliases, keeping it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the opening sentence is a single very long run-on with nested parentheticals covering profiles, outputs, smoothing categories and segment options. All content is relevant, yet readability suffers from the dense one-paragraph packing rather than a 5's tight, cleanly separated statements.

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 six-parameter routing tool with an output schema and full annotations, the description covers scope limits, profile families, loop/out-and-back usage, ambiguity resolution and segment toggling — enough to call it correctly. Missing only profile-specific guidance (which profile to prefer for which trip) and any failure/edge-case behavior.

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?

Schema coverage is 100%, so the baseline is 3; the description goes beyond it by explaining 'near' as the region anchor for the start and by describing disambiguation of ambiguous place names relative to the preceding point, which the schema does not state. It largely repeats the waypoint round-trip rule already present in the schema, so it is not a full 5.

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?

A specific verb+resource ('Berechnet eine ... Route') followed by the supported profile families (Fahrrad, Wander, Rennrad, Auto/BRouter, Luftlinie) and the exact outputs produced (Distanz, Höhenmeter, Dauer, Belags-/Wegtyp-/Smoothness-Verteilung, Segmente, Deep-Link). An agent can distinguish this from build_map_link or check_elevation_and_sightline because route computation plus elevation/surface analytics is named explicitly.

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?

Concrete directives are given: set from and to equal and pass stations as waypoints for a loop, plan out-and-back as one call rather than two, and use 'near' to pin the start region. Limits are stated (max 600 km waypoint air-line, road types cannot be hard-excluded, hiking profiles only avoid main roads). It does not explicitly route the agent away from sibling tools such as build_map_link or search_place, so no explicit alternatives.

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