Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoDEBUG / INFO / WARNING / ERRORINFO
GZM_CACHE_TTLNoIn-process feed cache TTL in seconds10
GZM_MAX_TRIPSNoDefault cap for trip_updates()200
GZM_MAX_ALERTSNoDefault cap for alerts()100
GZM_USER_AGENTNoOutgoing UAtransport-gzm-mcp/0.1 (+https://github.com/Wiktor102/transport-gzm)
GZM_HTTP_TIMEOUTNoHTTP timeout in seconds10
GZM_MAX_VEHICLESNoDefault cap for vehicles()200
GZM_FEED_BASE_URLNoOverride the base URLhttps://gtfsrt.transportgzm.pl:5443/gtfsrt/gzm

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
healthA

Check whether the GZM live transit feed is reachable and report how old it is. Call this first if a query seems to return empty results — it can distinguish 'no vehicles right now' from 'upstream is down'.

feed_summaryA

Get the current counts of vehicles, trip updates and alerts in the live feed. Cheap; does not return full payloads.

vehiclesA

List live vehicle positions (buses, trams, trains) currently running. Use this when the user asks 'what's running', 'where is line X', or 'find a bus to Y'. Returns up to limit vehicles, newest first by timestamp.

vehicle_by_idA

Get a single vehicle's current position by its vehicle id or label (e.g. fleet number painted on the bus, or the entity id from a previous vehicles() call).

trip_updatesA

List live trip updates: scheduled vs predicted arrival times and any stop-skips. Use this for 'is line 6 delayed', 'what time does the next bus arrive', or 'is stop X skipped'.

next_arrivalsA

Get upcoming arrivals at a specific stop, across all routes, sorted by predicted arrival time. Equivalent to a digital departure board. Returns the 'minutes_from_now' field already computed for you.

alertsA

List active service alerts (planned works, delays, detours, stop closures). Use this for 'is the tram line broken?', 'any works today?', 'why is my bus late?'.

alert_by_idA

Get a single alert by entity id (e.g. from a previous alerts() result).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/Wiktor102/transport-gzm'

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