train_delay_stats
Delay statistics for a specific train (e.g. ICE 577): per-station on-time percentage, average/max delay and cancellation rate. Useful to answer "how reliable is this exact train?". Returns a compact station list (default 15, max 50) for token efficiency.
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": {
"product": "<product>",
"train_number": "<train_number>"
},
"name": "train_delay_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Aggregation period (default: weekly) | weekly |
| product | Yes | Train product: "ice", "ic", or "ec" | |
| train_number | Yes | Train number (digits only), e.g. "577" | |
| station_limit | No | Max stations to return (default 15, max 50). Overall stats always included. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||