Skip to main content
Glama

One ride with all stops

transitous_journey
Read-onlyIdempotent

Retrieve a vehicle trip by trip_id to follow its route and inspect line, operator, alerts, cancellations, and all stops with planned/realtime times, delays, tracks, and cancelled stops.

Instructions

Returns one ride (a vehicle's trip) with line, operator, headsign, whether it is cancelled, its alerts, and every stop with planned and realtime times, delays, tracks and cancelled stops. Takes the trip_id of a departure from transitous_departures or of a leg from transitous_trip. Use it to follow a train along its route or to see where a delay starts. 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": {
      "trip_id": "<trip_id>"
    },
    "name": "transitous_journey"
  }
}

Input Schema

NameRequiredDescriptionDefault
trip_idYesThe trip ID, from `trip_id` of a departure of `transitous_departures` or a leg of `transitous_trip`, as it is.

Output Schema

NameRequiredDescriptionDefault
lineNo
modeYes
stopsYes
alertsNo
trip_idYes
headsignNo
operatorNo
realtimeYes
warningsYes
cancelledYesWhether the trip is cancelled.
attributionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • changedInput schema / properties / trip_id / description
      Previous value: -"The trip ID, from `trip_id` of a departure or leg."New value: +"The trip ID, from `trip_id` of a departure of\n`transitous_departures` or a leg of `transitous_trip`, as it is."
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/openWorld annotations, the description discloses the rate limit (20 req/min), the failure contract ("answer rate_limited with retry_after_seconds") and the 60-second cache lifetime. Those are non-obvious operational traits an agent must know. It does not state whether the cache means slightly stale realtime values, and no auth requirements are mentioned, keeping it short of 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?

Three front-loaded sentences: payload, then ID provenance and use case, then limits. It is dense and readable, though the long enumeration of return fields partially duplicates the output schema and could be trimmed.

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 one-parameter read tool with an output schema already defining the response, the description covers purpose, ID sourcing, rate limiting, error shape and caching. An agent can call it correctly and handle its failure mode without further information.

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?

There is a single required parameter with 100% schema description coverage, so the baseline is 3. The description restates the provenance rule (departure trip_id or leg trip_id) that the schema already contains, and the phrase "as it is" only faintly warns against reformatting the ID.

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?

"Returns one ride (a vehicle's trip)" names a specific verb and resource, then enumerates the payload (line, operator, headsign, cancellation, alerts, every stop with planned/realtime times, delays, tracks). It is clearly distinguishable from transitous_departures and transitous_trip, which it names as the sources of the required ID.

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?

It gives concrete use cases ("follow a train along its route", "see where a delay starts") and states exactly where the trip_id must come from, which routes the agent correctly between the three siblings. It stops short of an explicit exclusion, e.g. saying not to use this for a multi-leg origin-to-destination query.

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