Skip to main content
Glama

Departures at a stop

transitous_departures
Read-onlyIdempotent

Check what leaves or arrives at a stop soon, with lines, operators, realtime delays, cancellations, tracks, and alerts to plan the next step.

Instructions

Lists the next departures, or with arrivals the arrivals, at one stop 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 transitous_journey. Use it for what leaves a stop soon; to get from A to B with transfers use transitous_trip, for all stops of one ride transitous_journey. page_cursor.earlier and later of the result page through more. Counts against the limit of 20 requests per minute (answer rate_limited with retry_after_seconds); answers are cached for 60 seconds.

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": "transitous_departures"
  }
}

Input Schema

NameRequiredDescriptionDefault
stopYesThe stop: its ID, 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-27T07:50 at the stop. Default now.
countNoHow many departures to ask for, up to 100. Default 10. Transitous can return more.
modesNoOnly these modes, like `["subway", "bus"]`.
arrivalsNoArrivals instead of departures.
page_cursorNoThe page before or after: `page_cursor.earlier` or `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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • changedInput schema / properties / page_cursor / description
      Previous value: -"The page before or after, from `page_cursor` of a result."New value: +"The page before or after: `page_cursor.earlier` or `later` of the\nprevious result, with the same other arguments."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered; the description adds genuinely new behavior: a 20-requests-per-minute limit, a rate_limited answer carrying retry_after_seconds, 60-second result caching, and paging via page_cursor.earlier/later. It does not explain ordering guarantees or what happens when a stop name matches multiple stops, which keeps it from a 5.

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 the core action, then alternatives, then pagination and limits — a sensible order with no filler sentences. The long enumeration of returned fields is partly redundant given an output schema exists, which costs it a point.

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 read-only lookup with 6 parameters, full schema coverage, an output schema, and rich annotations, the description supplies everything an agent still needs: sibling routing, rate limiting with the retry field name, cache staleness, and pagination mechanics.

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; the description nonetheless adds workflow meaning by tying `arrivals` to the departures default and by explaining that page_cursor.earlier/later come from the previous result page and must be reused with the same other arguments. It adds context beyond the schema's field-level wording, though it does not discuss `count` or `modes` behavior.

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 from `time` on') and even enumerates what each entry contains (mode, line, operator, headsign, planned/realtime time, delay, track, cancellation, alerts, trip_id). It is immediately distinguishable from transitous_trip and transitous_journey, which are named.

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 explicit when-to-use ('what leaves a stop soon') and when-to-use-something-else, naming both alternatives and their conditions: transitous_trip for A-to-B with transfers, transitous_journey for all stops of one ride. Nothing 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.