Screen & Rank Great Britain Postcodes
screen_postcodesRank and screen 2–10 Great Britain postcodes by a chosen metric such as affluence, crime safety, or broadband speed to get a sorted leaderboard.
Instructions
Rank and screen 2 to 10 Great Britain postcodes by a specific target metric (affluence, house price, crime safety, broadband speed, family suitability, or connectivity). Returns a sorted leaderboard. For 11 to 50 postcodes use enrich_postcodes; for full cross-metric comparison of 2 to 5 postcodes use compare_postcodes.
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": {
"postcodes": "<postcodes>",
"metric": "<metric>"
},
"name": "screen_postcodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | Sort order: "desc" (highest first, default) or "asc" (lowest first). | desc |
| metric | Yes | Target metric to rank postcodes by: "affluence" (1-100 score), "house_price" (median GBP), "crime_safety" (IMD crime decile), "broadband_speed" (gigabit availability), "family_suitability" (1-100 score), or "connectivity" (transit & broadband). | |
| postcodes | Yes | List of 2 to 10 Great Britain postcodes to screen and rank (e.g. ["SW1A 1AA", "BB7 3BB", "M1 1AE"]). Maximum 10 postcodes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | ||
| _billing | No | ||
| _licensing | No | ||
| _disclaimer | No | ||
| leaderboard | Yes | ||
| _attribution | Yes | ||
| total_screened | Yes | ||
| metric_ranked_by | Yes |