Compare UK postcodes side by side
postcode_compareCompare two to five UK postcodes on chosen categories, aligned measure by measure.
Fetches each postcode's report concurrently and lines the facts up in a table, so you can answer "which of these is better connected / quieter / cheaper" in one call instead of several.
Args:
postcodes (string[]): 2-5 UK postcodes
categories (string[]): 1-6 of demographics, crime, deprivation, prices, broadband, mobile, noise, transport, amenities, schools, environment
response_format ('markdown' | 'json'): default 'markdown'
Returns: One row per measure with a column per postcode, each cell carrying the value, its band, and the category status for that postcode. Caveats collect anything that makes a row not strictly comparable.
Comparability warnings you must respect, and which this tool surfaces:
Deprivation ranks from different UK nations are NOT comparable — different indices over different numbers of areas.
A measure missing for one postcode because the dataset does not cover that nation is not a low score; the cell says "out_of_coverage".
Ofcom mobile figures describe a whole local authority, so two postcodes in the same authority will always be identical.
Crime counts describe a 1 km square and depend on each police force submitting data; a very low count can be a gap rather than a quiet street.
Examples:
"Which has better broadband, SW11 1AA or M1 1AE?" -> postcodes=[...], categories=["broadband"]
"Compare these three on crime and schools" -> categories=["crime","schools"]
Don't use when: you have one postcode (use postcode_report) or want the underlying datasets (use postcode_search_datasets).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postcodes | Yes | Two to five UK postcodes to compare, e.g. ["SW11 1AA", "M1 1AE"] | |
| categories | Yes | Which categories to compare on. Keep it tight — comparing all eleven across five postcodes produces a very large answer. | |
| response_format | No | 'markdown' for a side-by-side table, 'json' for the structured comparison | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| caveats | Yes | ||
| postcodes | Yes | ||
| categories | Yes |