Search Routes by Name or Number
onebusaway_search_routesSearch for routes by name or number. Returns matching routes with IDs. Use to resolve a route short name (e.g. "44") to a route ID for schedule or vehicle lookups with onebusaway_get_vehicles or onebusaway_get_schedule_for_route.
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": {
"query": "<query>"
},
"name": "onebusaway_search_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Route name or number (e.g. "44", "Link", or "RapidRide"). | |
| maxCount | No | Maximum number of results to return. A positive integer, at most 100. Defaults to 10. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The maxCount limit applied to truncated results. | |
| count | No | Number of routes returned. | |
| error | No | Present when the call failed. Absent on success. | |
| query | No | Route name/number query sent to the API. | |
| shown | No | Number of routes returned when results were truncated. | |
| notice | No | Guidance when no routes matched — e.g. try onebusaway_find_routes with coordinates, or onebusaway_list_routes_for_agency. | |
| routes | No | Routes matching the search query. | |
| truncated | No | True when matching routes exceeded maxCount. | |
| limitExceeded | No | True if more routes match than were returned; raise maxCount or refine the query to see all. |