Skip to main content
Glama

rail_departures

Read-onlyIdempotent

Fetch real-time train departures or arrivals for a UK station via its 3-letter CRS code, showing expected times, platforms, delays, cancellations, and station messages.

Instructions

Live trains leaving (or arriving at, with board="arrivals" or "both") a station: expected times, platforms, cancellations and delay reasons from National Rail, plus station messages. crs_code is the 3-letter code, e.g. LDS for Leeds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boardNodepartures
limitNo
crs_codeYes
minutes_aheadNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, and open-world behavior. The description adds useful behavioral detail about the data returned—expected times, platforms, cancellations, delay reasons, and station messages—which helps set expectations for the live National Rail feed.

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?

Two compact sentences, front-loaded with what the tool does and then the key parameter detail. No filler or repetition.

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

Completeness3/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 need not be explained, and annotations cover safety. However, the description omits the semantics of limit and minutes_ahead and does not help an agent choose between this and sibling rail tools, leaving meaningful gaps.

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 description coverage is 0%, so the description must carry parameter meaning. It explains crs_code format with an example and board values, but leaves limit and minutes_ahead undocumented, which is only partial compensation for the coverage gap.

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 states a specific verb and resource: live trains leaving or arriving at a station, with expected times, platforms, cancellations, and delay reasons. It does not explicitly differentiate from siblings like train_service or disruptions, though the rail and station focus is clear.

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?

The description gives clear context: use it for live departure or arrival boards at a station, and it explains the board parameter for switching to arrivals or both. It does not provide explicit when-not-to-use conditions or name alternative tools, so it falls short of a 5.

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