{"openapi":"3.1.0","info":{"title":"Road 511 (BYOK) API","version":"0.1.0","description":"Road 511 (BYOK) lets an AI assistant read your own Road 511 data through the Road 511 API with a key you supply (Road511 API key). Read-only: 10 tools (list_events, get_event, list_features, list_feature_types, list_jurisdictions, get_coverage, get_truck_restrictions_on_corridor, get_fuel_prices, get_jurisdiction_scorecard, get_service_status). The BYOK key travels with each request, is used for...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-road511.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-road511/docs"},"termsOfService":"https://connectorbay.com/byok-road511/terms"},"servers":[{"url":"https://byok-road511.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-road511/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_events":{"post":{"operationId":"list_events","summary":"List traffic events (incidents, construction, closures, weather alerts, restrictions) for a US state or Canadian provinc","description":"List traffic events (incidents, construction, closures, weather alerts, restrictions) for a US state or Canadian province, filtered by type, severity, cause, road or location. Use for \"What major incidents are active in Washington state right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"jurisdiction":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"State or province code such as 'WA' or 'ON' (comma-separated for up to 2). The free plan requires it.","title":"Jurisdiction"},"type":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Event type: incident, construction, closure, weather, special_event, advisory or restriction.","title":"Type"},"severity":{"anyOf":[{"enum":["minor","moderate","major","critical"],"type":"string"},{"type":"null"}],"default":null,"description":"Severity: minor, moderate, major or critical.","title":"Severity"},"cause":{"anyOf":[{"enum":["accident","disabled_vehicle","debris","spill","fire","police_activity","animal","congestion","hazard"],"type":"string"},{"type":"null"}],"default":null,"description":"Cause of the event.","title":"Cause"},"status":{"anyOf":[{"enum":["active","archived","all"],"type":"string"},{"type":"null"}],"default":"active","description":"Event status: active (default), archived or all.","title":"Status"},"road":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Road name to match, for example 'I-90'.","title":"Road"},"start_time_from":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only events starting at or after this ISO 8601 time.","title":"Start Time From"},"start_time_to":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only events starting at or before this ISO 8601 time.","title":"Start Time To"},"lat":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude for a radius search (use with lng).","title":"Lat"},"lng":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude for a radius search (use with lat).","title":"Lng"},"radius_km":{"anyOf":[{"maximum":1000,"minimum":0.1,"type":"number"},{"type":"null"}],"default":50,"description":"Radius in kilometres for a lat/lng search.","title":"Radius Km"},"bbox":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Bounding box as minLng,minLat,maxLng,maxLat.","title":"Bbox"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many results to return (the maximum depends on the plan).","title":"Limit"},"offset":{"anyOf":[{"maximum":10000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many results to skip, for paging (up to 10000).","title":"Offset"}},"title":"list_eventsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_event":{"post":{"operationId":"get_event","summary":"Get one traffic event by its id, with location, lanes affected, timing and last update. Use for \"Show the details of eve","description":"Get one traffic event by its id, with location, lanes affected, timing and last update. Use for \"Show the details of event WA-691391\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Event id as returned by list_events, for example 'WA-691391'.","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"get_eventArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_features":{"post":{"operationId":"list_features","summary":"List road features such as cameras, message signs, weather stations, truck parking, rest areas, bridges or restrictions,","description":"List road features such as cameras, message signs, weather stations, truck parking, rest areas, bridges or restrictions, filtered by type or group and location. Use for \"Which traffic cameras are within 20 km of downtown Seattle\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"jurisdiction":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"State or province code such as 'WA' or 'ON' (comma-separated for up to 2). The free plan requires it.","title":"Jurisdiction"},"type":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Feature type, for example 'camera' (see list_feature_types).","title":"Type"},"group":{"anyOf":[{"enum":["imagery","weather","road_conditions","traffic_performance","planned_events","alerts_advisories","wildfires","trucking","traveler_services","fuel_charging","borders","ferries","transit","tolls","static_infrastructure","operations"],"type":"string"},{"type":"null"}],"default":null,"description":"Feature group.","title":"Group"},"active":{"anyOf":[{"enum":["true","false"],"type":"string"},{"type":"null"}],"default":null,"description":"Only active (true) or inactive (false) features.","title":"Active"},"lat":{"anyOf":[{"maximum":90,"minimum":-90,"type":"number"},{"type":"null"}],"default":null,"description":"Latitude for a radius search (use with lng).","title":"Lat"},"lng":{"anyOf":[{"maximum":180,"minimum":-180,"type":"number"},{"type":"null"}],"default":null,"description":"Longitude for a radius search (use with lat).","title":"Lng"},"radius_km":{"anyOf":[{"maximum":1000,"minimum":0.1,"type":"number"},{"type":"null"}],"default":50,"description":"Radius in kilometres for a lat/lng search.","title":"Radius Km"},"bbox":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Bounding box as minLng,minLat,maxLng,maxLat.","title":"Bbox"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"How many results to return (the maximum depends on the plan).","title":"Limit"},"offset":{"anyOf":[{"maximum":10000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many results to skip, for paging (up to 10000).","title":"Offset"}},"title":"list_featuresArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_feature_types":{"post":{"operationId":"list_feature_types","summary":"List the feature types the API knows (cameras, signs, bridges and so on) so the type filter of list_features can be fill","description":"List the feature types the API knows (cameras, signs, bridges and so on) so the type filter of list_features can be filled in. Use for \"What kinds of road features does Road511 cover\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_feature_typesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_jurisdictions":{"post":{"operationId":"list_jurisdictions","summary":"List the states, provinces and federal sources covered, with last sync time. Use for \"Which jurisdictions does Road511 c","description":"List the states, provinces and federal sources covered, with last sync time. Use for \"Which jurisdictions does Road511 cover\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"scope":{"anyOf":[{"enum":["state","federal","regional","all"],"type":"string"},{"type":"null"}],"default":"state","description":"Which kind to list: state (default), federal, regional or all.","title":"Scope"}},"title":"list_jurisdictionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_coverage":{"post":{"operationId":"get_coverage","summary":"Show what data is held per jurisdiction and type: row counts and latest data times for events and features. Use for \"How","description":"Show what data is held per jurisdiction and type: row counts and latest data times for events and features. Use for \"How fresh is the Ontario data\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"jurisdiction":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Jurisdiction code such as 'ON'; leave out for all.","title":"Jurisdiction"}},"title":"get_coverageArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_truck_restrictions_on_corridor":{"post":{"operationId":"get_truck_restrictions_on_corridor","summary":"List truck restrictions (bridges, weight and height limits, closures) within a buffer around the straight corridor betwe","description":"List truck restrictions (bridges, weight and height limits, closures) within a buffer around the straight corridor between two points. Use for \"What truck restrictions lie between Seattle and Spokane\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"from_lat":{"description":"Start latitude.","maximum":90,"minimum":-90,"title":"From Lat","type":"number"},"from_lng":{"description":"Start longitude.","maximum":180,"minimum":-180,"title":"From Lng","type":"number"},"to_lat":{"description":"End latitude.","maximum":90,"minimum":-90,"title":"To Lat","type":"number"},"to_lng":{"description":"End longitude.","maximum":180,"minimum":-180,"title":"To Lng","type":"number"},"buffer_km":{"anyOf":[{"maximum":50,"minimum":0.1,"type":"number"},{"type":"null"}],"default":5,"description":"Corridor half-width in kilometres (up to 50).","title":"Buffer Km"},"jurisdiction":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"State or province code such as 'WA' or 'ON' (comma-separated for up to 2). The free plan requires it.","title":"Jurisdiction"},"limit":{"anyOf":[{"maximum":2000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"How many results to return (1 to 2000).","title":"Limit"}},"required":["from_lat","from_lng","to_lat","to_lng"],"title":"get_truck_restrictions_on_corridorArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_fuel_prices":{"post":{"operationId":"get_fuel_prices","summary":"Get regional fuel price history or the latest prices by jurisdiction, country and fuel type. Use for \"What is the latest","description":"Get regional fuel price history or the latest prices by jurisdiction, country and fuel type. Use for \"What is the latest regular gasoline price in Washington\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"jurisdiction":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Jurisdiction code such as 'WA'.","title":"Jurisdiction"},"country":{"anyOf":[{"enum":["US","CA"],"type":"string"},{"type":"null"}],"default":null,"description":"Country code.","title":"Country"},"fuel_type":{"anyOf":[{"enum":["regular","midgrade","premium","diesel"],"type":"string"},{"type":"null"}],"default":null,"description":"Fuel grade.","title":"Fuel Type"},"latest":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True to return only the newest price per region.","title":"Latest"},"from_date":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only prices on or after this date (YYYY-MM-DD).","title":"From Date"},"to_date":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only prices on or before this date (YYYY-MM-DD).","title":"To Date"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return.","title":"Limit"}},"title":"get_fuel_pricesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_jurisdiction_scorecard":{"post":{"operationId":"get_jurisdiction_scorecard","summary":"Rank jurisdictions by data score, incident volume, clearance time, source uptime or construction overrun. Use for \"Which","description":"Rank jurisdictions by data score, incident volume, clearance time, source uptime or construction overrun. Use for \"Which state has the fastest incident clearance times\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"country":{"anyOf":[{"enum":["US","CA"],"type":"string"},{"type":"null"}],"default":null,"description":"Country code.","title":"Country"},"jurisdiction":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only this jurisdiction code.","title":"Jurisdiction"},"rank_by":{"anyOf":[{"enum":["score","incident_volume","avg_clearance_minutes","source_uptime","construction_overrun_avg_days"],"type":"string"},{"type":"null"}],"default":"score","description":"Ranking field.","title":"Rank By"},"order":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"default":"desc","description":"Sort order.","title":"Order"},"limit":{"anyOf":[{"maximum":200,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many rows (1 to 200).","title":"Limit"}},"title":"get_jurisdiction_scorecardArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_service_status":{"post":{"operationId":"get_service_status","summary":"Show the public status snapshot of the Road511 service and its data sources. Use for \"Is Road511 up and are its sources ","description":"Show the public status snapshot of the Road511 service and its data sources. Use for \"Is Road511 up and are its sources fresh\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_service_statusArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}