{"openapi":"3.1.0","info":{"title":"Ordnance Survey (BYOK) API","version":"0.1.0","description":"Ordnance Survey (BYOK) lets an AI assistant read your own Ordnance Survey data through the Ordnance Survey API with a key you supply (OS Data Hub project API key). Read-only: 7 tools (places_find, places_postcode, places_uprn, places_nearest, places_radius, names_find, names_nearest). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-ordnancesurvey.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-ordnancesurvey/docs"},"termsOfService":"https://connectorbay.com/byok-ordnancesurvey/terms"},"servers":[{"url":"https://byok-ordnancesurvey.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-ordnancesurvey/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/places_find":{"post":{"operationId":"places_find","summary":"Free-text address search over OS Places (UK, Jersey, Guernsey, Isle of Man): returns UPRN, address, postcode, coordinate","description":"Free-text address search over OS Places (UK, Jersey, Guernsey, Isle of Man): returns UPRN, address, postcode, coordinates and classification. Needs the OS Places API on your OS Data Hub project. Use for \"Find the address 'Adanac Drive, Nursling, Southampton'\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Address text, for example '4 Adanac Drive Southampton'.","maxLength":200,"title":"Query","type":"string"},"maxresults":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Maximum results to return (1 to 100).","title":"Maxresults"},"offset":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Skip this many results (for paging).","title":"Offset"},"minmatch":{"anyOf":[{"maximum":1,"minimum":0.1,"type":"number"},{"type":"null"}],"default":null,"description":"Minimum match score from 0.1 to 1 for a result to be returned.","title":"Minmatch"},"lr":{"anyOf":[{"enum":["EN","CY"],"type":"string"},{"type":"null"}],"default":null,"description":"Address language: EN or CY (default both).","title":"Lr"},"output_srs":{"anyOf":[{"enum":["BNG","EPSG:27700","WGS84","EPSG:4326","EPSG:3857","EPSG:4258"],"type":"string"},{"type":"null"}],"default":"EPSG:27700","description":"Coordinate system of returned coordinates: BNG or EPSG:27700 (British National Grid), WGS84 or EPSG:4326 (lat/lng), EPSG:3857, EPSG:4258.","title":"Output Srs"}},"required":["query"],"title":"places_findArguments","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/places_postcode":{"post":{"operationId":"places_postcode","summary":"List the addresses of a UK postcode from OS Places, with UPRN, full address and coordinates. Use for \"List the addresses","description":"List the addresses of a UK postcode from OS Places, with UPRN, full address and coordinates. Use for \"List the addresses at postcode SO16 0AS\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"postcode":{"description":"A UK postcode, for example 'SO16 0AS'.","maxLength":10,"title":"Postcode","type":"string"},"maxresults":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Maximum results to return (1 to 100).","title":"Maxresults"},"offset":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Skip this many results (for paging).","title":"Offset"},"lr":{"anyOf":[{"enum":["EN","CY"],"type":"string"},{"type":"null"}],"default":null,"description":"Address language: EN or CY (default both).","title":"Lr"},"output_srs":{"anyOf":[{"enum":["BNG","EPSG:27700","WGS84","EPSG:4326","EPSG:3857","EPSG:4258"],"type":"string"},{"type":"null"}],"default":"EPSG:27700","description":"Coordinate system of returned coordinates: BNG or EPSG:27700 (British National Grid), WGS84 or EPSG:4326 (lat/lng), EPSG:3857, EPSG:4258.","title":"Output Srs"}},"required":["postcode"],"title":"places_postcodeArguments","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/places_uprn":{"post":{"operationId":"places_uprn","summary":"Look up one property by its UPRN (Unique Property Reference Number) in OS Places. Use for \"What address has UPRN 2000100","description":"Look up one property by its UPRN (Unique Property Reference Number) in OS Places. Use for \"What address has UPRN 200010019924\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"uprn":{"description":"The UPRN, a whole number such as 200010019924.","minimum":1,"title":"Uprn","type":"integer"},"lr":{"anyOf":[{"enum":["EN","CY"],"type":"string"},{"type":"null"}],"default":null,"description":"Address language: EN or CY (default both).","title":"Lr"},"output_srs":{"anyOf":[{"enum":["BNG","EPSG:27700","WGS84","EPSG:4326","EPSG:3857","EPSG:4258"],"type":"string"},{"type":"null"}],"default":"EPSG:27700","description":"Coordinate system of returned coordinates: BNG or EPSG:27700 (British National Grid), WGS84 or EPSG:4326 (lat/lng), EPSG:3857, EPSG:4258.","title":"Output Srs"}},"required":["uprn"],"title":"places_uprnArguments","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/places_nearest":{"post":{"operationId":"places_nearest","summary":"Find the OS Places addresses closest to a point (British National Grid by default), within 1,000 metres. Use for \"Which ","description":"Find the OS Places addresses closest to a point (British National Grid by default), within 1,000 metres. Use for \"Which addresses are nearest to easting 437292 northing 115541\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"point":{"description":"Coordinate pair 'x,y' such as '437292.43,115541.95' (units follow `srs`).","maxLength":40,"title":"Point","type":"string"},"radius":{"anyOf":[{"maximum":1000,"minimum":0.01,"type":"number"},{"type":"null"}],"default":100,"description":"Search radius in metres (0.01 to 1000).","title":"Radius"},"srs":{"anyOf":[{"enum":["BNG","EPSG:27700","WGS84","EPSG:4326","EPSG:3857","EPSG:4258"],"type":"string"},{"type":"null"}],"default":"EPSG:27700","description":"Coordinate system of `point`: BNG, EPSG:27700, WGS84, EPSG:4326, EPSG:3857 or EPSG:4258.","title":"Srs"},"output_srs":{"anyOf":[{"enum":["BNG","EPSG:27700","WGS84","EPSG:4326","EPSG:3857","EPSG:4258"],"type":"string"},{"type":"null"}],"default":"EPSG:27700","description":"Coordinate system of returned coordinates: BNG or EPSG:27700 (British National Grid), WGS84 or EPSG:4326 (lat/lng), EPSG:3857, EPSG:4258.","title":"Output Srs"}},"required":["point"],"title":"places_nearestArguments","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/places_radius":{"post":{"operationId":"places_radius","summary":"List the OS Places addresses that fall within a circle around a point, up to 1,000 metres radius. Use for \"List addresse","description":"List the OS Places addresses that fall within a circle around a point, up to 1,000 metres radius. Use for \"List addresses within 200 metres of a WGS84 point 50.9382,-1.4695 (use lng,lat order)\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"point":{"description":"Coordinate pair 'x,y' (units follow `srs`; for WGS84 give 'longitude,latitude').","maxLength":40,"title":"Point","type":"string"},"radius":{"anyOf":[{"maximum":1000,"minimum":0.01,"type":"number"},{"type":"null"}],"default":100,"description":"Circle radius in metres (0.01 to 1000).","title":"Radius"},"srs":{"anyOf":[{"enum":["BNG","EPSG:27700","WGS84","EPSG:4326","EPSG:3857","EPSG:4258"],"type":"string"},{"type":"null"}],"default":"EPSG:27700","description":"Coordinate system of `point`: BNG, EPSG:27700, WGS84, EPSG:4326, EPSG:3857 or EPSG:4258.","title":"Srs"},"maxresults":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Maximum results to return (1 to 100).","title":"Maxresults"},"offset":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Skip this many results (for paging).","title":"Offset"},"output_srs":{"anyOf":[{"enum":["BNG","EPSG:27700","WGS84","EPSG:4326","EPSG:3857","EPSG:4258"],"type":"string"},{"type":"null"}],"default":"EPSG:27700","description":"Coordinate system of returned coordinates: BNG or EPSG:27700 (British National Grid), WGS84 or EPSG:4326 (lat/lng), EPSG:3857, EPSG:4258.","title":"Output Srs"}},"required":["point"],"title":"places_radiusArguments","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/names_find":{"post":{"operationId":"names_find","summary":"Fuzzy search of OS Names (free open data gazetteer): towns, villages, roads, postcodes, hospitals, stations and other na","description":"Fuzzy search of OS Names (free open data gazetteer): towns, villages, roads, postcodes, hospitals, stations and other named places in Great Britain. Use for \"Where is the village of Nursling\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Place name, road or postcode, for example 'Nursling'.","maxLength":200,"title":"Query","type":"string"},"maxresults":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":25,"description":"Maximum results to return (1 to 100).","title":"Maxresults"}},"required":["query"],"title":"names_findArguments","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/names_nearest":{"post":{"operationId":"names_nearest","summary":"Find the OS Names gazetteer entries closest to a British National Grid point (up to 1,000 metres). Use for \"What named p","description":"Find the OS Names gazetteer entries closest to a British National Grid point (up to 1,000 metres). Use for \"What named places are near easting 442000 northing 112000\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"point":{"description":"British National Grid coordinates 'easting,northing', for example '442000,112000'.","maxLength":40,"title":"Point","type":"string"},"radius":{"anyOf":[{"maximum":1000,"minimum":0.01,"type":"number"},{"type":"null"}],"default":100,"description":"Search radius in metres (0.01 to 1000).","title":"Radius"}},"required":["point"],"title":"names_nearestArguments","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}}}}