{"openapi":"3.1.0","info":{"title":"Mapbox (BYOK) API","version":"0.1.0","description":"Mapbox (BYOK) lets an AI assistant read your own Mapbox data through the Mapbox API with a key you supply (Mapbox access token (public or secret)). Read-only: 3 tools (forward_geocode, reverse_geocode, get_route_summary). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to api.mapbox.com. Unofficial connector by...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-mapbox.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-mapbox/docs"},"termsOfService":"https://connectorbay.com/byok-mapbox/terms"},"servers":[{"url":"https://byok-mapbox.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-mapbox/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/forward_geocode":{"post":{"operationId":"forward_geocode","summary":"Turn an address or place name into coordinates (temporary geocoding): up to 10 matches with formatted address, feature t","description":"Turn an address or place name into coordinates (temporary geocoding): up to 10 matches with formatted address, feature type, coordinates, accuracy and place, region, postcode and country names. Use for \"What are the coordinates of 1600 Pennsylvania Avenue in Washington DC\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Address or place text, at most 256 characters and 20 words, without semicolons.","maxLength":256,"title":"Q","type":"string"},"autocomplete":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True (default) to treat the text as a partial query, false for complete addresses.","title":"Autocomplete"},"country":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Limit to countries, comma-separated ISO 3166 alpha-2 codes, for example 'us,ca'.","title":"Country"},"language":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"IETF language tags for results, comma-separated (up to 20), for example 'en,fr'.","title":"Language"},"types":{"anyOf":[{"maxLength":150,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated feature types to return, for example 'address,place,country'.","title":"Types"},"proximity":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Bias point as 'longitude,latitude', or 'ip' to use the caller's IP location.","title":"Proximity"},"bbox":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Limit to a box 'minLon,minLat,maxLon,maxLat' that does not cross the 180th meridian.","title":"Bbox"},"worldview":{"anyOf":[{"enum":["ar","cn","in","jp","ma","rs","ru","tr","us"],"type":"string"},{"type":"null"}],"default":"us","description":"Geopolitical view of borders: ar, cn, in, jp, ma, rs, ru, tr or us (default).","title":"Worldview"},"limit":{"anyOf":[{"maximum":10,"minimum":1,"type":"integer"},{"type":"null"}],"default":5,"description":"How many matches to return (1 to 10, default 5).","title":"Limit"}},"required":["q"],"title":"forward_geocodeArguments","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/reverse_geocode":{"post":{"operationId":"reverse_geocode","summary":"Find the address or place at a longitude and latitude (temporary geocoding); returns formatted address, feature type and","description":"Find the address or place at a longitude and latitude (temporary geocoding); returns formatted address, feature type and place, region, postcode and country names. Use for \"What is the address at longitude -77.0365, latitude 38.8977\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"longitude":{"description":"Longitude in decimal degrees.","maximum":180,"minimum":-180,"title":"Longitude","type":"number"},"latitude":{"description":"Latitude in decimal degrees.","maximum":90,"minimum":-90,"title":"Latitude","type":"number"},"country":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Limit to countries, comma-separated ISO 3166 alpha-2 codes, for example 'us,ca'.","title":"Country"},"language":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"IETF language tags for results, comma-separated (up to 20), for example 'en,fr'.","title":"Language"},"types":{"anyOf":[{"maxLength":150,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated feature types to return, for example 'address,place,country'.","title":"Types"},"worldview":{"anyOf":[{"enum":["ar","cn","in","jp","ma","rs","ru","tr","us"],"type":"string"},{"type":"null"}],"default":"us","description":"Geopolitical view of borders: ar, cn, in, jp, ma, rs, ru, tr or us (default).","title":"Worldview"},"limit":{"anyOf":[{"maximum":5,"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"How many results (1 to 5, default 1); above 1 requires exactly one value in types.","title":"Limit"}},"required":["longitude","latitude"],"title":"reverse_geocodeArguments","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 recommended route (and optionally up to two alternatives) between two points: distance in meters and duration in","description":"Get the recommended route (and optionally up to two alternatives) between two points: distance in meters and duration in seconds, without map geometry or turn-by-turn steps. Use for \"How far and how long is it to drive from San Francisco to San Jose\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"profile":{"description":"Travel mode: driving-traffic (live and historic traffic), driving, walking or cycling.","enum":["driving-traffic","driving","walking","cycling"],"title":"Profile","type":"string"},"from_lon":{"description":"Start longitude in decimal degrees.","maximum":180,"minimum":-180,"title":"From Lon","type":"number"},"from_lat":{"description":"Start latitude in decimal degrees.","maximum":90,"minimum":-90,"title":"From Lat","type":"number"},"to_lon":{"description":"End longitude in decimal degrees.","maximum":180,"minimum":-180,"title":"To Lon","type":"number"},"to_lat":{"description":"End latitude in decimal degrees.","maximum":90,"minimum":-90,"title":"To Lat","type":"number"},"alternatives":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to also return up to two alternative routes.","title":"Alternatives"},"overview":{"anyOf":[{"const":"false","type":"string"},{"type":"null"}],"default":"false","description":"Route geometry detail; fixed to false so no geometry is returned.","title":"Overview"},"language":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":"en","description":"Language code for names, default en.","title":"Language"}},"required":["profile","from_lon","from_lat","to_lon","to_lat"],"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}}}}