get_stops_for_route
Retrieve all stops for a bus route in a specific direction, using the route designator and direction ID. Provides stop IDs for further predictions.
Instructions
Fetch all stops for a route heading in a specified direction. Use the 'stpid' field from a result as input to get_predictions_for_stop. Call get_directions(rt) first if you don't already have a valid direction id.
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": {
"rt": "<rt>",
"direction": "<direction>"
},
"name": "get_stops_for_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rt | Yes | Route designator, e.g. the 'rt' field from a get_routes() result. | |
| direction | Yes | Direction id for the route. Use the 'id' field (not 'name') from a get_directions(rt) result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |