postcodes_within
Retrieve all UK postcodes within a specified radius of a latitude/longitude coordinate, each with full enrichment data, ordered by distance.
Instructions
Return all UK postcodes within a given radius of a latitude/longitude coordinate, each with full enrichment data. Results are ordered by distance ascending. Each returned postcode costs one quota unit. Requires a Starter plan or above. Maximum radius 5000 metres.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lat": "<lat>",
"lon": "<lon>"
},
"name": "postcodes_within"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude (WGS84), e.g. 51.5074 | |
| lon | Yes | Longitude (WGS84), e.g. -0.1278 | |
| radius | No | Search radius in metres. Default 1000, maximum 5000. |