List Routes for Agency
onebusaway_list_routes_for_agencyList all routes operated by an agency. Returns route IDs, short names, and descriptions. Use to enumerate an agency's full service before searching for a specific route. Get agencyId values from onebusaway_list_agencies.
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": {
"agencyId": "<agencyId>"
},
"name": "onebusaway_list_routes_for_agency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agencyId | Yes | Agency ID (e.g. "1" for Metro Transit, "40" for Sound Transit). Use onebusaway_list_agencies to discover IDs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of routes returned for this agency. | |
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Guidance when no routes were found — verify the agency ID with onebusaway_list_agencies. | |
| routes | No | All routes operated by this agency. | |
| agencyId | No | Agency ID queried. | |
| limitExceeded | No | True if the upstream capped the route list — some routes were omitted. This endpoint has no pagination to retrieve them. |