Skip to main content
Glama

Connections from A to B

rmv_trip
Read-onlyIdempotent

Plan RMV connections between two stops or places, returning departure and arrival times, transfers, realtime status, and a token to recheck a chosen trip.

Instructions

Searches connections in the RMV area between two stops or places, each with departure, arrival, duration, transfers, its legs (with trip_id), a status: ok, delayed, cancelled, unreachable (a transfer is missed or the first ride has left) or no_realtime, with the reasons, and a recheck_token for rmv_recheck. With arrive_by, the connections arriving last before time, and earlier ones to switch to. Use it to plan a route; to check a connection found before use rmv_recheck, for one stop's departures rmv_departures, for one ride with all stops rmv_journey. page_cursor.earlier and later page through more. Each call costs one or two requests of the access key's quota, and one more for each stop given by name (answer rate_limited with retry_after_seconds when it is used up); 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": "rmv_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-28T07:50 in Europe/Berlin. Default now.
countNoHow many connections to ask for, up to 6. Default 5.
modesNoOnly these modes, like `["regional_rail", "suburban"]`, or `rail` for all trains.
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, 0 to 11, 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
realtime_as_ofNoWhen RMV last updated its realtime data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 already declare readOnly/idempotent/non-destructive, and the description layers on non-obvious operational facts: each call consumes one or two quota requests plus one per name-resolved stop, exhaustion yields rate_limited with retry_after_seconds, and results carry a recheck_token consumed by rmv_recheck. The status vocabulary (ok, delayed, cancelled, unreachable, no_realtime) explains how realtime gaps surface, which no annotation conveys.

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, then alternatives, then cost — a sensible order and no filler sentences. However, the first sentence is a very long run-on clause stack enumerating result fields, which makes the most important information harder to scan than necessary.

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 9-parameter, high-traffic routing tool, the description covers the decision points an agent needs: when to use it versus siblings, how paging works, what statuses mean, and the quota/retry behavior. With an output schema present it does not need to enumerate return fields further, yet it still summarizes them usefully.

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 including arrive_by, page_cursor and modes. The description restates arrive_by behavior and page_cursor.earlier/later paging, and adds that name-based stops cost extra quota, but provides no syntax or format detail beyond the schema. 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?

Opens with a specific verb+resource+scope: "Searches connections in the RMV area between two stops or places", then enumerates what each connection contains (legs with trip_id, status values). It explicitly names the sibling tools it is not (rmv_recheck, rmv_departures, rmv_journey), so an agent can distinguish it without opening any schema.

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 a positive use case ("Use it to plan a route") and then routes three near-miss scenarios to the correct siblings: checking a found connection to rmv_recheck, one stop's departures to rmv_departures, one ride's stops to rmv_journey. It also states the polling policy ("ask every few minutes at most for the same trip"), covering when-not-to-call repeatedly.

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