plan_journey
Plan a bus journey between two stops with a target arrival time, including direct or one-change routes and optional live disruption alerts.
Instructions
Plan a journey from stop_a to stop_b arriving by a given time. Supports direct routes and single changes.
Parameters: stop_a: Starting stop (NaPTAN code or name). stop_b: Destination stop (NaPTAN code or name). arrive_by: Target arrival time (HH:MM, 24h format). day: Optional day filter: mon, tue, wed, thu, fri, sat, sun. Defaults to today. max_changes: Maximum number of bus changes (0 = direct only, 1 = one change). Default 1. check_disruptions: If true (default), plans whose route or operator appears in the live SIRI-SX disruptions feed are annotated with a "disruption_alerts" list. Annotation never drops or reorders a plan and never changes the returned count; a feed failure degrades silently. At most the 15 earliest-arriving plans are returned, with or without annotation.
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": {
"stop_a": "<stop_a>",
"stop_b": "<stop_b>",
"arrive_by": "<arrive_by>"
},
"name": "plan_journey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | ||
| stop_a | Yes | ||
| stop_b | Yes | ||
| arrive_by | Yes | ||
| max_changes | No | ||
| check_disruptions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |