Find a train
find_trainUse to find a train when you do not have its id: search by destination, time window or headcode. Returns every candidate with a match quality, never a silent choice. A station code such as MAN or the full name is an exact match, due_now trains are included, and departed trains are hidden unless include_departed is true. Use get_departures for a general board and get_train for one known train. Read only. Predictions are unofficial and may be wrong. Station screens are the official source.
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": "find_train"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ISO 8601 with offset, for example 2026-11-16T08:00:00+00:00. | |
| before | No | ISO 8601 with offset, for example 2026-11-16T08:00:00+00:00. | |
| station | No | Station code, for example EUS or PAD. Default EUS. Call list_stations to see which are live. | |
| headcode | No | Train headcode, for example 1H16. | |
| destination | No | Substring or station code, for example MAN. | |
| include_departed | No | true also returns trains with a recorded actual departure. |