Skip to main content
Glama

One ride with all stops

rmv_journey
Read-onlyIdempotent

Retrieves a ride's full route with line, operator, stops, planned and realtime times, delays, tracks, cancellations, and alerts so you can follow a train or locate where a delay begins.

Instructions

Returns one ride (a vehicle's trip) in the RMV area 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 rmv_departures or of a leg from rmv_trip. Use it to follow a train along its route or to see where a delay starts. One request of the access key's quota (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": {
      "trip_id": "<trip_id>"
    },
    "name": "rmv_journey"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
lineNo
modeYes
stopsYes
alertsNo
trip_idYes
headsignNo
operatorNo
realtimeYes
warningsYes
cancelledYesWhether the trip is cancelled.
attributionYes
realtime_as_ofNoWhen RMV last updated its realtime data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds useful behavioral context beyond them: quota consumption and the rate_limited/retry_after_seconds failure mode, plus what the payload contains (including cancelled stops and alerts).

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 tight sentences: payload contents first, input source second, intended use third, quota caveat last. No redundant wording and the primary purpose is front-loaded.

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?

An output schema exists, so return values needn't be spelled out, and the description still covers purpose, input provenance, intended use, and quota behavior. Nothing an agent needs to invoke it correctly is missing.

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% and the single param is already documented there. The description repeats the same provenance guidance ('trip_id of a departure from rmv_departures or of a leg from rmv_trip') without adding format or edge-case detail, so baseline 3 applies.

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 ('Returns one ride (a vehicle's trip) in the RMV area') and enumerates the returned fields, plus names the sibling tools that supply the trip_id. An agent can distinguish it from rmv_departures and rmv_trip without opening a schema.

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?

Gives explicit when-to-use guidance ('follow a train along its route or to see where a delay starts') and clarifies the input source (a departure from rmv_departures or a leg from rmv_trip). It stops short of stating when not to use it or naming a competing alternative, so not a full 5.

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