Get bus arrivals
get_bus_arrivalsRetrieve current predicted arrivals for all city bus routes at a specified stop by city code and stop ID, helping users check upcoming buses and plan which one to catch.
Instructions
Get current predicted arrivals for all city bus routes at a stop. For a single route at a stop, use get_route_arrivals_at_stop. observedAt is query time.
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": {
"cityCode": "<cityCode>",
"nodeId": "<nodeId>"
},
"name": "get_bus_arrivals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-1000); defaults to 1 | |
| nodeId | Yes | City bus stop ID (nodeid) returned by find_bus_stops or find_nearby_bus_stops | |
| cityCode | Yes | TAGO city code from a city-list tool, including list_pm_providers for personal mobility | |
| pageSize | No | Maximum items per page (1-100); defaults to 10 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| sourceUrl | Yes | ||
| catalogUrl | Yes | ||
| observedAt | Yes | ||
| totalCount | Yes | ||
| sourceService | Yes |