{"openapi":"3.1.0","info":{"title":"Positionstack (BYOK) API","version":"0.1.0","description":"Positionstack (BYOK) lets an AI assistant read your own Positionstack data through the Positionstack API with a key you supply (access key). Read-only: 5 tools (forward_geocode, reverse_geocode, get_timezone_for_place, get_sun_times_for_place, get_country_details_for_place). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-positionstack.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-positionstack/docs"},"termsOfService":"https://connectorbay.com/byok-positionstack/terms"},"servers":[{"url":"https://byok-positionstack.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-positionstack/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, place name or point of interest into coordinates. Returns matches with label, type, latitude, longitude","description":"Turn an address, place name or point of interest into coordinates. Returns matches with label, type, latitude, longitude, confidence and address parts. Use for \"What are the coordinates of 1600 Pennsylvania Ave NW, Washington\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Address, place name or point of interest, for example '1600 Pennsylvania Ave NW, Washington'.","maxLength":300,"title":"Query","type":"string"},"country":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Limit to countries, comma-separated ISO 3166-1 alpha-2 codes, for example 'US,CA'.","title":"Country"},"limit":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return (default 10).","title":"Limit"},"language":{"anyOf":[{"maxLength":5,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter language code for result names, for example en.","title":"Language"}},"required":["query"],"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 at a latitude and longitude (written 'lat,lon') or at an IP address. Returns matches with label, type, ","description":"Find the address at a latitude and longitude (written 'lat,lon') or at an IP address. Returns matches with label, type, address parts and distance in km. Use for \"What address is at 40.7638435,-73.9729691\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Coordinates as 'latitude,longitude', for example '40.7638435,-73.9729691'.","maxLength":80,"title":"Query","type":"string"},"limit":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return (default 10).","title":"Limit"},"language":{"anyOf":[{"maxLength":5,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter language code for result names, for example en.","title":"Language"}},"required":["query"],"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_timezone_for_place":{"post":{"operationId":"get_timezone_for_place","summary":"Geocode a place and return its IANA time zone, current local time, UTC offset in seconds and daylight saving flag. Use f","description":"Geocode a place and return its IANA time zone, current local time, UTC offset in seconds and daylight saving flag. Use for \"What time zone is Sydney Opera House in\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Address, place name or point of interest, for example '1600 Pennsylvania Ave NW, Washington'.","maxLength":300,"title":"Query","type":"string"},"country":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Limit to countries, comma-separated ISO 3166-1 alpha-2 codes, for example 'US,CA'.","title":"Country"},"limit":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"How many results to return.","title":"Limit"},"timezone_module":{"anyOf":[{"const":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Include time zone data (keep 1).","title":"Timezone Module"}},"required":["query"],"title":"get_timezone_for_placeArguments","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_sun_times_for_place":{"post":{"operationId":"get_sun_times_for_place","summary":"Geocode a place and return sunrise, sunset, solar noon and day length in seconds. Use for \"When does the sun rise and se","description":"Geocode a place and return sunrise, sunset, solar noon and day length in seconds. Use for \"When does the sun rise and set in Oslo\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Address, place name or point of interest, for example '1600 Pennsylvania Ave NW, Washington'.","maxLength":300,"title":"Query","type":"string"},"country":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Limit to countries, comma-separated ISO 3166-1 alpha-2 codes, for example 'US,CA'.","title":"Country"},"limit":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"How many results to return.","title":"Limit"},"sun_module":{"anyOf":[{"const":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Include sunrise and sunset data (keep 1).","title":"Sun Module"}},"required":["query"],"title":"get_sun_times_for_placeArguments","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_country_details_for_place":{"post":{"operationId":"get_country_details_for_place","summary":"Geocode a place and return facts about its country: common and official name, capital, flag, area, dialing codes, curren","description":"Geocode a place and return facts about its country: common and official name, capital, flag, area, dialing codes, currencies and languages. Use for \"Give me country details for Nairobi\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Address, place name or point of interest, for example '1600 Pennsylvania Ave NW, Washington'.","maxLength":300,"title":"Query","type":"string"},"country":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Limit to countries, comma-separated ISO 3166-1 alpha-2 codes, for example 'US,CA'.","title":"Country"},"limit":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":1,"description":"How many results to return.","title":"Limit"},"country_module":{"anyOf":[{"const":1,"type":"integer"},{"type":"null"}],"default":1,"description":"Include country data (keep 1).","title":"Country Module"}},"required":["query"],"title":"get_country_details_for_placeArguments","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}}}}