Skip to main content
Glama

Get Real-Time Stop Departures

transport-rest.transit.departures
Read-onlyIdempotent

Get real-time upcoming departures (line, direction, platform, delay) for a Berlin/Brandenburg transit stop within a time window. Stop ID comes from transport-rest.transit.search_locations or transport-rest.transit.nearby_stops. Data: v6.bvg.transport.rest (community HAFAS wrapper for BVG), no auth required, 100 req/min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
whenNoISO 8601 date-time to fetch departures for instead of now (e.g. "2026-09-01T08:00:00+02:00").
resultsNoMaximum number of departures to return (default 20, max 100).
stop_idYesStop/station ID to fetch departures for, obtained from transport-rest.location_search or transport-rest.nearby_stops (e.g. "900100003").
duration_minutesNoTime window in minutes to look ahead for departures (default 60, max 180).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint/idempotentHint annotations, the description discloses no-auth requirements, a 100 req/min rate limit, and that the data comes from a community HAFAS wrapper over BVG. This gives operational context that annotations cannot express and contradicts nothing in the structured metadata.

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 short sentences, with the core action front-loaded and every subsequent sentence adding a distinct fact: stop ID source, data provider, and auth/rate-limit context. No filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a complete parameter schema, an existing output schema, and safety annotations, the description supplies the remaining needed context: how to obtain the required stop_id, geographic scope, auth, and rate limits. An agent has everything it needs to select and invoke the tool correctly.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds value by giving the correct tool names for sourcing stop_id and framing the request as a time-window lookup. It also helps correct the schema's less precise reference to 'transport-rest.location_search'.

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?

Opens with a specific verb and resource ('Get real-time upcoming departures') and enumerates the returned fields (line, direction, platform, delay), so an agent can distinguish it from stop-discovery tools like search_locations and from journey planning. Geographic scoping to Berlin/Brandenburg further sharpens the purpose.

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?

The description tells the agent that stop_id must come from transport-rest.transit.search_locations or transport-rest.transit.nearby_stops, establishing the correct pipeline before calling. It does not explicitly contrast with plan_journey or state when not to use it, so it earns 4 rather than 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.