Skip to main content
Glama

Plan a journey (train / bus)

plan_journey
Read-only

Plan journeys between two places in Poland by train or bus, showing transfers, times, platforms, operators, and live delays.

Instructions

Find connections between two places in Poland, including changes between trains and buses (PKS). from/to accept a station name ("Poznań Główny"), a town ("Zakopane" = all its stops) or coordinates "52.40,16.91". Returns several options with times, platforms, operators, changes and live delays (today).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesDestination: station, town or 'lat,lon'
dateNoDate: "YYYY-MM-DD", "today", "tomorrow", a weekday ("friday", "piątek") or "DD.MM". Default: today.
fromYesOrigin: station, town or 'lat,lon'
liveNoInclude live delays (default true).
timeNoLocal time "HH:MM" (Europe/Warsaw). Default: now (today) or 04:00 (other days).
modesNoRestrict to these modes, e.g. ["train"] or ["train","bus"]. Default: all loaded.
resultsNoNumber of options (default 5).
arrive_byNoIf true, `time` is the latest arrival time instead of the earliest departure.
max_transfersNoMaximum number of changes (default 3, 0 = direct only).
min_transfer_minutesNoMinimum time for a change (default 4).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint and openWorldHint, so safety is covered externally, and the description adds genuinely useful behavior: the return payload (times, platforms, operators, changes) and the time-sensitivity caveat that live delays only apply 'today'. It also discloses the Poland-only coverage boundary, which is not in any structured field.

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?

Two dense sentences with no filler; the core capability leads and the return/time-sensitivity details follow. Every clause carries information an agent needs to select and call the tool.

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 10-parameter, no-output-schema tool with only two annotations, the description adequately covers scope, accepted inputs and the shape of the result. It does not address no-connection or error outcomes, and transfer/arrive_by semantics are left entirely to the schema, but nothing essential to correct invocation 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 including formats, defaults and enum values for 'modes'. The description largely restates the from/to input forms ('station name', 'town', coordinates) already present in the schema properties, with only the 'Zakopane = all its stops' clarification adding marginal meaning.

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+resource ('Find connections between two places in Poland') and immediately scopes it to multi-modal routing including train/bus changes, which clearly separates it from siblings like departures and trip_details. The geographic scope (Poland) and the accepted origin/destination forms are stated up front.

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?

Usage is implied rather than declared: the description positions this as a point-to-point planner, so an agent can infer it is the right tool for route planning versus departures/trip_details. However, no sibling is named and no when-not-to-use condition is given, so routing is left to inference.

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