{"openapi":"3.1.0","info":{"title":"Transport for NSW Roads (BYOK) API","version":"0.1.0","description":"Transport for NSW Roads (BYOK) lets an AI assistant read your own Transport for NSW Roads data through the Transport for NSW Roads API with a key you supply (Open Data API key). Read-only: 8 tools (list_car_parks, get_car_park, list_all_car_park_occupancy, get_car_park_history, list_traffic_hazards, list_traffic_cameras, list_participating_councils, get_live_traffic_status). The BYOK key travels...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-transportnsw-roads.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-transportnsw-roads/docs"},"termsOfService":"https://connectorbay.com/byok-transportnsw-roads/terms"},"servers":[{"url":"https://byok-transportnsw-roads.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-transportnsw-roads/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_car_parks":{"post":{"operationId":"list_car_parks","summary":"List the Transport Park&Ride car park facilities with their facility ids, to use with get_car_park and get_car_park_hist","description":"List the Transport Park&Ride car park facilities with their facility ids, to use with get_car_park and get_car_park_history. Use for \"Which Park&Ride car parks does Transport for NSW publish occupancy for\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_car_parksArguments","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_car_park":{"post":{"operationId":"get_car_park","summary":"Get the current estimated occupancy of one Park&Ride car park: total spaces, vehicles counted and location. Available sp","description":"Get the current estimated occupancy of one Park&Ride car park: total spaces, vehicles counted and location. Available spaces are spots minus occupancy.total. Use for \"How full is the Tallawong P1 Park&Ride car park right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"facility":{"description":"Facility id of a Park&Ride car park (a number such as 26; list them with list_car_parks).","maxLength":10,"title":"Facility","type":"string"}},"required":["facility"],"title":"get_car_parkArguments","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_all_car_park_occupancy":{"post":{"operationId":"list_all_car_park_occupancy","summary":"Get the current estimated occupancy of every Park&Ride car park in one answer. Use for \"How full are all the Park&Ride c","description":"Get the current estimated occupancy of every Park&Ride car park in one answer. Use for \"How full are all the Park&Ride car parks in NSW\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_all_car_park_occupancyArguments","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_car_park_history":{"post":{"operationId":"get_car_park_history","summary":"Get the occupancy history of one Park&Ride car park for one calendar day. Use for \"How full was the Kiama Park&Ride car ","description":"Get the occupancy history of one Park&Ride car park for one calendar day. Use for \"How full was the Kiama Park&Ride car park on 2026-10-01\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"facility":{"description":"Facility id of a Park&Ride car park (a number such as 26; list them with list_car_parks).","maxLength":10,"title":"Facility","type":"string"},"event_date":{"description":"Day to read, as YYYY-MM-DD (for example 2019-11-14).","maxLength":10,"title":"Event Date","type":"string"}},"required":["facility","event_date"],"title":"get_car_park_historyArguments","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_traffic_hazards":{"post":{"operationId":"list_traffic_hazards","summary":"List live traffic hazards of one kind (incidents, fires, floods, alpine conditions, major events, roadworks or local cou","description":"List live traffic hazards of one kind (incidents, fires, floods, alpine conditions, major events, roadworks or local council incidents) that are open, closed or both. Use for \"What road incidents are open in NSW right now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"category":{"description":"Hazard kind: incident, fire, flood, alpine, majorevent, roadwork or regional-lga-incident (local council incidents).","enum":["incident","fire","flood","alpine","majorevent","roadwork","regional-lga-incident"],"title":"Category","type":"string"},"status":{"description":"open (current or planned), closed (finished) or all.","enum":["open","closed","all"],"title":"Status","type":"string"}},"required":["category","status"],"title":"list_traffic_hazardsArguments","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_traffic_cameras":{"post":{"operationId":"list_traffic_cameras","summary":"List Live Traffic NSW cameras with title, region, facing direction, view description, location and the URL of the curren","description":"List Live Traffic NSW cameras with title, region, facing direction, view description, location and the URL of the current JPEG image. Use for \"Where are the Live Traffic cameras in Sydney South\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_traffic_camerasArguments","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_participating_councils":{"post":{"operationId":"list_participating_councils","summary":"List the local councils that currently provide hazard information through Live Traffic NSW, with website and contact det","description":"List the local councils that currently provide hazard information through Live Traffic NSW, with website and contact details. Use for \"Which councils report incidents to Live Traffic NSW\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_participating_councilsArguments","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_live_traffic_status":{"post":{"operationId":"get_live_traffic_status","summary":"Check whether the Live Traffic NSW service is available, with the outage message when it is not. Use for \"Is the Live Tr","description":"Check whether the Live Traffic NSW service is available, with the outage message when it is not. Use for \"Is the Live Traffic NSW service up\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_live_traffic_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}}}}