plan_journey
Plan a bus journey from a start stop to a destination, arriving by a specified time. Supports direct routes or one change, with optional day filter.
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.
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |