outcode_info
Retrieves an outcode's centre point plus the local authorities, wards, parishes, counties, countries and constituencies it covers, and can optionally list the nearest neighbouring outcodes.
Instructions
Information about an outcode (the first half of a postcode, such as 'SW1A' or 'M1'): its centre point and the local authorities, wards, parishes, counties, countries and constituencies it spans. Set nearby to also list the closest neighbouring outcodes.
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": {
"outcode": "<outcode>"
},
"name": "outcode_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nearby | No | Number of neighbouring outcodes to include (0 for none). | |
| outcode | Yes | Outcode, e.g. 'LS1'. |