{"openapi":"3.1.0","info":{"title":"Ola Maps (BYOK) API","version":"0.1.0","description":"Ola Maps (BYOK) lets an AI assistant read your own Ola Maps data through the Ola Maps API with a key you supply (Ola Maps API key). Read-only: 11 tools (autocomplete_places, get_place_details, text_search_places, search_nearby_places, geocode_address, reverse_geocode, get_elevation, validate_address, get_distance_matrix, find_nearest_roads, get_speed_limits). The BYOK key travels with each...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-olamaps.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-olamaps/docs"},"termsOfService":"https://connectorbay.com/byok-olamaps/terms"},"servers":[{"url":"https://byok-olamaps.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-olamaps/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/autocomplete_places":{"post":{"operationId":"autocomplete_places","summary":"Suggest places and addresses for partly typed text (Indian local languages accepted). Returns predictions with descripti","description":"Suggest places and addresses for partly typed text (Indian local languages accepted). Returns predictions with description, place id, types and distance. Use for \"Suggest places that start with 'Koramangala Bengaluru'\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"input":{"description":"Text typed so far.","maxLength":200,"title":"Input","type":"string"},"location":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Bias results near 'lat,lng'.","title":"Location"},"radius":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Radius in metres around location; enforced only when strict_bounds is true.","title":"Radius"},"strict_bounds":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to return only places inside the radius around location.","title":"Strict Bounds"},"language":{"anyOf":[{"enum":["en","hi","kn","te","ta","ml","sa","bn","gu","mr","or","ur"],"type":"string"},{"type":"null"}],"default":"en","description":"Response language code: en, hi, kn, te, ta, ml, sa, bn, gu, mr, or or ur (default en).","title":"Language"},"types":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Restrict to place types, comma separated (see the Ola Maps place types list).","title":"Types"}},"required":["input"],"title":"autocomplete_placesArguments","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_place_details":{"post":{"operationId":"get_place_details","summary":"Get details of one place by its place id: name, address, coordinates, types, rating, phone, website and opening hours wh","description":"Get details of one place by its place id: name, address, coordinates, types, rating, phone, website and opening hours where known (many fields read NA when unknown). Use for \"Give me details for place ola-platform:5000039498427\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"place_id":{"description":"Place id from a search or autocomplete result.","maxLength":100,"title":"Place Id","type":"string"},"language":{"anyOf":[{"enum":["en","hi","kn","te","ta","ml","sa","bn","gu","mr","or","ur"],"type":"string"},{"type":"null"}],"default":"en","description":"Response language code: en, hi, kn, te, ta, ml, sa, bn, gu, mr, or or ur (default en).","title":"Language"}},"required":["place_id"],"title":"get_place_detailsArguments","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/text_search_places":{"post":{"operationId":"text_search_places","summary":"Search places with a text query such as 'cafes in Koramangala' without needing coordinates. Returns up to size results w","description":"Search places with a text query such as 'cafes in Koramangala' without needing coordinates. Returns up to size results with name, address, place id and coordinates. Use for \"Find cafes in Koramangala\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"input":{"description":"Text query, for example 'Restaurants near Bangalore'.","maxLength":200,"title":"Input","type":"string"},"location":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Optionally search around 'lat,lng'.","title":"Location"},"radius":{"anyOf":[{"minimum":1,"type":"number"},{"type":"null"}],"default":5000,"description":"Radius in metres around location (default 5000).","title":"Radius"},"types":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Restrict to place types, comma separated.","title":"Types"},"size":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":5,"description":"Maximum number of results (default 5).","title":"Size"}},"required":["input"],"title":"text_search_placesArguments","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_nearby_places":{"post":{"operationId":"search_nearby_places","summary":"List places around a coordinate, optionally by type, ranked by popularity or distance (5 to 50 results). Returns descrip","description":"List places around a coordinate, optionally by type, ranked by popularity or distance (5 to 50 results). Returns description, place id, types and distance in metres. Use for \"What cafes are near 12.9352,77.6245\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"location":{"description":"Latitude and longitude as 'lat,lng'.","maxLength":60,"title":"Location","type":"string"},"types":{"anyOf":[{"maxLength":120,"type":"string"},{"type":"null"}],"default":null,"description":"Restrict to place types, comma separated, for example 'cafe'.","title":"Types"},"radius":{"anyOf":[{"minimum":1,"type":"number"},{"type":"null"}],"default":10000,"description":"Search distance in metres (default 10000).","title":"Radius"},"rank_by":{"anyOf":[{"enum":["popular","distance"],"type":"string"},{"type":"null"}],"default":"popular","description":"Order: popular (default) or distance.","title":"Rank By"},"limit":{"anyOf":[{"maximum":50,"minimum":5,"type":"integer"},{"type":"null"}],"default":5,"description":"Maximum number of results (5 to 50, default 5).","title":"Limit"},"language":{"anyOf":[{"enum":["en","hi","kn","te","ta","ml","sa","bn","gu","mr","or","ur"],"type":"string"},{"type":"null"}],"default":"en","description":"Response language code: en, hi, kn, te, ta, ml, sa, bn, gu, mr, or or ur (default en).","title":"Language"}},"required":["location"],"title":"search_nearby_placesArguments","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/geocode_address":{"post":{"operationId":"geocode_address","summary":"Turn an address into coordinates and a formatted address (English only). Returns up to a few matches with place id. Use ","description":"Turn an address into coordinates and a formatted address (English only). Returns up to a few matches with place id. Use for \"What are the coordinates of Mumbai\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"address":{"description":"Address to geocode.","maxLength":300,"title":"Address","type":"string"}},"required":["address"],"title":"geocode_addressArguments","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 latitude and longitude. Returns formatted address, name, place id and types. Use for \"Wha","description":"Find the address or place at a latitude and longitude. Returns formatted address, name, place id and types. Use for \"What address is at 12.931423,77.616974\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"latlng":{"description":"Coordinates as 'lat,lng'.","maxLength":60,"title":"Latlng","type":"string"},"language":{"anyOf":[{"enum":["en","hi","kn","te","ta","ml","sa","bn","gu","mr","or","ur"],"type":"string"},{"type":"null"}],"default":"en","description":"Response language code: en, hi, kn, te, ta, ml, sa, bn, gu, mr, or or ur (default en).","title":"Language"}},"required":["latlng"],"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_elevation":{"post":{"operationId":"get_elevation","summary":"Get the elevation in metres above sea level at one coordinate. Use for \"How high above sea level is 12.931423,77.616974\"","description":"Get the elevation in metres above sea level at one coordinate. Use for \"How high above sea level is 12.931423,77.616974\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"location":{"description":"Coordinates as 'lat,lng'.","maxLength":60,"title":"Location","type":"string"}},"required":["location"],"title":"get_elevationArguments","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/validate_address":{"post":{"operationId":"validate_address","summary":"Check whether an Indian address is valid and return the cleaned, validated address. Use for \"Is '7 Lok Kalyan Marg, New ","description":"Check whether an Indian address is valid and return the cleaned, validated address. Use for \"Is '7 Lok Kalyan Marg, New Delhi' a valid address\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"address":{"description":"Address to validate.","maxLength":300,"title":"Address","type":"string"}},"required":["address"],"title":"validate_addressArguments","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_matrix":{"post":{"operationId":"get_distance_matrix","summary":"Driving distance in metres and duration in seconds (with an encoded route polyline) between several origins and destinat","description":"Driving distance in metres and duration in seconds (with an encoded route polyline) between several origins and destinations, fastest or shortest route. Keep the number of points small. Use for \"How far is it from 12.93,77.62 to 12.97,77.59 by road\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"origins":{"description":"Origins as 'lat,lng' pairs separated by a pipe character.","maxLength":800,"title":"Origins","type":"string"},"destinations":{"description":"Destinations as 'lat,lng' pairs separated by a pipe character.","maxLength":800,"title":"Destinations","type":"string"},"route_preference":{"anyOf":[{"enum":["fastest","shortest"],"type":"string"},{"type":"null"}],"default":"fastest","description":"Route type: fastest (default) or shortest.","title":"Route Preference"}},"required":["origins","destinations"],"title":"get_distance_matrixArguments","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/find_nearest_roads":{"post":{"operationId":"find_nearest_roads","summary":"Snap up to 100 coordinates to the nearest road for a travel mode. Returns snapped coordinates with distance moved in met","description":"Snap up to 100 coordinates to the nearest road for a travel mode. Returns snapped coordinates with distance moved in metres. Use for \"Which road is nearest to 12.9771,77.5718\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"mode":{"description":"Travel mode: DRIVING, WALKING, BICYCLING or TRANSIT.","enum":["DRIVING","WALKING","BICYCLING","TRANSIT"],"title":"Mode","type":"string"},"points":{"description":"Up to 100 'lat,lng' pairs separated by a pipe character.","maxLength":4000,"title":"Points","type":"string"},"radius":{"anyOf":[{"minimum":1,"type":"number"},{"type":"null"}],"default":500,"description":"Search radius in metres (default 500).","title":"Radius"}},"required":["mode","points"],"title":"find_nearest_roadsArguments","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_speed_limits":{"post":{"operationId":"get_speed_limits","summary":"Snap up to 50 coordinates to roads and return the posted speed limit for each point. Use for \"What is the speed limit at","description":"Snap up to 50 coordinates to roads and return the posted speed limit for each point. Use for \"What is the speed limit at 12.9715987,77.5945627\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"points":{"description":"Up to 50 'lat,lng' pairs separated by a pipe character.","maxLength":3000,"title":"Points","type":"string"},"snap_strategy":{"anyOf":[{"enum":["snaptoroad","nearestroad"],"type":"string"},{"type":"null"}],"default":"snaptoroad","description":"How to snap: snaptoroad (trace based, default) or nearestroad (each point alone).","title":"Snap Strategy"}},"required":["points"],"title":"get_speed_limitsArguments","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}}}}