Skip to main content
Glama

Rail punctuality

get_rail_punctuality
Read-onlyIdempotent

Arrival punctuality of one operator, station or route (origin and destination station codes, one row per operator running it, counting only arrivals at its final destination), summed over the calendar days ending at the newest settled service date: calls (arrival calls with a recorded outcome, arrived or cancelled), on_time (less than 5 minutes late), within_15 (less than 15 minutes late, on_time included) and cancelled. Covers Great Britain's national rail network only: any other network is not found. A day counts only once all its arrivals are settled, so to_date trails today; days_counted says how many dates of the window are in the sums. Give exactly one of operator, station or route.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_rail_punctuality"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoCalendar days in the window (1-90), ending at the newest settled date. Defaults to 28.
routeNoOrigin and destination station codes, e.g. PAD-BRI.
networkNoRail network country code; only GB is recorded.
stationNoThree-letter station code, e.g. PAD.
operatorNoOperator code, e.g. GW.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered by structured data. The description adds genuinely useful behavior beyond that: only arrivals at the final destination count, a date enters the sums only once all its arrivals are settled so to_date trails today, and days_counted reports the effective window size. A 3 reflects solid added context without stating permissions, rate limits or error behavior for non-GB networks beyond 'not found'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Every clause carries information and the purpose is front-loaded in the opening phrase, so there is little waste. However, the core definition is delivered as one long run-on sentence with deeply nested parentheses, which makes the metric list and the settlement caveat harder to parse than they need to be.

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?

With no output schema, the description carries the return shape itself and does so: calls, on_time, within_15, cancelled, days_counted and the trailing to_date. It also covers the two non-obvious semantic traps, final-destination-only counting and settlement lag. Nothing material is missing for an agent to call this correctly.

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 five parameters, which sets the baseline at 3. The description does add meaning beyond the schema, notably the mutual exclusion of operator/station/route and the fact that days_counted can be smaller than days because of settlement lag. Those additions are real but not tied to parameter-by-parameter semantics, so 3 is appropriate.

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 measure: arrival punctuality for exactly one of operator, station or route, summed over a rolling window of settled service days. It also states the scope limit ('Great Britain's national rail network only'), which separates it from the board/status siblings. It stops short of naming an explicit alternative tool, so it is clear but not sibling-routing.

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 a hard usage constraint in 'Give exactly one of operator, station or route', which prevents the most likely invocation error. It also sets the domain boundary by declaring that other networks are not found. There is no explicit when-to-use-versus-alternative guidance against siblings like get_station_board or get_train_status.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources