get_predictions_for_stop
Retrieve real-time bus arrival predictions for a specific stop. Provide route, stop ID, and optionally limit results to the latest or top predictions.
Instructions
Fetch the top number of predictions or just the latest one if not specified for buses on a specific stop. This is real-time data and is always live, never cached.
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": {
"stpid": "<stpid>",
"rt": "<rt>",
"top": "<top>"
},
"name": "get_predictions_for_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rt | Yes | Route designator, e.g. the 'rt' field from a get_routes() result. | |
| top | Yes | Maximum number of predictions to return. | |
| stpid | Yes | Stop id, e.g. the 'stpid' field from a get_stops_for_route result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |