{"openapi":"3.1.0","info":{"title":"One Bus Away Puget Sound (BYOK) API","version":"0.1.0","description":"One Bus Away Puget Sound (BYOK) lets an AI assistant read your own One Bus Away Puget Sound data through the One Bus Away Puget Sound API with a key you supply (API key). Read-only: 11 tools (list_agencies_with_coverage, get_agency, list_routes_for_agency, get_route, get_stops_for_route, get_stop, search_stops_near_location, search_routes_near_location, get_stop_arrivals, get_stop_schedule,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-onebusaway-puget-sound.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-onebusaway-puget-sound/docs"},"termsOfService":"https://connectorbay.com/byok-onebusaway-puget-sound/terms"},"servers":[{"url":"https://byok-onebusaway-puget-sound.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-onebusaway-puget-sound/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_agencies_with_coverage":{"post":{"operationId":"list_agencies_with_coverage","summary":"List the transit agencies the Puget Sound API covers, each with the centre and size of its coverage area. Use for \"Which","description":"List the transit agencies the Puget Sound API covers, each with the centre and size of its coverage area. Use for \"Which transit agencies does the Puget Sound OneBusAway API cover\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_agencies_with_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_agency":{"post":{"operationId":"get_agency","summary":"Get one transit agency: name, website, phone, fare page, language and time zone. Use for \"Give me the details of agency ","description":"Get one transit agency: name, website, phone, fare page, language and time zone. Use for \"Give me the details of agency 1 (King County Metro)\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Agency id such as 1 (see list_agencies_with_coverage).","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"get_agencyArguments","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_routes_for_agency":{"post":{"operationId":"list_routes_for_agency","summary":"List every route of one agency with short and long name, description, colours and type. Use for \"List the routes of Soun","description":"List every route of one agency with short and long name, description, colours and type. Use for \"List the routes of Sound Transit (agency 40)\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Agency id such as 40.","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"list_routes_for_agencyArguments","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_route":{"post":{"operationId":"get_route","summary":"Get one route by id: names, description, colours, type and web page. Use for \"What is route 1_100224\".","description":"Get one route by id: names, description, colours, type and web page. Use for \"What is route 1_100224\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Route id such as 1_100224.","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"get_routeArguments","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_stops_for_route":{"post":{"operationId":"get_stops_for_route","summary":"Get the stops that serve a route, grouped by direction of travel, with the stop details. Use for \"Which stops does route","description":"Get the stops that serve a route, grouped by direction of travel, with the stop details. Use for \"Which stops does route 1_100224 serve\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Route id such as 1_100224.","maxLength":200,"title":"Id","type":"string"},"include_polylines":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to include the route path polylines (default false here to keep answers small).","title":"Include Polylines"},"time":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Service date as YYYY-MM-DD or epoch milliseconds (default today).","title":"Time"}},"required":["id"],"title":"get_stops_for_routeArguments","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_stop":{"post":{"operationId":"get_stop","summary":"Get one stop by id: name, code, location, direction, wheelchair boarding and the routes that serve it. Use for \"What is ","description":"Get one stop by id: name, code, location, direction, wheelchair boarding and the routes that serve it. Use for \"What is stop 1_75403\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Stop id such as 1_75403.","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"get_stopArguments","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/search_stops_near_location":{"post":{"operationId":"search_stops_near_location","summary":"Find stops near a latitude and longitude, optionally narrowed to a rider-facing stop code. Use for \"Which stops are near","description":"Find stops near a latitude and longitude, optionally narrowed to a rider-facing stop code. Use for \"Which stops are near the University of Washington\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lat":{"description":"Latitude of the search centre.","maximum":90,"minimum":-90,"title":"Lat","type":"number"},"lon":{"description":"Longitude of the search centre.","maximum":180,"minimum":-180,"title":"Lon","type":"number"},"radius":{"anyOf":[{"maximum":20000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Search radius in metres (optional).","title":"Radius"},"query":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"A stop code (such as 75403) to look for near the location.","title":"Query"},"max_count":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Maximum number of results (the service also applies its own upper limit).","title":"Max Count"}},"required":["lat","lon"],"title":"search_stops_near_locationArguments","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/search_routes_near_location":{"post":{"operationId":"search_routes_near_location","summary":"Find routes serving the area around a latitude and longitude, optionally by route short name such as 44. Use for \"Which ","description":"Find routes serving the area around a latitude and longitude, optionally by route short name such as 44. Use for \"Which routes serve the area around the University of Washington\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lat":{"description":"Latitude of the search centre.","maximum":90,"minimum":-90,"title":"Lat","type":"number"},"lon":{"description":"Longitude of the search centre.","maximum":180,"minimum":-180,"title":"Lon","type":"number"},"radius":{"anyOf":[{"maximum":20000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Search radius in metres (optional).","title":"Radius"},"query":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"A route short name (such as 44) to look for near the location.","title":"Query"},"max_count":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":100,"description":"Maximum number of results (the service also applies its own upper limit).","title":"Max Count"}},"required":["lat","lon"],"title":"search_routes_near_locationArguments","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_stop_arrivals":{"post":{"operationId":"get_stop_arrivals","summary":"Get live arrivals and departures at one stop: route, headsign, scheduled and predicted times and distance of the vehicle","description":"Get live arrivals and departures at one stop: route, headsign, scheduled and predicted times and distance of the vehicle, for a window around now. Use for \"When is the next bus at stop 1_75403\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Stop id such as 1_75403.","maxLength":200,"title":"Id","type":"string"},"minutes_before":{"anyOf":[{"maximum":240,"minimum":0,"type":"integer"},{"type":"null"}],"default":5,"description":"Include vehicles that arrived or departed in the previous n minutes (default 5).","title":"Minutes Before"},"minutes_after":{"anyOf":[{"maximum":480,"minimum":0,"type":"integer"},{"type":"null"}],"default":35,"description":"Include vehicles arriving or departing in the next n minutes (default 35).","title":"Minutes After"}},"required":["id"],"title":"get_stop_arrivalsArguments","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_stop_schedule":{"post":{"operationId":"get_stop_schedule","summary":"Get the full timetable of one stop for a day, by route and direction. Use for \"What is the full schedule of stop 1_75403","description":"Get the full timetable of one stop for a day, by route and direction. Use for \"What is the full schedule of stop 1_75403 today\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Stop id such as 1_75403.","maxLength":200,"title":"Id","type":"string"},"date":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Date as YYYY-MM-DD (default today).","title":"Date"}},"required":["id"],"title":"get_stop_scheduleArguments","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_server_time":{"post":{"operationId":"get_server_time","summary":"Get the current system time of the OneBusAway Puget Sound server. Use for \"What time does the OneBusAway server think it","description":"Get the current system time of the OneBusAway Puget Sound server. Use for \"What time does the OneBusAway server think it is\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_server_timeArguments","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}}}}