Skip to main content
Glama

Connections from A to B

transitous_trip
Read-onlyIdempotent

Plan or check a route between two stops or places, returning connections with realtime status, delays, cancellations, transfers, and legs; use arrive_by to find arrivals before a time.

Instructions

Searches connections between two stops or places, each with departure, arrival, duration, transfers, its legs (with trip_id) and a status: ok, delayed, cancelled, unreachable (a transfer is missed or the first ride has left) or no_realtime, with the reasons. With arrive_by, the connections arriving last before time, and earlier ones to switch to. Use it to plan or check a route; for one stop's departures use transitous_departures, for one ride with all stops transitous_journey. page_cursor.earlier and later page through more. Counts against the limit of 20 requests per minute (answer rate_limited with retry_after_seconds); each call is also one of the plan requests of the daily limit (default 720, answer daily_limit). Answers are cached for 60 seconds; ask every few minutes at most for the same trip.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "transitous_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesWhere to, like `from`.
fromYesWhere from: a stop ID, a stop name that fits one stop, or `LAT,LON`.
timeNoDepart at this time, or arrive by it with `arrive_by`: RFC 3339 with an offset, or HH:MM today or a local time like 2026-11-27T07:50 at the origin, or at the destination with `arrive_by`. Default now.
countNoHow many connections to ask for, up to 20. Default 5. Transitous can return more; all are returned, so the page cursors skip none.
modesNoOnly these transit modes, like `["rail", "subway"]`.
arrive_byNoArrive by `time`. The connections arriving last before it come with earlier ones, to switch to.
page_cursorNoThe page before or after: `page_cursor.earlier` or `later` of the previous result, with the same other arguments.
max_transfersNoThe most transfers, like 0 for direct connections only. Default: no limit.
realtime_routingNoRoute on the realtime timetable: cancelled rides and missed transfers then drop out instead of being reported.

Output Schema

NameRequiredDescriptionDefault
toYes
fromYes
warningsYes
attributionYes
connectionsYesSorted by departure.
page_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.2
    • changedInput schema / properties / max_transfers / description
      Previous value: -"The most transfers."New value: +"The most transfers, like 0 for direct connections only. Default: no\nlimit."
    • 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
Behavior5/5

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

Annotations only declare it a safe idempotent read, but the description supplies the operational envelope: a 20-requests-per-minute cap, a daily plan-request budget (default 720), the specific error envelopes (rate_limited with retry_after_seconds, daily_limit), and a 60-second cache. It also explains what realtime_routing changes semantically — cancelled rides and missed transfers drop out instead of being reported.

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 routing to siblings before the operational detail, and every sentence carries information. It is a single dense run-on paragraph, though, which makes the rate-limit and caching details harder to scan than they need to be.

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 nine-parameter planning tool it covers everything an agent needs: routing alternatives, result status semantics, paging via page_cursor.earlier/later, rate and daily limits with error names, and cache staleness. An output schema exists, yet the description still summarizes the result shape without duplicating it excessively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all nine parameters, and most of the description's parameter talk (arrive_by, page_cursor) restates the schema. The added framing that earlier connections exist 'to switch to' under arrive_by is a small value-add, so the 3 baseline is right.

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 ('Searches connections between two stops or places') and enumerates the returned fields, including the status vocabulary. It explicitly distinguishes itself from both siblings by naming transitous_departures for single-stop departures and transitous_journey for one ride.

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 an explicit when-to-use statement ('plan or check a route') plus named alternatives with the exact condition that selects each. It also advises on calling frequency for the same trip ('ask every few minutes at most').

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