{"openapi":"3.1.0","info":{"title":"BC Route Planner (BYOK) API","version":"0.1.0","description":"BC Route Planner (BYOK) lets an AI assistant read your own BC Route Planner data through the BC Route Planner API with a key you supply (BC API Services Portal API key). Read-only: 6 tools (get_distance, get_truck_distance, get_distance_between_pairs, get_route_summary, get_driving_directions, get_truck_directions). The BYOK key travels with each request, is used for that one call only and is...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-bc-router.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-bc-router/docs"},"termsOfService":"https://connectorbay.com/byok-bc-router/terms"},"servers":[{"url":"https://byok-bc-router.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-bc-router/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/get_distance":{"post":{"operationId":"get_distance","summary":"Get the driving distance and travel time of the shortest or fastest route through two or more points in British Columbia","description":"Get the driving distance and travel time of the shortest or fastest route through two or more points in British Columbia. Use for \"How far is it by road from Duncan to Metchosin\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"points":{"description":"Route points in order as comma-separated 'lon,lat,lon,lat,...' in WGS 84 (at least two points), for example '-123.70794,48.77869,-123.53785,48.382'.","maxLength":600,"title":"Points","type":"string"},"criteria":{"anyOf":[{"enum":["shortest","fastest"],"type":"string"},{"type":"null"}],"default":"shortest","description":"Optimize the shortest or the fastest route.","title":"Criteria"},"distance_unit":{"anyOf":[{"enum":["km","mi"],"type":"string"},{"type":"null"}],"default":"km","description":"Distance unit: km or mi.","title":"Distance Unit"},"round_trip":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True for a route that returns to the first point.","title":"Round Trip"},"departure":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Departure time in RFC 3339 format, for example 2026-10-20T08:00:00-07:00, to apply time-dependent restrictions.","title":"Departure"},"correct_side":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to start and end on the same side of the road as the given points.","title":"Correct Side"}},"required":["points"],"title":"get_distanceArguments","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_distance":{"post":{"operationId":"get_truck_distance","summary":"Get the distance and travel time for a commercial vehicle route through two or more points in British Columbia, favourin","description":"Get the distance and travel time for a commercial vehicle route through two or more points in British Columbia, favouring designated truck routes. Use for \"How far is it by truck from Duncan to Metchosin\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"points":{"description":"Route points in order as comma-separated 'lon,lat,lon,lat,...' in WGS 84 (at least two points), for example '-123.70794,48.77869,-123.53785,48.382'.","maxLength":600,"title":"Points","type":"string"},"criteria":{"anyOf":[{"enum":["shortest","fastest"],"type":"string"},{"type":"null"}],"default":"shortest","description":"Optimize the shortest or the fastest route.","title":"Criteria"},"distance_unit":{"anyOf":[{"enum":["km","mi"],"type":"string"},{"type":"null"}],"default":"km","description":"Distance unit: km or mi.","title":"Distance Unit"},"round_trip":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True for a route that returns to the first point.","title":"Round Trip"},"departure":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Departure time in RFC 3339 format, for example 2026-10-20T08:00:00-07:00, to apply time-dependent restrictions.","title":"Departure"},"correct_side":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to start and end on the same side of the road as the given points.","title":"Correct Side"},"truck_route_multiplier":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":9,"description":"Cost multiplier for roads that are not designated truck routes (default 9).","title":"Truck Route Multiplier"}},"required":["points"],"title":"get_truck_distanceArguments","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_distance_between_pairs":{"post":{"operationId":"get_distance_between_pairs","summary":"Get distance and time between every pair of origin and destination points (product of counts must not exceed 100). Use f","description":"Get distance and time between every pair of origin and destination points (product of counts must not exceed 100). Use for \"How far is each of two origins from each of two destinations\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"from_points":{"description":"Origin points as comma-separated 'lon,lat,lon,lat,...'.","maxLength":600,"title":"From Points","type":"string"},"to_points":{"description":"Destination points as comma-separated 'lon,lat,lon,lat,...'.","maxLength":600,"title":"To Points","type":"string"},"criteria":{"anyOf":[{"enum":["shortest","fastest"],"type":"string"},{"type":"null"}],"default":"shortest","description":"Optimize the shortest or the fastest route.","title":"Criteria"},"distance_unit":{"anyOf":[{"enum":["km","mi"],"type":"string"},{"type":"null"}],"default":"km","description":"Distance unit: km or mi.","title":"Distance Unit"},"max_pairs":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum pairs to return for each destination, ordered nearest first.","title":"Max Pairs"}},"required":["from_points","to_points"],"title":"get_distance_between_pairsArguments","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_summary":{"post":{"operationId":"get_route_summary","summary":"Get the route's distance, time and found/not-found status through two or more points, without the geometry (use the dire","description":"Get the route's distance, time and found/not-found status through two or more points, without the geometry (use the directions tools for steps). Use for \"Is there a driving route between these BC points and how long does it take\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"points":{"description":"Route points in order as comma-separated 'lon,lat,lon,lat,...' in WGS 84 (at least two points), for example '-123.70794,48.77869,-123.53785,48.382'.","maxLength":600,"title":"Points","type":"string"},"criteria":{"anyOf":[{"enum":["shortest","fastest"],"type":"string"},{"type":"null"}],"default":"shortest","description":"Optimize the shortest or the fastest route.","title":"Criteria"},"distance_unit":{"anyOf":[{"enum":["km","mi"],"type":"string"},{"type":"null"}],"default":"km","description":"Distance unit: km or mi.","title":"Distance Unit"},"round_trip":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True for a route that returns to the first point.","title":"Round Trip"},"departure":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Departure time in RFC 3339 format, for example 2026-10-20T08:00:00-07:00, to apply time-dependent restrictions.","title":"Departure"},"correct_side":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to start and end on the same side of the road as the given points.","title":"Correct Side"}},"required":["points"],"title":"get_route_summaryArguments","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_driving_directions":{"post":{"operationId":"get_driving_directions","summary":"Get turn-by-turn driving directions with distance and time per step through two or more points in British Columbia. Use ","description":"Get turn-by-turn driving directions with distance and time per step through two or more points in British Columbia. Use for \"Give me directions from Yukon St to W 6th Ave in Vancouver\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"points":{"description":"Route points in order as comma-separated 'lon,lat,lon,lat,...' in WGS 84 (at least two points), for example '-123.70794,48.77869,-123.53785,48.382'.","maxLength":600,"title":"Points","type":"string"},"criteria":{"anyOf":[{"enum":["shortest","fastest"],"type":"string"},{"type":"null"}],"default":"shortest","description":"Optimize the shortest or the fastest route.","title":"Criteria"},"distance_unit":{"anyOf":[{"enum":["km","mi"],"type":"string"},{"type":"null"}],"default":"km","description":"Distance unit: km or mi.","title":"Distance Unit"},"round_trip":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True for a route that returns to the first point.","title":"Round Trip"},"departure":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Departure time in RFC 3339 format, for example 2026-10-20T08:00:00-07:00, to apply time-dependent restrictions.","title":"Departure"},"correct_side":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to start and end on the same side of the road as the given points.","title":"Correct Side"}},"required":["points"],"title":"get_driving_directionsArguments","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_directions":{"post":{"operationId":"get_truck_directions","summary":"Get turn-by-turn directions for a commercial vehicle through two or more points in British Columbia, with any route noti","description":"Get turn-by-turn directions for a commercial vehicle through two or more points in British Columbia, with any route notifications. Use for \"Give me truck directions between two Vancouver points\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"points":{"description":"Route points in order as comma-separated 'lon,lat,lon,lat,...' in WGS 84 (at least two points), for example '-123.70794,48.77869,-123.53785,48.382'.","maxLength":600,"title":"Points","type":"string"},"criteria":{"anyOf":[{"enum":["shortest","fastest"],"type":"string"},{"type":"null"}],"default":"shortest","description":"Optimize the shortest or the fastest route.","title":"Criteria"},"distance_unit":{"anyOf":[{"enum":["km","mi"],"type":"string"},{"type":"null"}],"default":"km","description":"Distance unit: km or mi.","title":"Distance Unit"},"round_trip":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True for a route that returns to the first point.","title":"Round Trip"},"departure":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Departure time in RFC 3339 format, for example 2026-10-20T08:00:00-07:00, to apply time-dependent restrictions.","title":"Departure"},"correct_side":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to start and end on the same side of the road as the given points.","title":"Correct Side"},"truck_route_multiplier":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":9,"description":"Cost multiplier for roads that are not designated truck routes (default 9).","title":"Truck Route Multiplier"}},"required":["points"],"title":"get_truck_directionsArguments","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}}}}