Skip to main content
Glama

Calculate Route

calculate_route
Read-only

Plan routes between locations with turn-by-turn directions, distance, duration, and toll details. Supports car, caravan, bike, and pedestrian travel with traffic and alternative route options.

Instructions

Calculate a route between two or more locations using ANWB route planning. Supports car, caravan, bike, and pedestrian modes. Provide locations as latitude,longitude pairs separated by colons (e.g. '52.37,4.89:51.44,5.47'). Returns distance, duration, turn-by-turn directions, toll information (car/caravan only), and optional alternative routes. Use find_locations first to get coordinates for place names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
avoidNoRoad types to avoid. Options: tollRoads, motorways, ferries, unpavedRoads. Applies to car/caravan modes primarily.
trafficNoTake current traffic conditions into account (car/caravan mode only, ignored for bike/pedestrian).
tollInfoNoInclude toll road information (car/caravan mode only, ignored for bike/pedestrian).
locationsYesWaypoints as lat,lon pairs separated by colons. Minimum 2 points. Example: '52.373166,4.89066:51.441643,5.469722' (Amsterdam to Eindhoven).
routeTypeNoRoute optimization: fastest (default) or shortest distance. Note: 'shortest' only works for bike and pedestrian modes.fastest
transportModeNoTransport mode: car (default), caravan, bike, or pedestrian.car
transportSubtypeNoBike subtype: 'bike' (regular) or 'ebike' (electric bicycle). Only applies when transportMode is 'bike'.
includeAlternativesNoInclude alternative routes in the response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the bar is lower. The description adds useful behavior beyond those flags: it returns distance, duration, turn-by-turn directions, toll information (car/caravan only), and optional alternative routes. This communicates mode-dependent behavior and response content without contradicting the annotations.

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

Conciseness5/5

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

The description is compact and front-loaded: the core purpose appears first, followed by concrete format guidance and a prerequisite. Every sentence earns its place without redundant restatement of the tool title or schema.

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 read-only route calculation tool with no output schema, the description covers the essential prerequisites, coordinate format, supported modes, and return contents. The rich input schema fills in parameter-level details like routeType and avoid options, so nothing critical is missing.

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?

Schema description coverage is 100%, so the schema already documents every parameter. The description adds a clear coordinate-pair example and the find_locations workflow, but it does not materially deepen the meaning of parameters beyond what the schema already provides.

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 a specific action ('Calculate a route'), the resource ('between two or more locations using ANWB route planning'), and the supported modes (car, caravan, bike, pedestrian). This makes it straightforwardly distinct from siblings like calculate_ev_route or get_traffic_summary, even without naming them.

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 practical guidance to 'Use find_locations first to get coordinates for place names', and clarifies supported travel modes. It does not explicitly say when to prefer calculate_ev_route over this tool, but the mode list and ANWB context give a clear usage envelope.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.