lookup_uk_postcode
Pay-per-call UK (Great Britain) postcode lookup for AI agents. Send a postcode such as SW1A 2AA and get latitude/longitude, council (local authority), county, region, country, ward, parish, parliamentary constituency and LSOA/MSOA statistical area codes, as clean JSON. Built on official ONS / Ordnance Survey open data, with the required licence attribution included. Invalid or unknown postcodes return an error and are never charged. Great Britain only (no Northern Ireland). Use this when the user gives a UK postcode and needs where it is (coordinates, council, ward, constituency, region) or wants to check a postcode is real. Not for: detailed area data (use uk_location_report) or US addresses. Price: $0.005 USDC per call (x402).
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": {
"q": "<q>"
},
"name": "lookup_uk_postcode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | UK (Great Britain) postcode, e.g. SW1A 2AA. Example: SW1A 2AA |