Get Travel Times
wsdot_get_travel_timesReturns current vs. average travel times for named WA highway corridors (I-5, I-405, I-90, SR 520, SR 167, and around Vancouver I-205 and SR 14). Use for "how congested is I-5?" or commute time estimates. A route designation filter ("I-5", "5", "SR 520") returns every corridor that starts or ends on that route or writes it in its name ("via 520"), never digits inside another number. Any other filter text matches corridor names ("Everett"), and the first number in it, read as a route, also matches every corridor that starts or ends on that route, in both directions — "I-405 southbound" returns northbound I-405 corridors too, since the direction word is not applied. When current time exceeds average, the corridor is congested. Results are paged — pass offset/limit to page through the full set.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wsdot_get_travel_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum corridors to return in this page. Defaults to 50; a larger value returns at most 500 and says so. | |
| route | No | Optional filter. A route designation — an optional route type (I, SR, US) and the route number, such as "I-5", "5", "005", "SR 520", or "520" — matches every corridor whose start or end point is on that route, whichever form the feed reports, or whose name writes the route ("I-5", "SR14", "via 520"). It never matches digits inside another number: "5" does not match I-405 or SR 522. Any other text matches the corridor name as a case-insensitive substring, so "Everett" finds the Seattle-Everett corridors and "1A" the 1A segments. The first number in such text, read as a route with any route type written just before it, also matches every corridor whose start or end point is on that route, in both directions — "I-405 southbound" returns northbound I-405 corridors too, since the direction word is not applied. Omit to return all corridors. | |
| offset | No | Zero-based index of the first corridor to return, for paging. Defaults to 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Informational note about the page window, or guidance when no corridors matched the route filter or the offset ran past the end. Ends with the applied limit when a larger one was clamped. | |
| hasMore | No | True when more corridors remain beyond the current page. | |
| corridors | No | Travel time corridors matching the filter. | |
| nextOffset | No | Offset to pass to retrieve the next page, or null when this is the last page. | |
| totalCount | No | Total corridors matching the filter across all pages (not just this page). | |
| routeFilter | No | The route name filter applied (lowercased), or absent if no filter was used. |