Skip to main content
Glama

Plan a journey

plan_journey

Find public-transport routes between two places, with multiple itinerary options, times, transfers, and disruption alerts. Supports wheelchair access, departure/arrival times, and line preferences.

Instructions

Compute public-transport journeys between two points (multi-modal door-to-door routing). Returns up to 'max_nb_journeys' itineraries with legs, times, transfers and any disruptions. To express a taste for or against a line without ruling it out, pass 'prefer_lines' / 'avoid_lines'; use 'forbidden_uris' to exclude something outright.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesDestination. Either 'lon;lat' coordinates (e.g. '2.3522;48.8566') or a Navitia object id from search_places (e.g. 'stop_area:SNCF:87686006'). Prefer object ids for stations.
fromYesOrigin. Either 'lon;lat' coordinates (e.g. '2.3522;48.8566') or a Navitia object id from search_places (e.g. 'stop_area:SNCF:87686006'). Prefer object ids for stations.
datetimeNoISO 8601 datetime, local to the region (e.g. 2026-06-11T17:30). Defaults to now.
wheelchairNoOnly wheelchair-accessible journeys.
avoid_linesNoEXPERIMENTAL. Line ids ('line:...') the traveller would rather not use: they are proposed less but stay in the results, unlike forbidden_uris which removes them. For "I would like to avoid metro 14 without ruling it out".
prefer_linesNoEXPERIMENTAL. Line ids ('line:...', from search_pt_objects) the traveller would rather use: itineraries taking them are favoured, without discarding the alternatives. For "I prefer taking metro 14".
forbidden_urisNoObject ids to exclude entirely, e.g. a line ('line:...'), network or commercial_mode ('commercial_mode:Bus'). To merely de-prioritise a line, use 'avoid_lines' instead.
max_nb_journeysNoMaximum number of itineraries to return (default 8).
max_nb_transfersNoMaximum number of transfers.
datetime_representsNoWhether 'datetime' is the departure time (default) or the desired arrival time.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It explicitly describes what the tool returns (legs, times, transfers, disruptions) and clarifies the behavioral difference between soft preferences (prefer/avoid_lines) and hard exclusion (forbidden_uris). It stops short of describing edge cases or error behavior, but the core computational behavior is transparent.

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?

Three sentences, front-loaded with the primary function, and every sentence adds information: what it computes, what it returns, and how to express preferences/exclusions. No filler or repetition of schema details.

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?

The tool is complex (10 params, no output schema) and the description covers the main outcome and the most nuanced parameter behavior. It doesn't explain defaults like datetime=now, but the schema handles that. The return shape is sufficiently described for an agent to understand what it will receive.

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 100% schema coverage, baseline is 3. The description adds value by explaining the exact semantics of prefer_lines/avoid_lines vs forbidden_uris, which the schema only hints at, and confirms that max_nb_journeys caps the result set. This goes beyond the schema's field-level descriptions.

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 opens with a specific verb ('Compute'), a precise resource ('public-transport journeys between two points'), and characterizes the routing as 'multi-modal door-to-door'. The return payload is spelled out (itineraries with legs, times, transfers, disruptions), which clearly separates this journey-planning tool from sibling schedule/stop endpoints.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description implies the tool is for point-to-point journey planning but never states when to choose it over siblings like next_departures or stop_schedules. It gives no explicit when-not or alternative routing. The parameter guidance (prefer_lines vs forbidden_uris) is a usage guideline for the tool's own options, not for tool selection.

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

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/wassimbenaissa/Navitia-MCP'

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