Skip to main content
Glama

Train status

train_status
Read-only

Retrieve current train status by train number to view delays, reported station, next stop, GPS location, speed, causes, and stop-by-stop timetable.

Instructions

Current status of a train by number: delay, last reported station, next stop, GPS location and speed, delay causes, and the stop-by-stop timetable with actual/estimated times.

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": {
      "train_number": "<train_number>"
    },
    "name": "train_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDeparture date YYYY-MM-DD (default: the latest/current run)
train_numberYesTrain number, e.g. 9 for IC 9. For commuter trains use the number from station_board.
include_pass_throughNoAlso list stations the train passes without a passenger stop

Output Schema

NameRequiredDescriptionDefault
viaNo
stopsYes
trainYes
originYes
categoryYes
locationNo
nextStopNo
operatorYes
cancelledYes
delayCausesNo
destinationYes
trainNumberYes
currentDelayNo
lastReportedNo
departureDateYes
runningCurrentlyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered. The description adds real behavioral context beyond that: the data is live-ish ('current status', 'last reported station') and the timetable mixes actual with estimated times, which warns the agent that values may be provisional or stale. It does not address freshness thresholds or what happens for a train with no current run.

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?

A single front-loaded sentence: the resource and lookup key come first, followed by the payload enumeration. It is dense but readable. The long field list is partly redundant with the existing output schema, which keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description needn't explain return shapes, and it still sketches the payload so the agent knows what the call yields. Annotations cover the read-only, open-world profile. The remaining gap is operational: no guidance on stale/missing GPS data, on using the date parameter for past runs, or on how this pairs with sibling tools.

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 all three parameters — train_number, date, include_pass_through — are already documented with patterns, defaults, and examples. The description echoes 'by number' but adds nothing about date selection (historical vs. current run) or what pass-through stations mean. Baseline 3 is appropriate when the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource and scope: 'Current status of a train by number', then enumerates what that status includes (delay, last reported station, next stop, GPS, speed, delay causes, timetable). An agent can distinguish this from train_connections or station_board without opening a schema. It stops short of naming a sibling explicitly, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'current status ... by number' — this is the tool for real-time state of one known train. There is no explicit when-not guidance, no mention of when to prefer train_connections, station_board, or a dated timetable query. The useful hint about getting commuter train numbers from station_board lives in the schema, not the description.

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