Skip to main content
Glama

Departures at a stop

rmv_departures
Read-onlyIdempotent

Lists next departures or arrivals at a stop in the RMV area with realtime times, delays, tracks, cancellations, and alerts, so you can see what leaves soon.

Instructions

Lists the next departures, or with arrivals the arrivals, at one stop in the RMV area from time on: each with mode, line, operator, headsign, planned and realtime time, delay, track, cancellation of the stop or the whole ride, and alerts, and the trip_id for rmv_journey. Use it for what leaves a stop soon; to get from A to B with transfers use rmv_trip, for all stops of one ride rmv_journey. page_cursor.later of the result pages on. Each call costs one request of the access key's quota, and one more for a stop given by name (answer rate_limited with retry_after_seconds when it is used up).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "stop": "<stop>"
    },
    "name": "rmv_departures"
  }
}

Input Schema

NameRequiredDescriptionDefault
stopYesThe stop: its ID like `3000010`, or a name that fits one stop.
timeNoFrom this time: RFC 3339 with an offset, or HH:MM today or a local time like 2026-11-28T07:50 in Europe/Berlin. Default now.
countNoHow many departures to ask for, up to 100. Default 10. The API can return more, like all that leave in the same minute.
modesNoOnly these modes, like `["suburban", "bus"]`.
arrivalsNoArrivals instead of departures.
page_cursorNoThe next page: `page_cursor.later` of the previous result, with the same other arguments.

Output Schema

NameRequiredDescriptionDefault
stopYes
arrivalsYesWhether these are arrivals instead of departures.
warningsYes
departuresYes
attributionYes
page_cursorYes
realtime_as_ofNoWhen RMV last updated its realtime data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (which already declare readOnly/idempotent/non-destructive) by disclosing quota economics: one request per call plus one extra when the stop is given by name, and the rate_limited/retry_after_seconds failure mode. It also explains pagination via `page_cursor.later` and warns the API can return more rows than `count`.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and alternatives, then cost and paging details; nearly every clause carries information (returned fields, sibling routing, quota, rate limits). The opening sentence is very long and densely packed, which slightly hurts scanability.

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?

For a 6-parameter read tool with an output schema, it covers purpose, alternatives, paging continuation, quota cost, and the rate-limit response shape. Even the returned field list is spelled out, so an agent can act without further inference.

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 baseline is 3, but the description adds meaning beyond the schema, notably that `arrivals` flips the direction and that `page_cursor` must come from the previous result with identical other arguments, plus the extra request cost tied to the `stop` parameter's name form.

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 and resource ("Lists the next departures... at one stop in the RMV area from `time` on") and enumerates the returned fields. It explicitly separates itself from siblings: "to get from A to B with transfers use rmv_trip, for all stops of one ride rmv_journey."

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

Usage Guidelines5/5

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

Gives the positive selection rule ("Use it for what leaves a stop soon") and names both alternatives with the exact condition that selects them (transfers -> rmv_trip, all stops of a ride -> rmv_journey). Nothing about when to choose this tool 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.