{"openapi":"3.1.0","info":{"title":"GeoNames (BYOK) API","version":"0.1.0","description":"GeoNames (BYOK) lets an AI assistant read your own GeoNames data through the GeoNames API with a key you supply (GeoNames username). Read-only: 4 tools (search_places, find_nearby_place_names, find_nearby_features, search_postal_codes). 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 secure.geonames.org....\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-geonames.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-geonames/docs"},"termsOfService":"https://connectorbay.com/byok-geonames/terms"},"servers":[{"url":"https://byok-geonames.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-geonames/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/search_places":{"post":{"operationId":"search_places","summary":"Search the GeoNames gazetteer by name, with optional country, feature class and feature code filters; returns places wit","description":"Search the GeoNames gazetteer by name, with optional country, feature class and feature code filters; returns places with ids, coordinates, country and administrative names (the answer is the provider's JSON). Use for \"Find places named Springfield in the United States\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Search text over all fields (name, country, administrative names), for example 'paris'.","title":"Q"},"name_startswith":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Only places whose name starts with this text.","title":"Name Startswith"},"country":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO-3166 country code, for example 'FR'.","title":"Country"},"feature_class":{"anyOf":[{"enum":["A","H","L","P","R","S","T","U","V"],"type":"string"},{"type":"null"}],"default":null,"description":"One-letter feature class: A country/state/region, H water, L park/area, P populated place, R road/railroad, S spot/building, T mountain/hill, U undersea, V forest.","title":"Feature Class"},"feature_code":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"GeoNames feature code, for example 'PPLC' (capital city).","title":"Feature Code"},"order_by":{"anyOf":[{"enum":["population","elevation","relevance"],"type":"string"},{"type":"null"}],"default":null,"description":"Sort by population, elevation or relevance.","title":"Order By"},"max_rows":{"anyOf":[{"maximum":1000,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many places to return (1 to 1000).","title":"Max Rows"},"start_row":{"anyOf":[{"maximum":5000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Index of the first row to return, for paging (0 to 5000 on the free service).","title":"Start Row"},"style":{"anyOf":[{"enum":["SHORT","MEDIUM","LONG","FULL"],"type":"string"},{"type":"null"}],"default":"MEDIUM","description":"Amount of detail per place: SHORT, MEDIUM (default), LONG or FULL.","title":"Style"},"lang":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Language code for place names, for example 'en' or 'de'; 'local' gives the local-language name.","title":"Lang"}},"title":"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/find_nearby_place_names":{"post":{"operationId":"find_nearby_place_names","summary":"Find populated places (towns, cities, villages) nearest to a latitude and longitude; each result has a distance in km. U","description":"Find populated places (towns, cities, villages) nearest to a latitude and longitude; each result has a distance in km. Use for \"What towns are near latitude 18.52, longitude 73.86\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lat":{"description":"Latitude in decimal degrees.","maximum":90,"minimum":-90,"title":"Lat","type":"number"},"lng":{"description":"Longitude in decimal degrees.","maximum":180,"minimum":-180,"title":"Lng","type":"number"},"radius":{"anyOf":[{"maximum":300,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Search radius in km.","title":"Radius"},"max_rows":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many places to return.","title":"Max Rows"},"cities":{"anyOf":[{"enum":["cities1000","cities5000","cities15000"],"type":"string"},{"type":"null"}],"default":null,"description":"Only cities with at least this population: cities1000, cities5000 or cities15000.","title":"Cities"},"style":{"anyOf":[{"enum":["SHORT","MEDIUM","LONG","FULL"],"type":"string"},{"type":"null"}],"default":"MEDIUM","description":"Amount of detail per place: SHORT, MEDIUM (default), LONG or FULL.","title":"Style"},"lang":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Language code for place names, for example 'en' or 'de'; 'local' gives the local-language name.","title":"Lang"}},"required":["lat","lng"],"title":"find_nearby_place_namesArguments","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_nearby_features":{"post":{"operationId":"find_nearby_features","summary":"Find the nearest named features (any type) around a latitude and longitude, optionally restricted to a feature class and","description":"Find the nearest named features (any type) around a latitude and longitude, optionally restricted to a feature class and code, with distance in km. Use for \"Which lakes are within 20 km of latitude 46.5, longitude 6.6\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"lat":{"description":"Latitude in decimal degrees.","maximum":90,"minimum":-90,"title":"Lat","type":"number"},"lng":{"description":"Longitude in decimal degrees.","maximum":180,"minimum":-180,"title":"Lng","type":"number"},"radius":{"anyOf":[{"maximum":300,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"description":"Search radius in km.","title":"Radius"},"feature_class":{"anyOf":[{"enum":["A","H","L","P","R","S","T","U","V"],"type":"string"},{"type":"null"}],"default":null,"description":"One-letter feature class: A, H, L, P, R, S, T, U or V (H is water bodies, T mountains).","title":"Feature Class"},"feature_code":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"GeoNames feature code, for example 'LK' (lake) or 'MT' (mountain).","title":"Feature Code"},"max_rows":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many features to return.","title":"Max Rows"},"style":{"anyOf":[{"enum":["SHORT","MEDIUM","LONG","FULL"],"type":"string"},{"type":"null"}],"default":"MEDIUM","description":"Amount of detail per place: SHORT, MEDIUM (default), LONG or FULL.","title":"Style"},"lang":{"anyOf":[{"maxLength":10,"type":"string"},{"type":"null"}],"default":null,"description":"Language code for place names, for example 'en' or 'de'; 'local' gives the local-language name.","title":"Lang"}},"required":["lat","lng"],"title":"find_nearby_featuresArguments","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_postal_codes":{"post":{"operationId":"search_postal_codes","summary":"Search postal codes by code or place name in one or more countries; returns places with postal code, coordinates and adm","description":"Search postal codes by code or place name in one or more countries; returns places with postal code, coordinates and administrative names. Use for \"What is the postal code of Beverly Hills in the US\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"postalcode":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Postal code to find (required if placename is not given).","title":"Postalcode"},"postalcode_startswith":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Postal codes starting with these characters.","title":"Postalcode Startswith"},"placename":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Place name to search (required if postalcode is not given).","title":"Placename"},"country":{"anyOf":[{"maxLength":2,"type":"string"},{"type":"null"}],"default":null,"description":"Two-letter ISO-3166 country code, for example 'US'.","title":"Country"},"max_rows":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many results to return.","title":"Max Rows"},"style":{"anyOf":[{"enum":["SHORT","MEDIUM","LONG","FULL"],"type":"string"},{"type":"null"}],"default":"MEDIUM","description":"Amount of detail per place: SHORT, MEDIUM (default), LONG or FULL.","title":"Style"}},"title":"search_postal_codesArguments","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}}}}