Skip to main content
Glama

Get Travel Times

wsdot_get_travel_times
Read-only

Returns 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

NameRequiredDescriptionDefault
limitNoMaximum corridors to return in this page. Defaults to 50; a larger value returns at most 500 and says so.
routeNoOptional 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.
offsetNoZero-based index of the first corridor to return, for paging. Defaults to 0.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoInformational 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.
hasMoreNoTrue when more corridors remain beyond the current page.
corridorsNoTravel time corridors matching the filter.
nextOffsetNoOffset to pass to retrieve the next page, or null when this is the last page.
totalCountNoTotal corridors matching the filter across all pages (not just this page).
routeFilterNoThe route name filter applied (lowercased), or absent if no filter was used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum corridors to return in this page (1–500). Defaults to 50. A large page ends sooner, at the 24,000-byte response budget."New value: +"Maximum corridors to return in this page. Defaults to 50; a larger value returns at most 500 and says so."
    • removedInput schema / properties / limit / maximum
      Removed value: -500
    • changedInput schema / properties / route / description
      Previous value: -"Optional filter. A route designation — \"I-5\", \"5\", \"005\", \"SR 520\", \"520\" — matches every corridor whose start or end point is on that route, whichever form the feed reports. Any text also matches the corridor name as a case-insensitive substring, so \"Everett\" finds the Seattle-Everett corridors. Omit to return all corridors."New value: +"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."
    • changedOutput schema / properties / notice / description
      Previous value: -"Informational note about the page window, or guidance when no corridors matched the route filter or the offset ran past the end."New value: +"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."
  2. Changed2 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum corridors to return in this page (1–500). Defaults to 50."New value: +"Maximum corridors to return in this page (1–500). Defaults to 50. A large page ends sooner, at the 24,000-byte response budget."
    • addedInput schema / properties / route / maxLength
      Added value: +200
  3. Changed2 schema fields changed
    • removedOutput schema / properties / nextOffset / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / nextOffset / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  4. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "corridors",
      +      "totalCount",
      +      "nextOffset",
      +      "hasMore"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `api_unavailable`: WSDOT Traffic API is unreachable or returns a non-2xx response after retries. `invalid_access_code`: WSDOT rejected the request because WSDOT_ACCESS_CODE is missing, invalid, or not registered. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "api_unavailable",
      +            "invalid_access_code"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "corridors",
      -  "totalCount",
      -  "nextOffset",
      -  "hasMore"
      -]
  5. Changed7 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Maximum corridors to return in this page (1–500). Defaults to 50.",
      +  "maximum": 500,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Zero-based index of the first corridor to return, for paging. Defaults to 0.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / hasMore
      Added value: +{
      +  "description": "True when more corridors remain beyond the current page.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / nextOffset
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Offset to pass to retrieve the next page, or null when this is the last page."
      +}
    • changedOutput schema / properties / notice / description
      Previous value: -"Optional guidance when no corridors matched the route filter. Absent when results are returned."New value: +"Informational note about the page window, or guidance when no corridors matched the route filter or the offset ran past the end."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Total number of corridors returned."New value: +"Total corridors matching the filter across all pages (not just this page)."
    • changedOutput schema / required
      Previous value: -[
      -  "corridors",
      -  "totalCount"
      -]New value: +[
      +  "corridors",
      +  "totalCount",
      +  "nextOffset",
      +  "hasMore"
      +]
  6. Changed4 schema fields changed
    • changedInput schema / properties / route / description
      Previous value: -"Optional text filter applied to corridor names (e.g. \"I-5\", \"SR 520\", \"I-405\"). Case-insensitive. Omit to return all corridors."New value: +"Optional filter. A route designation — \"I-5\", \"5\", \"005\", \"SR 520\", \"520\" — matches every corridor whose start or end point is on that route, whichever form the feed reports. Any text also matches the corridor name as a case-insensitive substring, so \"Everett\" finds the Seattle-Everett corridors. Omit to return all corridors."
    • changedOutput schema / properties / corridors / items / properties / averageTimeInMinutes / description
      Previous value: -"Historical average travel time in minutes."New value: +"Historical average travel time in minutes. Absent when WSDOT reports no measurement for the corridor."
    • changedOutput schema / properties / corridors / items / properties / currentTimeInMinutes / description
      Previous value: -"Current travel time in minutes."New value: +"Current travel time in minutes. Absent when WSDOT reports no measurement for the corridor — a reversible express lane closed in this direction reports none."
    • changedOutput schema / properties / corridors / items / properties / delayInMinutes / description
      Previous value: -"Delay above average in minutes. Positive means congestion."New value: +"Delay above average in minutes. Positive means congestion. Absent when either travel time is unavailable."
  7. Changed3 schema fields changed
    • changedOutput schema / properties / corridors / items / properties / endPoint / properties / direction / description
      Previous value: -"Travel direction."New value: +"Travel direction code: N (north), S (south), E (east), W (west)."
    • changedOutput schema / properties / corridors / items / properties / startPoint / properties / direction / description
      Previous value: -"Travel direction."New value: +"Travel direction code: N (north), S (south), E (east), W (west)."
    • changedOutput schema / properties / corridors / items / properties / timeUpdated / description
      Previous value: -"When the travel time data was last updated."New value: +"When the travel time data was last updated (ISO 8601)."
  8. Changed2 schema fields changed
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Optional guidance when no corridors matched the route filter. Absent when results are returned.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / routeFilter
      Added value: +{
      +  "description": "The route name filter applied (lowercased), or absent if no filter was used.",
      +  "type": "string"
      +}
  9. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only supply readOnlyHint=true, so the description carries the rest: it defines congestion ("when current time exceeds average, the corridor is congested") and discloses paging via offset/limit, both non-obvious behaviors. It omits auth, rate limits, and freshness/update cadence, so it is not fully complete for a live-feed tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and examples are front-loaded well, but the long middle section on route filtering and direction-agnostic matching duplicates the schema's route description almost verbatim, which is wasted space in the tool description. The content is accurate but not economical.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 3 optional parameters, full schema coverage, and an output schema covering return values, the description supplies what is missing: congestion interpretation, corridor coverage, and paging guidance. Nothing critical for correct invocation is absent, though feed freshness and probe behavior are unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the schema already spells out route-matching rules, the digit-boundary behavior, and the offset/limit defaults and caps in detail. The description's version of the route filter semantics largely restates the schema rather than adding meaning, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Returns current vs. average travel times") and names the exact corridors covered (I-5, I-405, I-90, SR 520, SR 167, I-205, SR 14). The two quoted example questions make the tool's output tangible and distinguish it from the ferry, border-wait, and mountain-pass siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear usage contexts ("how congested is I-5?" or commute estimates) and explains the paging contract, so an agent knows when to reach for it. It stops short of naming an alternative tool or stating when NOT to use it, which keeps it below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.