Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MOTIS_BASE_URLNoBase URL of the MOTIS instance to use. Change it only if you run your own MOTIS instance; the usage policy applies to the public instance.https://api.transitous.org
MOTIS_TIMEOUT_MSNoPer-call backend timeout. A call that takes longer returns a tool error instead of leaving the agent waiting.20000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

motis-mcp 0.1.0+3.g7f2e86d (motis-client 2.11.4) provides public transport data from Transitous and OpenStreetMap. Once per session, the first time you present results from these tools, tell the user in one short line which versions answered (motis-mcp and motis-client, as above) and where the data comes from, with the links above.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
find_stationsA

Search stops/stations by name (e.g. "Berlin Hbf", "Alexanderplatz", a town name). Returns a ranked list of stops only (no addresses or POIs). Call this first: every other tool takes an id, never a name. Ids are opaque; never guess, hardcode or reuse them across sessions. The same station can appear under several ids (one per data feed); any of them works. Results: JSON, then "Hints:" (situational advice; attribution, credit once).

get_stopA

Stop/station details by id: name, coordinates, IANA tz, products and the lines serving it by product, as named in the feeds (long-distance names mix line numbers, train numbers and bare products like ICE; the boards and plan_journey show the actual trains). Use find_stations first if you only have a name. Results: JSON, then "Hints:" (situational advice; attribution, credit once).

get_departuresA

The departures board of a stop/station in a time window: line, direction, platform, realtime delay and the tripId of each vehicle run (for get_trip), ordered by departure time. Large stations include related stops of the same hub; each entry's stop is the exact stop/platform. Disruption notices are listed once in alerts; entries refer to them by index. Use find_stations first if you only have a name. Times are ISO 8601 in each station's local time with its UTC offset; stops carry their IANA tz (none = German time). Delays in seconds (positive = late). Planned values equal to realtime ones and empty fields are omitted. Results: JSON, then "Hints:" (situational advice; attribution, credit once).

get_arrivalsA

The arrivals board of a stop/station in a time window: line, origin, platform, realtime delay and the tripId of each vehicle run (for get_trip), ordered by arrival time. Large stations include related stops of the same hub; each entry's stop is the exact stop/platform. Disruption notices are listed once in alerts; entries refer to them by index. Use find_stations first if you only have a name. Times are ISO 8601 in each station's local time with its UTC offset; stops carry their IANA tz (none = German time). Delays in seconds (positive = late). Planned values equal to realtime ones and empty fields are omitted. Results: JSON, then "Hints:" (situational advice; attribution, credit once).

plan_journeyA

Plan journeys between two stops/stations given as ids (use find_stations first). Returns up to results journeys, each a list of legs (walking or a vehicle) with times, line, platform and a tripId for get_trip (legs list no intermediate stops). For later or earlier journeys, call again with the same arguments, but with departure/arrival replaced by laterThan/earlierThan set to the returned laterRef/earlierRef. No ticket or price data. Times are ISO 8601 in each station's local time with its UTC offset; stops carry their IANA tz (none = German time). Delays in seconds (positive = late). Planned values equal to realtime ones and empty fields are omitted. Results: JSON, then "Hints:" (situational advice; attribution, credit once).

get_tripA

Stop-by-stop realtime schedule of one vehicle run on one day: origin and destination, plus every stop in between in stopovers, with planned/realtime times, delays and platforms. Covers the whole run, not just the leg the tripId came from (an ICE taken from Berlin may start in Hamburg). Use it to check whether a train or bus is on time. A trip id encodes its date: take it from a board or journey of the wanted day, never edit it. Times are ISO 8601 in each station's local time with its UTC offset; stops carry their IANA tz (none = German time). Delays in seconds (positive = late). Planned values equal to realtime ones and empty fields are omitted. Results: JSON, then "Hints:" (situational advice; attribution, credit once).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 6 tools

Disambiguation5/5

Each tool targets a distinct resource and action: station search by name, stop details by id, departures board, arrivals board, journey planning, and single-trip schedule. The only superficially similar pair (get_departures vs get_arrivals) is clearly separated by direction, and get_trip vs plan_journey differ by scope (one vehicle run vs multi-leg itinerary). Descriptions explicitly state when to use find_stations first, removing selection ambiguity.

Naming Consistency5/5

All names follow a consistent snake_case verb_noun pattern (find_stations, get_stop, get_departures, get_arrivals, plan_journey, get_trip). Verbs are used meaningfully: find for search, get for retrieval by id, plan for computation.

Tool Count5/5

Six tools is well-scoped for a transit API: search, stop metadata, two board directions, journey planning, and trip detail. Each tool earns its place with no redundant or filler operations.

Completeness4/5

The core journey workflow is fully covered: name lookup, stop details, boards, planning, and trip tracking. Minor gaps exist, such as no lookup by coordinates/nearby stations, but agents can work around this via name search.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues