next_arrivals
Retrieve upcoming arrivals at any stop, sorted by predicted time. Filter by route or limit results for a real-time departure board.
Instructions
Get upcoming arrivals at a specific stop, across all routes, sorted by predicted arrival time. Equivalent to a digital departure board. Returns the 'minutes_from_now' field already computed for you.
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_id": "<stop_id>"
},
"name": "next_arrivals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum arrivals to return (default 20). | |
| stop_id | Yes | GTFS stop id, e.g. 's_1234'. | |
| route_id | No | Optional: only show arrivals on this route. |