Rail punctuality
get_rail_punctualityArrival 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
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Calendar days in the window (1-90), ending at the newest settled date. Defaults to 28. | |
| route | No | Origin and destination station codes, e.g. PAD-BRI. | |
| network | No | Rail network country code; only GB is recorded. | |
| station | No | Three-letter station code, e.g. PAD. | |
| operator | No | Operator code, e.g. GW. |