last_train_home
Find the last train back to your home station tonight. Optionally specify an earliest departure time to receive the last connection and a summary.
Instructions
Find the latest realistic train back to home_station tonight.
Use this tool when the user asks "when's the last train home from
?" or wants reassurance about staying out late. Looks at connections
departing around 22:00 (or after_time if given) and returns the
latest one, plus a human-readable summary.
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": {
"home_station": "<home_station>",
"current_station": "<current_station>"
},
"name": "last_train_home"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after_time | No | Optional earliest departure as ``HH:MM`` (24h, Europe/Zurich). Defaults to ``"22:00"``. | |
| home_station | Yes | Destination station (where you want to end up). | |
| current_station | Yes | Origin station (where you are now). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||