Koskamo

Postcode Context MCP

Provides Great Britain location intelligence including census data, property prices, EPC ratings, and school information via an MCP server supporting x402 micro-payments.

Endpoint and access

No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.

Postcode Context MCP logo, by PostcodeContext.UKVendor evidenceStreamable HTTPNo sign-inEndpoint checked 2026-11-23Operated by PostcodeContext.UK
MCP endpoint (Streamable HTTP)
https://api.postcodecontext.uk/mcp
Vendor documentation

What its tools do

10 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

10 of 10 have a description · 10 of 10 declare behavior hints · 9 of 9 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Passed Official MCP Registry namespace is tied to postcodecontext.uk ·
  • Passed Endpoint is on the registry namespace domain ·
  • Uptime 100% over 90 days
  • Availability 3 of 3 checks passed in 30 days

What you can do with it

  • Retrieve postcode intelligence profiles
  • Compare multiple postcodes
  • Batch enrich postcodes with demographic data

Source and maintenance

Vendor evidenceRegistry 1.0.0
Maintenance checked

Protocol and capabilities

Server
postcode-context 1.0.0
MCP protocol negotiated in check
2025-11-25
Tools
10 advertised
Resources
2 advertised
Resource templates
0 advertised
Prompts
Not advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": true
  },
  "resources": {
    "subscribe": false,
    "listChanged": true
  }
}

Tools

10 advertised

lookup_postcode — Lookup Great Britain Postcode Intelligence Profile
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use when you need demographic, property, EPC energy efficiency, broadband, or socio-economic context for a Great Britain unit postcode (England, Scotland, Wales). Returns full profile by default; use view="brief" (~80 tokens) for low-token, concise briefings when managing context budget. Do not use for non-GB postcodes (e.g. Northern Ireland BT) or when comparing multiple postcodes simultaneously (use compare_postcodes instead).

lookup_postcode input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "postcode"
  ],
  "properties": {
    "view": {
      "enum": [
        "full",
        "brief",
        "summary",
        "ai",
        "property",
        "demographics",
        "education",
        "healthcare",
        "transit",
        "services",
        "schools",
        "health",
        "transport",
        "infrastructure"
      ],
      "type": "string",
      "default": "full",
      "description": "View slice to return: \"full\" (complete 113-metric profile, default), \"brief\" (or \"summary\"/\"ai\", ~80 tokens summary with AI affluence tier & persona, recommended for token efficiency), \"property\" (prices & EPC), \"demographics\" (Census & IMD deciles), \"education\" (or \"schools\"), \"healthcare\" (or \"health\"), \"transit\" (or \"transport\"), or \"services\" (or \"infrastructure\")."
    },
    "exclude": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ],
      "description": "Optional domain(s) to exclude: \"schools\", \"healthcare\", \"transit\" as a comma-separated string (e.g. \"schools, healthcare\") or an array of strings (e.g. [\"schools\", \"healthcare\"]). Note: exclude only applies when view=\"full\"; ignored if a specific view slice is selected."
    },
    "postcode": {
      "type": "string",
      "description": "Great Britain unit postcode to analyze (e.g. SW1A 1AA, BB7 3BB, M1 1AE, EH1 1YZ, CF10 1EP). Space-optional, case-insensitive. Covers England, Scotland, and Wales."
    }
  },
  "additionalProperties": false
}
lookup_postcode output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "location"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "transit": {
      "type": "object",
      "required": [
        "nearest_station"
      ],
      "properties": {
        "nearest_station": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "id",
                "name",
                "station_type",
                "hub_type",
                "distance_km"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "description": "NaPTAN station code (e.g. 9100MNCRVIC, 4900ZZLUWSM1)"
                },
                "name": {
                  "type": "string",
                  "description": "Official station name (e.g. Manchester Victoria, Westminster)"
                },
                "hub_type": {
                  "enum": [
                    "national_hub",
                    "regional_hub",
                    "commuter_hub",
                    "local_station"
                  ],
                  "type": "string",
                  "description": "Station hierarchy tier based on ORR annual passenger footfall and mainline intercity connectivity"
                },
                "distance_km": {
                  "type": "number",
                  "description": "Straight-line distance in kilometres from postcode coordinates"
                },
                "station_type": {
                  "type": "string",
                  "description": "Transit network mode (e.g. National Rail, London Underground, DLR, Metro / Tram)"
                }
              },
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ],
          "description": "Nearest National Rail, London Underground, DLR, or light rail / tram station of any classification"
        },
        "nearest_intercity_hub": {
          "anyOf": [
            {
              "$ref": "#/properties/transit/properties/nearest_station/anyOf/0"
            },
            {
              "type": "null"
            }
          ],
          "description": "Nearest primary national or regional mainline railway hub (>= 2M annual passengers or Network Rail Category A/B interchange)"
        }
      },
      "additionalProperties": false
    },
    "_billing": {
      "type": "object",
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "enum": [
            "demo_always_free",
            "gateway_partner",
            "marketplace_partner",
            "mcp_proxy_bypass",
            "rapidapi_proxy_bypass",
            "mcp_marketplace_license",
            "x402_paid_settled"
          ],
          "type": "string"
        },
        "payer": {
          "type": "string"
        },
        "transactionHash": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "location": {
      "type": "object",
      "required": [
        "postcode",
        "clean_postcode",
        "outcode",
        "incode",
        "lsoa_code",
        "msoa_code",
        "lsoa_name",
        "local_authority",
        "constituency",
        "region_or_nation",
        "rural_urban_classification",
        "latitude",
        "longitude"
      ],
      "properties": {
        "incode": {
          "type": "string",
          "description": "Inward code (e.g. 1AA)"
        },
        "outcode": {
          "type": "string",
          "description": "Outward code (e.g. BB7, SW1A, EH1, CF10)"
        },
        "latitude": {
          "type": "number",
          "description": "WGS84 Latitude"
        },
        "postcode": {
          "type": "string",
          "description": "Standard formatted Great Britain postcode with space"
        },
        "longitude": {
          "type": "number",
          "description": "WGS84 Longitude"
        },
        "lsoa_code": {
          "type": "string",
          "description": "2021 Census Lower Layer Super Output Area code or Data Zone"
        },
        "lsoa_name": {
          "type": "string",
          "description": "Official LSOA / Data Zone name"
        },
        "msoa_code": {
          "type": "string",
          "description": "2021 Census Middle Layer Super Output Area code"
        },
        "constituency": {
          "type": "string",
          "description": "UK Parliamentary Constituency"
        },
        "clean_postcode": {
          "type": "string",
          "description": "Normalised uppercase postcode without spaces"
        },
        "local_authority": {
          "type": "string",
          "description": "Local Authority / District Council name"
        },
        "region_or_nation": {
          "type": "string",
          "description": "Great Britain Region or Sovereign Nation (England, Scotland, Wales)"
        },
        "rural_urban_classification": {
          "type": "string",
          "description": "DEFRA Rural/Urban classification"
        }
      },
      "additionalProperties": false
    },
    "confidence": {
      "enum": [
        "exact",
        "approximate"
      ],
      "type": "string"
    },
    "match_type": {
      "enum": [
        "exact_unit",
        "district_fallback"
      ],
      "type": "string"
    },
    "_attribution": {
      "type": "string"
    },
    "summary_for_ai": {
      "type": "object",
      "required": [
        "ai_context_briefing",
        "primary_persona_tag",
        "affluence_tier",
        "b2c_spending_propensity",
        "affluence_score_100",
        "family_suitability_score_100",
        "commuter_connectivity_score_100",
        "property_value_index"
      ],
      "properties": {
        "affluence_tier": {
          "enum": [
            "Ultra-Prime",
            "Affluent",
            "Mid-Market",
            "Modest-Income",
            "High-Deprivation"
          ],
          "type": "string"
        },
        "affluence_score_100": {
          "type": "number",
          "maximum": 100,
          "minimum": 1,
          "description": "Composite socio-economic score from 1 to 100 (weighted: 35% modelled income, 25% human capital qualifications/NS-SeC, 25% IMD deprivation freedom, 15% homeownership equity; ~10 points represents ~1 national decile shift)"
        },
        "ai_context_briefing": {
          "type": "string",
          "description": "Pre-synthesised dense natural language summary designed for LLM context window injection"
        },
        "primary_persona_tag": {
          "type": "string",
          "description": "Target marketing / demographic persona archetype"
        },
        "property_value_index": {
          "type": "number",
          "description": "Relative property valuation index benchmarked against prime central London baseline (£16,200/sqm ceiling = 100)"
        },
        "b2c_spending_propensity": {
          "type": "string",
          "description": "Inferred neighbourhood consumer expenditure profile derived from local affluence tier and tenure. Represents a macro area characteristic, not an observed financial record of an individual household."
        },
        "family_suitability_score_100": {
          "type": "number",
          "maximum": 100,
          "minimum": 1,
          "description": "Composite family suitability score from 1 to 100 (weighted: 40% statutory crime safety decile, 30% statutory education/skills deprivation decile adjusted by -2 pts/km capped at -20 when nearest school >3km geodesic distance, 30% child and parenting-age demographic density)"
        },
        "commuter_connectivity_score_100": {
          "type": "number",
          "maximum": 100,
          "minimum": 1,
          "description": "Composite multi-modal connectivity score from 1 to 100 (45% straight-line geodesic distance to nearest rail/rapid transit station, up to +15 pts strategic intercity hub bonus, 20% zero-car transit reliance density, 15% broadband speed tier & gigabit coverage, 10% affluence)"
        }
      },
      "additionalProperties": false
    },
    "landmark_context": {
      "type": "object",
      "required": [
        "is_national_landmark",
        "landmark_name",
        "landmark_category",
        "demographic_distortion_note"
      ],
      "properties": {
        "landmark_name": {
          "type": "string",
          "description": "Official name of the landmark (e.g. Buckingham Palace, 10 Downing Street)"
        },
        "landmark_category": {
          "enum": [
            "Royal Residence",
            "Government & Executive",
            "Parliamentary & Civic",
            "National Defence & Security",
            "Central Banking & Financial",
            "National Heritage & Cathedral",
            "Diplomatic & Embassy",
            "Academic & Historic Seat",
            "Healthcare & Medical Research",
            "Correctional & Institutional",
            "National Sports & Culture",
            "Major Transport Hub",
            "Special Non-Geographic",
            "Military Overseas & BFPO"
          ],
          "type": "string",
          "description": "Category classification of the landmark or exceptional entity"
        },
        "is_national_landmark": {
          "type": "boolean",
          "description": "True if this postcode represents a major national landmark, royal palace, civic seat, or special non-geographic entity"
        },
        "demographic_distortion_note": {
          "type": "string",
          "description": "Explanation of divergence between the landmark and surrounding small-area residential census population"
        }
      },
      "additionalProperties": false
    },
    "resolved_district": {
      "type": "string"
    },
    "requested_postcode": {
      "type": "string"
    },
    "census_demographics": {
      "type": "object",
      "required": [
        "population_density_per_sqkm",
        "est_median_household_income_gbp",
        "tenure_breakdown_pct",
        "qualifications_pct",
        "ns_sec_managerial_professional_pct",
        "economically_active_employed_pct",
        "retired_pct",
        "student_pct",
        "work_from_home_pct",
        "car_ownership_pct",
        "age_distribution_pct"
      ],
      "properties": {
        "retired_pct": {
          "type": "number"
        },
        "student_pct": {
          "type": "number"
        },
        "car_ownership_pct": {
          "type": "object",
          "required": [
            "zero_cars",
            "two_or_more_cars"
          ],
          "properties": {
            "zero_cars": {
              "type": "number"
            },
            "two_or_more_cars": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "qualifications_pct": {
          "type": "object",
          "required": [
            "degree_or_higher_level4_plus",
            "no_qualifications"
          ],
          "properties": {
            "no_qualifications": {
              "type": "number"
            },
            "degree_or_higher_level4_plus": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "work_from_home_pct": {
          "type": "number"
        },
        "age_distribution_pct": {
          "type": "object",
          "required": [
            "age_0_to_15",
            "age_16_to_29",
            "age_30_to_44",
            "age_45_to_64",
            "age_65_plus"
          ],
          "properties": {
            "age_0_to_15": {
              "type": "number"
            },
            "age_65_plus": {
              "type": "number"
            },
            "age_16_to_29": {
              "type": "number"
            },
            "age_30_to_44": {
              "type": "number"
            },
            "age_45_to_64": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "tenure_breakdown_pct": {
          "type": "object",
          "required": [
            "owned_outright",
            "mortgaged",
            "private_rented",
            "social_rented"
          ],
          "properties": {
            "mortgaged": {
              "type": "number"
            },
            "social_rented": {
              "type": "number"
            },
            "owned_outright": {
              "type": "number"
            },
            "private_rented": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "population_density_per_sqkm": {
          "type": "number",
          "description": "Resident population density per square kilometre from Census 2021 small area boundaries"
        },
        "est_median_household_income_gbp": {
          "type": "number",
          "description": "Heuristic neighbourhood estimate of annual median gross disposable household income in GBP (LSOA/Data Zone level) derived from a linear formula weighting DWP/HMRC income deprivation deciles, Census NS-SeC managerial occupation shares, and Level 4 qualifications, clamped at £21,000–£95,000. Not an observed Census return."
        },
        "economically_active_employed_pct": {
          "type": "number"
        },
        "ns_sec_managerial_professional_pct": {
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "deprivation_deciles": {
      "type": "object",
      "required": [
        "_scale_explanation",
        "imd_overall_decile",
        "imd_overall_rank",
        "income_deprivation_decile",
        "employment_deprivation_decile",
        "education_skills_decile",
        "health_deprivation_decile",
        "crime_safety_decile",
        "housing_barriers_decile",
        "living_environment_decile"
      ],
      "properties": {
        "imd_overall_rank": {
          "type": [
            "number",
            "null"
          ]
        },
        "_scale_explanation": {
          "type": "string",
          "description": "1 = most deprived 10% nationally, 10 = least deprived 10% nationally"
        },
        "imd_overall_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "crime_safety_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ],
          "description": "Statutory Crime Deprivation Decile (1-10) from the English IoD 2025, Welsh WIMD 2025, and Scottish SIMD 2020 (1 = highest recorded crime deprivation nationally, 10 = lowest recorded crime deprivation / safest 10%). Sourced from multi-year police records per capita at LSOA level. Represents neighbourhood historical baseline, not individual personal victimisation risk."
        },
        "education_skills_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "housing_barriers_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "health_deprivation_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "income_deprivation_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "living_environment_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "employment_deprivation_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "property_and_energy": {
      "type": "object",
      "required": [
        "median_house_price_gbp",
        "price_per_sqm_gbp",
        "price_basis",
        "sales_volume_3yr",
        "dominant_property_type",
        "avg_floor_area_sqm",
        "epc_rating_current",
        "epc_rating_potential",
        "retrofit_upside_potential",
        "pre_1930_housing_pct"
      ],
      "properties": {
        "price_basis": {
          "type": "object",
          "required": [
            "resolution",
            "window",
            "n"
          ],
          "properties": {
            "n": {
              "type": "number",
              "description": "Number of recorded transactions in rolling window used to compute median price"
            },
            "window": {
              "type": "string",
              "description": "Rolling temporal transaction window (2024–2026 for England & Wales, 2023–2025 for Scotland)"
            },
            "resolution": {
              "enum": [
                "postcode",
                "data_zone",
                "outcode_district",
                "local_authority"
              ],
              "type": "string",
              "description": "Spatial granularity of the median property valuation"
            }
          },
          "description": "Spatial resolution and temporal window metadata for the property transaction valuation",
          "additionalProperties": false
        },
        "sales_volume_3yr": {
          "type": [
            "number",
            "null"
          ],
          "description": "Transaction volume recorded in 3-year window"
        },
        "price_per_sqm_gbp": {
          "type": [
            "number",
            "null"
          ],
          "description": "Synthetic property valuation benchmark joining 3-year rolling median transaction prices (HMLR / RoS) with domestic mean internal floor areas (Open EPC / Scottish EPC Register) at postcode level"
        },
        "avg_floor_area_sqm": {
          "type": [
            "number",
            "null"
          ],
          "description": "Mean domestic internal floor area from Open EPC Register"
        },
        "epc_rating_current": {
          "type": [
            "string",
            "null"
          ],
          "description": "Modal current EPC energy efficiency band (A-G)"
        },
        "epc_rating_potential": {
          "type": [
            "string",
            "null"
          ],
          "description": "Modal potential EPC energy efficiency band (A-G)"
        },
        "pre_1930_housing_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Percentage of domestic stock built prior to 1930"
        },
        "dominant_property_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "Predominant housing typology (Detached, Semi-Detached, Terraced, Flat/Maisonette)"
        },
        "median_house_price_gbp": {
          "type": [
            "number",
            "null"
          ],
          "description": "HM Land Registry (E&W 2024–2026) and Registers of Scotland (Scotland 2023–2025) 3-year rolling median transaction price in GBP"
        },
        "retrofit_upside_potential": {
          "type": [
            "string",
            "null"
          ],
          "description": "Summary of energy efficiency retrofit potential"
        }
      },
      "additionalProperties": false
    },
    "schools_and_education": {
      "type": "object",
      "required": [
        "nearest_primary_school",
        "nearest_secondary_school"
      ],
      "properties": {
        "nearest_primary_school": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "id",
                "name",
                "phase",
                "gender",
                "religious_character",
                "admissions_policy",
                "distance_km"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Unique school identifier e.g. ENG-101138, SCO-5507427, WAL-6813350"
                },
                "name": {
                  "type": "string",
                  "description": "Official school name (headteachers/staff names strictly excluded)"
                },
                "phase": {
                  "type": "string",
                  "description": "Educational phase: Primary, Secondary, 16 plus, All-through"
                },
                "gender": {
                  "type": "string",
                  "description": "Admissions gender: Mixed, Boys, Girls"
                },
                "distance_km": {
                  "type": "number",
                  "description": "Straight-line distance in kilometers from postcode coordinates"
                },
                "admissions_policy": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Admissions policy e.g. Non-selective, Selective"
                },
                "religious_character": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Religious ethos or designation, or null if secular/none"
                }
              },
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ],
          "description": "Nearest primary or all-through school"
        },
        "nearest_secondary_school": {
          "anyOf": [
            {
              "$ref": "#/properties/schools_and_education/properties/nearest_primary_school/anyOf/0"
            },
            {
              "type": "null"
            }
          ],
          "description": "Nearest secondary or all-through school"
        }
      },
      "additionalProperties": false
    },
    "digital_infrastructure": {
      "type": "object",
      "required": [
        "broadband_speed_tier_mbps",
        "gigabit_availability_pct"
      ],
      "properties": {
        "median_download_mbps": {
          "type": "number",
          "description": "Median fixed broadband download speed in Mbps (Ofcom Connected Nations)"
        },
        "gigabit_availability_pct": {
          "type": "number",
          "description": "Ofcom full-fibre / gigabit network coverage percentage"
        },
        "broadband_speed_tier_mbps": {
          "type": "number",
          "description": "Estimated fixed broadband download speed tier in Mbps (350, 120, 80, or 68.5 Mbps baseline derived from Ofcom Connected Nations availability brackets)"
        }
      },
      "additionalProperties": false
    },
    "healthcare_and_services": {
      "type": "object",
      "required": [
        "nearest_gp_surgery"
      ],
      "properties": {
        "nearest_gp_surgery": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "id",
                "name",
                "care_type",
                "distance_km",
                "regulator",
                "rating",
                "inspection_date"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "description": "CQC or NHS provider/location ID e.g. CQC-1-12687408410"
                },
                "name": {
                  "type": "string",
                  "description": "Facility name (individual managers/partners strictly excluded)"
                },
                "rating": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Regulatory rating e.g. Outstanding, Good, or null if unrated/pending"
                },
                "care_type": {
                  "type": "string",
                  "description": "Service classification: GP Practice, Hospital, Clinic"
                },
                "regulator": {
                  "type": "string",
                  "description": "National healthcare regulator e.g. CQC, HIS, HIW"
                },
                "distance_km": {
                  "type": "number",
                  "description": "Straight-line distance in kilometers from postcode coordinates"
                },
                "inspection_date": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Inspection date or last verified date"
                }
              },
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ],
          "description": "Nearest GP practice / general practitioner surgery"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
lookup_postcode annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
compare_postcodes — Compare Great Britain Postcodes Side-by-Side
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use when you need to directly contrast 2 to 5 Great Britain postcodes across affluence, safety, housing cost per m², broadband, and family suitability. Returns full profiles by default; use view="brief" (~80 tokens per postcode) to keep context compact alongside the comparison ranking. Do not use for single postcode inspection (use lookup_postcode) or bulk batches of >5 postcodes (use enrich_postcodes).

compare_postcodes input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "postcodes"
  ],
  "properties": {
    "view": {
      "enum": [
        "full",
        "brief",
        "summary",
        "ai",
        "property",
        "demographics",
        "education",
        "healthcare",
        "transit",
        "services",
        "schools",
        "health",
        "transport",
        "infrastructure"
      ],
      "type": "string",
      "default": "full",
      "description": "View slice for returned postcode profiles: \"full\" (complete profile per postcode, default), \"brief\" (or \"summary\"/\"ai\", ~80 tokens per postcode, recommended to minimize context usage alongside comparison ranking), \"property\", \"demographics\", \"education\", \"healthcare\", \"transit\", or \"services\"."
    },
    "postcodes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 5,
      "minItems": 2,
      "description": "List of 2 to 5 distinct Great Britain postcodes to compare side-by-side (e.g. [\"SW1A 1AA\", \"BB7 3BB\"]). Must contain at least 2 distinct postcodes in England, Scotland, or Wales."
    }
  },
  "additionalProperties": false
}
compare_postcodes output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "postcodes",
    "comparison_synthesis",
    "_attribution"
  ],
  "properties": {
    "_billing": {
      "type": "object",
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "enum": [
            "demo_always_free",
            "gateway_partner",
            "marketplace_partner",
            "mcp_proxy_bypass",
            "rapidapi_proxy_bypass",
            "mcp_marketplace_license",
            "x402_paid_settled"
          ],
          "type": "string"
        },
        "payer": {
          "type": "string"
        },
        "transactionHash": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "postcodes": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "location"
        ],
        "properties": {
          "note": {
            "type": "string"
          },
          "transit": {
            "type": "object",
            "required": [
              "nearest_station"
            ],
            "properties": {
              "nearest_station": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "station_type",
                      "hub_type",
                      "distance_km"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "NaPTAN station code (e.g. 9100MNCRVIC, 4900ZZLUWSM1)"
                      },
                      "name": {
                        "type": "string",
                        "description": "Official station name (e.g. Manchester Victoria, Westminster)"
                      },
                      "hub_type": {
                        "enum": [
                          "national_hub",
                          "regional_hub",
                          "commuter_hub",
                          "local_station"
                        ],
                        "type": "string",
                        "description": "Station hierarchy tier based on ORR annual passenger footfall and mainline intercity connectivity"
                      },
                      "distance_km": {
                        "type": "number",
                        "description": "Straight-line distance in kilometres from postcode coordinates"
                      },
                      "station_type": {
                        "type": "string",
                        "description": "Transit network mode (e.g. National Rail, London Underground, DLR, Metro / Tram)"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Nearest National Rail, London Underground, DLR, or light rail / tram station of any classification"
              },
              "nearest_intercity_hub": {
                "anyOf": [
                  {
                    "$ref": "#/properties/postcodes/items/properties/transit/properties/nearest_station/anyOf/0"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Nearest primary national or regional mainline railway hub (>= 2M annual passengers or Network Rail Category A/B interchange)"
              }
            },
            "additionalProperties": false
          },
          "location": {
            "type": "object",
            "required": [
              "postcode",
              "clean_postcode",
              "outcode",
              "incode",
              "lsoa_code",
              "msoa_code",
              "lsoa_name",
              "local_authority",
              "constituency",
              "region_or_nation",
              "rural_urban_classification",
              "latitude",
              "longitude"
            ],
            "properties": {
              "incode": {
                "type": "string",
                "description": "Inward code (e.g. 1AA)"
              },
              "outcode": {
                "type": "string",
                "description": "Outward code (e.g. BB7, SW1A, EH1, CF10)"
              },
              "latitude": {
                "type": "number",
                "description": "WGS84 Latitude"
              },
              "postcode": {
                "type": "string",
                "description": "Standard formatted Great Britain postcode with space"
              },
              "longitude": {
                "type": "number",
                "description": "WGS84 Longitude"
              },
              "lsoa_code": {
                "type": "string",
                "description": "2021 Census Lower Layer Super Output Area code or Data Zone"
              },
              "lsoa_name": {
                "type": "string",
                "description": "Official LSOA / Data Zone name"
              },
              "msoa_code": {
                "type": "string",
                "description": "2021 Census Middle Layer Super Output Area code"
              },
              "constituency": {
                "type": "string",
                "description": "UK Parliamentary Constituency"
              },
              "clean_postcode": {
                "type": "string",
                "description": "Normalised uppercase postcode without spaces"
              },
              "local_authority": {
                "type": "string",
                "description": "Local Authority / District Council name"
              },
              "region_or_nation": {
                "type": "string",
                "description": "Great Britain Region or Sovereign Nation (England, Scotland, Wales)"
              },
              "rural_urban_classification": {
                "type": "string",
                "description": "DEFRA Rural/Urban classification"
              }
            },
            "additionalProperties": false
          },
          "confidence": {
            "enum": [
              "exact",
              "approximate"
            ],
            "type": "string"
          },
          "match_type": {
            "enum": [
              "exact_unit",
              "district_fallback"
            ],
            "type": "string"
          },
          "summary_for_ai": {
            "type": "object",
            "required": [
              "ai_context_briefing",
              "primary_persona_tag",
              "affluence_tier",
              "b2c_spending_propensity",
              "affluence_score_100",
              "family_suitability_score_100",
              "commuter_connectivity_score_100",
              "property_value_index"
            ],
            "properties": {
              "affluence_tier": {
                "enum": [
                  "Ultra-Prime",
                  "Affluent",
                  "Mid-Market",
                  "Modest-Income",
                  "High-Deprivation"
                ],
                "type": "string"
              },
              "affluence_score_100": {
                "type": "number",
                "maximum": 100,
                "minimum": 1,
                "description": "Composite socio-economic score from 1 to 100 (weighted: 35% modelled income, 25% human capital qualifications/NS-SeC, 25% IMD deprivation freedom, 15% homeownership equity; ~10 points represents ~1 national decile shift)"
              },
              "ai_context_briefing": {
                "type": "string",
                "description": "Pre-synthesised dense natural language summary designed for LLM context window injection"
              },
              "primary_persona_tag": {
                "type": "string",
                "description": "Target marketing / demographic persona archetype"
              },
              "property_value_index": {
                "type": "number",
                "description": "Relative property valuation index benchmarked against prime central London baseline (£16,200/sqm ceiling = 100)"
              },
              "b2c_spending_propensity": {
                "type": "string",
                "description": "Inferred neighbourhood consumer expenditure profile derived from local affluence tier and tenure. Represents a macro area characteristic, not an observed financial record of an individual household."
              },
              "family_suitability_score_100": {
                "type": "number",
                "maximum": 100,
                "minimum": 1,
                "description": "Composite family suitability score from 1 to 100 (weighted: 40% statutory crime safety decile, 30% statutory education/skills deprivation decile adjusted by -2 pts/km capped at -20 when nearest school >3km geodesic distance, 30% child and parenting-age demographic density)"
              },
              "commuter_connectivity_score_100": {
                "type": "number",
                "maximum": 100,
                "minimum": 1,
                "description": "Composite multi-modal connectivity score from 1 to 100 (45% straight-line geodesic distance to nearest rail/rapid transit station, up to +15 pts strategic intercity hub bonus, 20% zero-car transit reliance density, 15% broadband speed tier & gigabit coverage, 10% affluence)"
              }
            },
            "additionalProperties": false
          },
          "landmark_context": {
            "type": "object",
            "required": [
              "is_national_landmark",
              "landmark_name",
              "landmark_category",
              "demographic_distortion_note"
            ],
            "properties": {
              "landmark_name": {
                "type": "string",
                "description": "Official name of the landmark (e.g. Buckingham Palace, 10 Downing Street)"
              },
              "landmark_category": {
                "enum": [
                  "Royal Residence",
                  "Government & Executive",
                  "Parliamentary & Civic",
                  "National Defence & Security",
                  "Central Banking & Financial",
                  "National Heritage & Cathedral",
                  "Diplomatic & Embassy",
                  "Academic & Historic Seat",
                  "Healthcare & Medical Research",
                  "Correctional & Institutional",
                  "National Sports & Culture",
                  "Major Transport Hub",
                  "Special Non-Geographic",
                  "Military Overseas & BFPO"
                ],
                "type": "string",
                "description": "Category classification of the landmark or exceptional entity"
              },
              "is_national_landmark": {
                "type": "boolean",
                "description": "True if this postcode represents a major national landmark, royal palace, civic seat, or special non-geographic entity"
              },
              "demographic_distortion_note": {
                "type": "string",
                "description": "Explanation of divergence between the landmark and surrounding small-area residential census population"
              }
            },
            "additionalProperties": false
          },
          "resolved_district": {
            "type": "string"
          },
          "requested_postcode": {
            "type": "string"
          },
          "census_demographics": {
            "type": "object",
            "required": [
              "population_density_per_sqkm",
              "est_median_household_income_gbp",
              "tenure_breakdown_pct",
              "qualifications_pct",
              "ns_sec_managerial_professional_pct",
              "economically_active_employed_pct",
              "retired_pct",
              "student_pct",
              "work_from_home_pct",
              "car_ownership_pct",
              "age_distribution_pct"
            ],
            "properties": {
              "retired_pct": {
                "type": "number"
              },
              "student_pct": {
                "type": "number"
              },
              "car_ownership_pct": {
                "type": "object",
                "required": [
                  "zero_cars",
                  "two_or_more_cars"
                ],
                "properties": {
                  "zero_cars": {
                    "type": "number"
                  },
                  "two_or_more_cars": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "qualifications_pct": {
                "type": "object",
                "required": [
                  "degree_or_higher_level4_plus",
                  "no_qualifications"
                ],
                "properties": {
                  "no_qualifications": {
                    "type": "number"
                  },
                  "degree_or_higher_level4_plus": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "work_from_home_pct": {
                "type": "number"
              },
              "age_distribution_pct": {
                "type": "object",
                "required": [
                  "age_0_to_15",
                  "age_16_to_29",
                  "age_30_to_44",
                  "age_45_to_64",
                  "age_65_plus"
                ],
                "properties": {
                  "age_0_to_15": {
                    "type": "number"
                  },
                  "age_65_plus": {
                    "type": "number"
                  },
                  "age_16_to_29": {
                    "type": "number"
                  },
                  "age_30_to_44": {
                    "type": "number"
                  },
                  "age_45_to_64": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "tenure_breakdown_pct": {
                "type": "object",
                "required": [
                  "owned_outright",
                  "mortgaged",
                  "private_rented",
                  "social_rented"
                ],
                "properties": {
                  "mortgaged": {
                    "type": "number"
                  },
                  "social_rented": {
                    "type": "number"
                  },
                  "owned_outright": {
                    "type": "number"
                  },
                  "private_rented": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "population_density_per_sqkm": {
                "type": "number",
                "description": "Resident population density per square kilometre from Census 2021 small area boundaries"
              },
              "est_median_household_income_gbp": {
                "type": "number",
                "description": "Heuristic neighbourhood estimate of annual median gross disposable household income in GBP (LSOA/Data Zone level) derived from a linear formula weighting DWP/HMRC income deprivation deciles, Census NS-SeC managerial occupation shares, and Level 4 qualifications, clamped at £21,000–£95,000. Not an observed Census return."
              },
              "economically_active_employed_pct": {
                "type": "number"
              },
              "ns_sec_managerial_professional_pct": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "deprivation_deciles": {
            "type": "object",
            "required": [
              "_scale_explanation",
              "imd_overall_decile",
              "imd_overall_rank",
              "income_deprivation_decile",
              "employment_deprivation_decile",
              "education_skills_decile",
              "health_deprivation_decile",
              "crime_safety_decile",
              "housing_barriers_decile",
              "living_environment_decile"
            ],
            "properties": {
              "imd_overall_rank": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "_scale_explanation": {
                "type": "string",
                "description": "1 = most deprived 10% nationally, 10 = least deprived 10% nationally"
              },
              "imd_overall_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "crime_safety_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Statutory Crime Deprivation Decile (1-10) from the English IoD 2025, Welsh WIMD 2025, and Scottish SIMD 2020 (1 = highest recorded crime deprivation nationally, 10 = lowest recorded crime deprivation / safest 10%). Sourced from multi-year police records per capita at LSOA level. Represents neighbourhood historical baseline, not individual personal victimisation risk."
              },
              "education_skills_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "housing_barriers_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "health_deprivation_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "income_deprivation_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "living_environment_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "employment_deprivation_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "property_and_energy": {
            "type": "object",
            "required": [
              "median_house_price_gbp",
              "price_per_sqm_gbp",
              "price_basis",
              "sales_volume_3yr",
              "dominant_property_type",
              "avg_floor_area_sqm",
              "epc_rating_current",
              "epc_rating_potential",
              "retrofit_upside_potential",
              "pre_1930_housing_pct"
            ],
            "properties": {
              "price_basis": {
                "type": "object",
                "required": [
                  "resolution",
                  "window",
                  "n"
                ],
                "properties": {
                  "n": {
                    "type": "number",
                    "description": "Number of recorded transactions in rolling window used to compute median price"
                  },
                  "window": {
                    "type": "string",
                    "description": "Rolling temporal transaction window (2024–2026 for England & Wales, 2023–2025 for Scotland)"
                  },
                  "resolution": {
                    "enum": [
                      "postcode",
                      "data_zone",
                      "outcode_district",
                      "local_authority"
                    ],
                    "type": "string",
                    "description": "Spatial granularity of the median property valuation"
                  }
                },
                "description": "Spatial resolution and temporal window metadata for the property transaction valuation",
                "additionalProperties": false
              },
              "sales_volume_3yr": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Transaction volume recorded in 3-year window"
              },
              "price_per_sqm_gbp": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Synthetic property valuation benchmark joining 3-year rolling median transaction prices (HMLR / RoS) with domestic mean internal floor areas (Open EPC / Scottish EPC Register) at postcode level"
              },
              "avg_floor_area_sqm": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Mean domestic internal floor area from Open EPC Register"
              },
              "epc_rating_current": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Modal current EPC energy efficiency band (A-G)"
              },
              "epc_rating_potential": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Modal potential EPC energy efficiency band (A-G)"
              },
              "pre_1930_housing_pct": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Percentage of domestic stock built prior to 1930"
              },
              "dominant_property_type": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Predominant housing typology (Detached, Semi-Detached, Terraced, Flat/Maisonette)"
              },
              "median_house_price_gbp": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "HM Land Registry (E&W 2024–2026) and Registers of Scotland (Scotland 2023–2025) 3-year rolling median transaction price in GBP"
              },
              "retrofit_upside_potential": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Summary of energy efficiency retrofit potential"
              }
            },
            "additionalProperties": false
          },
          "schools_and_education": {
            "type": "object",
            "required": [
              "nearest_primary_school",
              "nearest_secondary_school"
            ],
            "properties": {
              "nearest_primary_school": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "phase",
                      "gender",
                      "religious_character",
                      "admissions_policy",
                      "distance_km"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Unique school identifier e.g. ENG-101138, SCO-5507427, WAL-6813350"
                      },
                      "name": {
                        "type": "string",
                        "description": "Official school name (headteachers/staff names strictly excluded)"
                      },
                      "phase": {
                        "type": "string",
                        "description": "Educational phase: Primary, Secondary, 16 plus, All-through"
                      },
                      "gender": {
                        "type": "string",
                        "description": "Admissions gender: Mixed, Boys, Girls"
                      },
                      "distance_km": {
                        "type": "number",
                        "description": "Straight-line distance in kilometers from postcode coordinates"
                      },
                      "admissions_policy": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Admissions policy e.g. Non-selective, Selective"
                      },
                      "religious_character": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Religious ethos or designation, or null if secular/none"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Nearest primary or all-through school"
              },
              "nearest_secondary_school": {
                "anyOf": [
                  {
                    "$ref": "#/properties/postcodes/items/properties/schools_and_education/properties/nearest_primary_school/anyOf/0"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Nearest secondary or all-through school"
              }
            },
            "additionalProperties": false
          },
          "digital_infrastructure": {
            "type": "object",
            "required": [
              "broadband_speed_tier_mbps",
              "gigabit_availability_pct"
            ],
            "properties": {
              "median_download_mbps": {
                "type": "number",
                "description": "Median fixed broadband download speed in Mbps (Ofcom Connected Nations)"
              },
              "gigabit_availability_pct": {
                "type": "number",
                "description": "Ofcom full-fibre / gigabit network coverage percentage"
              },
              "broadband_speed_tier_mbps": {
                "type": "number",
                "description": "Estimated fixed broadband download speed tier in Mbps (350, 120, 80, or 68.5 Mbps baseline derived from Ofcom Connected Nations availability brackets)"
              }
            },
            "additionalProperties": false
          },
          "healthcare_and_services": {
            "type": "object",
            "required": [
              "nearest_gp_surgery"
            ],
            "properties": {
              "nearest_gp_surgery": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "care_type",
                      "distance_km",
                      "regulator",
                      "rating",
                      "inspection_date"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "CQC or NHS provider/location ID e.g. CQC-1-12687408410"
                      },
                      "name": {
                        "type": "string",
                        "description": "Facility name (individual managers/partners strictly excluded)"
                      },
                      "rating": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Regulatory rating e.g. Outstanding, Good, or null if unrated/pending"
                      },
                      "care_type": {
                        "type": "string",
                        "description": "Service classification: GP Practice, Hospital, Clinic"
                      },
                      "regulator": {
                        "type": "string",
                        "description": "National healthcare regulator e.g. CQC, HIS, HIW"
                      },
                      "distance_km": {
                        "type": "number",
                        "description": "Straight-line distance in kilometers from postcode coordinates"
                      },
                      "inspection_date": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Inspection date or last verified date"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Nearest GP practice / general practitioner surgery"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    "_attribution": {
      "type": "string"
    },
    "comparison_synthesis": {
      "type": "object",
      "required": [
        "highest_affluence",
        "lowest_crime",
        "lowest_price_per_sqm",
        "fastest_broadband",
        "highest_family_score",
        "synthesis_notes"
      ],
      "properties": {
        "lowest_crime": {
          "type": "object",
          "required": [
            "postcode",
            "decile"
          ],
          "properties": {
            "decile": {
              "type": [
                "number",
                "null"
              ]
            },
            "postcode": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "metrics_summary": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "postcode",
              "affluence_score_100",
              "affluence_tier",
              "crime_safety_decile",
              "price_per_sqm_gbp",
              "median_house_price_gbp",
              "family_suitability_score_100"
            ],
            "properties": {
              "postcode": {
                "type": "string"
              },
              "affluence_tier": {
                "type": "string"
              },
              "median_down_mbps": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Legacy alias for broadband_speed_tier_mbps"
              },
              "price_per_sqm_gbp": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "affluence_score_100": {
                "type": "number"
              },
              "crime_safety_decile": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "median_house_price_gbp": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "broadband_speed_tier_mbps": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Estimated fixed broadband download speed tier in Mbps"
              },
              "family_suitability_score_100": {
                "type": "number"
              }
            },
            "additionalProperties": false
          }
        },
        "synthesis_notes": {
          "type": "string"
        },
        "scale_directions": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "fastest_broadband": {
          "type": "object",
          "required": [
            "postcode",
            "median_down_mbps"
          ],
          "properties": {
            "postcode": {
              "type": "string"
            },
            "median_down_mbps": {
              "type": "number"
            },
            "broadband_speed_tier_mbps": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "highest_affluence": {
          "type": "object",
          "required": [
            "postcode",
            "score",
            "tier"
          ],
          "properties": {
            "tier": {
              "type": "string"
            },
            "score": {
              "type": "number"
            },
            "postcode": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "highest_family_score": {
          "type": "object",
          "required": [
            "postcode",
            "score"
          ],
          "properties": {
            "score": {
              "type": "number"
            },
            "postcode": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "lowest_price_per_sqm": {
          "type": "object",
          "required": [
            "postcode",
            "price_per_sqm_gbp"
          ],
          "properties": {
            "postcode": {
              "type": "string"
            },
            "price_per_sqm_gbp": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "additionalProperties": false
        },
        "comparability_caveats": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
compare_postcodes annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
enrich_postcodes — Enrich Bulk Great Britain Postcodes Cohort
Advertised by the server during the last successful anonymous check.
Advertised read-only

Bulk demographic, economic, and spatial lookup for 1 to 50 Great Britain postcodes. Returns brief profile by default (~80 tokens per postcode) to prevent context blow-up; use view="full" when all 113 metrics are needed. Cost-effective for 6 to 50 postcodes ($0.050 flat fee). For 1 postcode use lookup_postcode ($0.005); for 2 to 5 postcodes use compare_postcodes ($0.010). Do not use when detailed side-by-side comparative rankings are required (use compare_postcodes).

enrich_postcodes input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "postcodes"
  ],
  "properties": {
    "view": {
      "enum": [
        "full",
        "brief",
        "summary",
        "ai",
        "property",
        "demographics",
        "education",
        "healthcare",
        "transit",
        "services",
        "schools",
        "health",
        "transport",
        "infrastructure"
      ],
      "type": "string",
      "default": "brief",
      "description": "View slice for each postcode in the batch results: \"brief\" (or \"summary\"/\"ai\", ~80 tokens per postcode, default for batch calls to prevent context blow-up), \"full\" (complete 113-metric dataset per postcode, explicitly requested when all metrics needed), \"property\", \"demographics\", \"education\", \"healthcare\", \"transit\", or \"services\"."
    },
    "postcodes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 50,
      "minItems": 1,
      "description": "Array of 1 to 50 Great Britain postcodes to enrich. Cost-effective for 6 to 50 postcodes ($0.050 flat fee). For 1 postcode use lookup_postcode ($0.005); for 2 to 5 postcodes use compare_postcodes ($0.010)."
    }
  },
  "additionalProperties": false
}
enrich_postcodes output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "results",
    "cohort_summary",
    "_attribution"
  ],
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "location"
        ],
        "properties": {
          "note": {
            "type": "string"
          },
          "transit": {
            "type": "object",
            "required": [
              "nearest_station"
            ],
            "properties": {
              "nearest_station": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "station_type",
                      "hub_type",
                      "distance_km"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "NaPTAN station code (e.g. 9100MNCRVIC, 4900ZZLUWSM1)"
                      },
                      "name": {
                        "type": "string",
                        "description": "Official station name (e.g. Manchester Victoria, Westminster)"
                      },
                      "hub_type": {
                        "enum": [
                          "national_hub",
                          "regional_hub",
                          "commuter_hub",
                          "local_station"
                        ],
                        "type": "string",
                        "description": "Station hierarchy tier based on ORR annual passenger footfall and mainline intercity connectivity"
                      },
                      "distance_km": {
                        "type": "number",
                        "description": "Straight-line distance in kilometres from postcode coordinates"
                      },
                      "station_type": {
                        "type": "string",
                        "description": "Transit network mode (e.g. National Rail, London Underground, DLR, Metro / Tram)"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Nearest National Rail, London Underground, DLR, or light rail / tram station of any classification"
              },
              "nearest_intercity_hub": {
                "anyOf": [
                  {
                    "$ref": "#/properties/results/items/properties/transit/properties/nearest_station/anyOf/0"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Nearest primary national or regional mainline railway hub (>= 2M annual passengers or Network Rail Category A/B interchange)"
              }
            },
            "additionalProperties": false
          },
          "location": {
            "type": "object",
            "required": [
              "postcode",
              "clean_postcode",
              "outcode",
              "incode",
              "lsoa_code",
              "msoa_code",
              "lsoa_name",
              "local_authority",
              "constituency",
              "region_or_nation",
              "rural_urban_classification",
              "latitude",
              "longitude"
            ],
            "properties": {
              "incode": {
                "type": "string",
                "description": "Inward code (e.g. 1AA)"
              },
              "outcode": {
                "type": "string",
                "description": "Outward code (e.g. BB7, SW1A, EH1, CF10)"
              },
              "latitude": {
                "type": "number",
                "description": "WGS84 Latitude"
              },
              "postcode": {
                "type": "string",
                "description": "Standard formatted Great Britain postcode with space"
              },
              "longitude": {
                "type": "number",
                "description": "WGS84 Longitude"
              },
              "lsoa_code": {
                "type": "string",
                "description": "2021 Census Lower Layer Super Output Area code or Data Zone"
              },
              "lsoa_name": {
                "type": "string",
                "description": "Official LSOA / Data Zone name"
              },
              "msoa_code": {
                "type": "string",
                "description": "2021 Census Middle Layer Super Output Area code"
              },
              "constituency": {
                "type": "string",
                "description": "UK Parliamentary Constituency"
              },
              "clean_postcode": {
                "type": "string",
                "description": "Normalised uppercase postcode without spaces"
              },
              "local_authority": {
                "type": "string",
                "description": "Local Authority / District Council name"
              },
              "region_or_nation": {
                "type": "string",
                "description": "Great Britain Region or Sovereign Nation (England, Scotland, Wales)"
              },
              "rural_urban_classification": {
                "type": "string",
                "description": "DEFRA Rural/Urban classification"
              }
            },
            "additionalProperties": false
          },
          "confidence": {
            "enum": [
              "exact",
              "approximate"
            ],
            "type": "string"
          },
          "match_type": {
            "enum": [
              "exact_unit",
              "district_fallback"
            ],
            "type": "string"
          },
          "summary_for_ai": {
            "type": "object",
            "required": [
              "ai_context_briefing",
              "primary_persona_tag",
              "affluence_tier",
              "b2c_spending_propensity",
              "affluence_score_100",
              "family_suitability_score_100",
              "commuter_connectivity_score_100",
              "property_value_index"
            ],
            "properties": {
              "affluence_tier": {
                "enum": [
                  "Ultra-Prime",
                  "Affluent",
                  "Mid-Market",
                  "Modest-Income",
                  "High-Deprivation"
                ],
                "type": "string"
              },
              "affluence_score_100": {
                "type": "number",
                "maximum": 100,
                "minimum": 1,
                "description": "Composite socio-economic score from 1 to 100 (weighted: 35% modelled income, 25% human capital qualifications/NS-SeC, 25% IMD deprivation freedom, 15% homeownership equity; ~10 points represents ~1 national decile shift)"
              },
              "ai_context_briefing": {
                "type": "string",
                "description": "Pre-synthesised dense natural language summary designed for LLM context window injection"
              },
              "primary_persona_tag": {
                "type": "string",
                "description": "Target marketing / demographic persona archetype"
              },
              "property_value_index": {
                "type": "number",
                "description": "Relative property valuation index benchmarked against prime central London baseline (£16,200/sqm ceiling = 100)"
              },
              "b2c_spending_propensity": {
                "type": "string",
                "description": "Inferred neighbourhood consumer expenditure profile derived from local affluence tier and tenure. Represents a macro area characteristic, not an observed financial record of an individual household."
              },
              "family_suitability_score_100": {
                "type": "number",
                "maximum": 100,
                "minimum": 1,
                "description": "Composite family suitability score from 1 to 100 (weighted: 40% statutory crime safety decile, 30% statutory education/skills deprivation decile adjusted by -2 pts/km capped at -20 when nearest school >3km geodesic distance, 30% child and parenting-age demographic density)"
              },
              "commuter_connectivity_score_100": {
                "type": "number",
                "maximum": 100,
                "minimum": 1,
                "description": "Composite multi-modal connectivity score from 1 to 100 (45% straight-line geodesic distance to nearest rail/rapid transit station, up to +15 pts strategic intercity hub bonus, 20% zero-car transit reliance density, 15% broadband speed tier & gigabit coverage, 10% affluence)"
              }
            },
            "additionalProperties": false
          },
          "landmark_context": {
            "type": "object",
            "required": [
              "is_national_landmark",
              "landmark_name",
              "landmark_category",
              "demographic_distortion_note"
            ],
            "properties": {
              "landmark_name": {
                "type": "string",
                "description": "Official name of the landmark (e.g. Buckingham Palace, 10 Downing Street)"
              },
              "landmark_category": {
                "enum": [
                  "Royal Residence",
                  "Government & Executive",
                  "Parliamentary & Civic",
                  "National Defence & Security",
                  "Central Banking & Financial",
                  "National Heritage & Cathedral",
                  "Diplomatic & Embassy",
                  "Academic & Historic Seat",
                  "Healthcare & Medical Research",
                  "Correctional & Institutional",
                  "National Sports & Culture",
                  "Major Transport Hub",
                  "Special Non-Geographic",
                  "Military Overseas & BFPO"
                ],
                "type": "string",
                "description": "Category classification of the landmark or exceptional entity"
              },
              "is_national_landmark": {
                "type": "boolean",
                "description": "True if this postcode represents a major national landmark, royal palace, civic seat, or special non-geographic entity"
              },
              "demographic_distortion_note": {
                "type": "string",
                "description": "Explanation of divergence between the landmark and surrounding small-area residential census population"
              }
            },
            "additionalProperties": false
          },
          "resolved_district": {
            "type": "string"
          },
          "requested_postcode": {
            "type": "string"
          },
          "census_demographics": {
            "type": "object",
            "required": [
              "population_density_per_sqkm",
              "est_median_household_income_gbp",
              "tenure_breakdown_pct",
              "qualifications_pct",
              "ns_sec_managerial_professional_pct",
              "economically_active_employed_pct",
              "retired_pct",
              "student_pct",
              "work_from_home_pct",
              "car_ownership_pct",
              "age_distribution_pct"
            ],
            "properties": {
              "retired_pct": {
                "type": "number"
              },
              "student_pct": {
                "type": "number"
              },
              "car_ownership_pct": {
                "type": "object",
                "required": [
                  "zero_cars",
                  "two_or_more_cars"
                ],
                "properties": {
                  "zero_cars": {
                    "type": "number"
                  },
                  "two_or_more_cars": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "qualifications_pct": {
                "type": "object",
                "required": [
                  "degree_or_higher_level4_plus",
                  "no_qualifications"
                ],
                "properties": {
                  "no_qualifications": {
                    "type": "number"
                  },
                  "degree_or_higher_level4_plus": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "work_from_home_pct": {
                "type": "number"
              },
              "age_distribution_pct": {
                "type": "object",
                "required": [
                  "age_0_to_15",
                  "age_16_to_29",
                  "age_30_to_44",
                  "age_45_to_64",
                  "age_65_plus"
                ],
                "properties": {
                  "age_0_to_15": {
                    "type": "number"
                  },
                  "age_65_plus": {
                    "type": "number"
                  },
                  "age_16_to_29": {
                    "type": "number"
                  },
                  "age_30_to_44": {
                    "type": "number"
                  },
                  "age_45_to_64": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "tenure_breakdown_pct": {
                "type": "object",
                "required": [
                  "owned_outright",
                  "mortgaged",
                  "private_rented",
                  "social_rented"
                ],
                "properties": {
                  "mortgaged": {
                    "type": "number"
                  },
                  "social_rented": {
                    "type": "number"
                  },
                  "owned_outright": {
                    "type": "number"
                  },
                  "private_rented": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "population_density_per_sqkm": {
                "type": "number",
                "description": "Resident population density per square kilometre from Census 2021 small area boundaries"
              },
              "est_median_household_income_gbp": {
                "type": "number",
                "description": "Heuristic neighbourhood estimate of annual median gross disposable household income in GBP (LSOA/Data Zone level) derived from a linear formula weighting DWP/HMRC income deprivation deciles, Census NS-SeC managerial occupation shares, and Level 4 qualifications, clamped at £21,000–£95,000. Not an observed Census return."
              },
              "economically_active_employed_pct": {
                "type": "number"
              },
              "ns_sec_managerial_professional_pct": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "deprivation_deciles": {
            "type": "object",
            "required": [
              "_scale_explanation",
              "imd_overall_decile",
              "imd_overall_rank",
              "income_deprivation_decile",
              "employment_deprivation_decile",
              "education_skills_decile",
              "health_deprivation_decile",
              "crime_safety_decile",
              "housing_barriers_decile",
              "living_environment_decile"
            ],
            "properties": {
              "imd_overall_rank": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "_scale_explanation": {
                "type": "string",
                "description": "1 = most deprived 10% nationally, 10 = least deprived 10% nationally"
              },
              "imd_overall_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "crime_safety_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Statutory Crime Deprivation Decile (1-10) from the English IoD 2025, Welsh WIMD 2025, and Scottish SIMD 2020 (1 = highest recorded crime deprivation nationally, 10 = lowest recorded crime deprivation / safest 10%). Sourced from multi-year police records per capita at LSOA level. Represents neighbourhood historical baseline, not individual personal victimisation risk."
              },
              "education_skills_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "housing_barriers_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "health_deprivation_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "income_deprivation_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "living_environment_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "employment_deprivation_decile": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 10,
                    "minimum": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "property_and_energy": {
            "type": "object",
            "required": [
              "median_house_price_gbp",
              "price_per_sqm_gbp",
              "price_basis",
              "sales_volume_3yr",
              "dominant_property_type",
              "avg_floor_area_sqm",
              "epc_rating_current",
              "epc_rating_potential",
              "retrofit_upside_potential",
              "pre_1930_housing_pct"
            ],
            "properties": {
              "price_basis": {
                "type": "object",
                "required": [
                  "resolution",
                  "window",
                  "n"
                ],
                "properties": {
                  "n": {
                    "type": "number",
                    "description": "Number of recorded transactions in rolling window used to compute median price"
                  },
                  "window": {
                    "type": "string",
                    "description": "Rolling temporal transaction window (2024–2026 for England & Wales, 2023–2025 for Scotland)"
                  },
                  "resolution": {
                    "enum": [
                      "postcode",
                      "data_zone",
                      "outcode_district",
                      "local_authority"
                    ],
                    "type": "string",
                    "description": "Spatial granularity of the median property valuation"
                  }
                },
                "description": "Spatial resolution and temporal window metadata for the property transaction valuation",
                "additionalProperties": false
              },
              "sales_volume_3yr": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Transaction volume recorded in 3-year window"
              },
              "price_per_sqm_gbp": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Synthetic property valuation benchmark joining 3-year rolling median transaction prices (HMLR / RoS) with domestic mean internal floor areas (Open EPC / Scottish EPC Register) at postcode level"
              },
              "avg_floor_area_sqm": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Mean domestic internal floor area from Open EPC Register"
              },
              "epc_rating_current": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Modal current EPC energy efficiency band (A-G)"
              },
              "epc_rating_potential": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Modal potential EPC energy efficiency band (A-G)"
              },
              "pre_1930_housing_pct": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Percentage of domestic stock built prior to 1930"
              },
              "dominant_property_type": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Predominant housing typology (Detached, Semi-Detached, Terraced, Flat/Maisonette)"
              },
              "median_house_price_gbp": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "HM Land Registry (E&W 2024–2026) and Registers of Scotland (Scotland 2023–2025) 3-year rolling median transaction price in GBP"
              },
              "retrofit_upside_potential": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Summary of energy efficiency retrofit potential"
              }
            },
            "additionalProperties": false
          },
          "schools_and_education": {
            "type": "object",
            "required": [
              "nearest_primary_school",
              "nearest_secondary_school"
            ],
            "properties": {
              "nearest_primary_school": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "phase",
                      "gender",
                      "religious_character",
                      "admissions_policy",
                      "distance_km"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "Unique school identifier e.g. ENG-101138, SCO-5507427, WAL-6813350"
                      },
                      "name": {
                        "type": "string",
                        "description": "Official school name (headteachers/staff names strictly excluded)"
                      },
                      "phase": {
                        "type": "string",
                        "description": "Educational phase: Primary, Secondary, 16 plus, All-through"
                      },
                      "gender": {
                        "type": "string",
                        "description": "Admissions gender: Mixed, Boys, Girls"
                      },
                      "distance_km": {
                        "type": "number",
                        "description": "Straight-line distance in kilometers from postcode coordinates"
                      },
                      "admissions_policy": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Admissions policy e.g. Non-selective, Selective"
                      },
                      "religious_character": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Religious ethos or designation, or null if secular/none"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Nearest primary or all-through school"
              },
              "nearest_secondary_school": {
                "anyOf": [
                  {
                    "$ref": "#/properties/results/items/properties/schools_and_education/properties/nearest_primary_school/anyOf/0"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Nearest secondary or all-through school"
              }
            },
            "additionalProperties": false
          },
          "digital_infrastructure": {
            "type": "object",
            "required": [
              "broadband_speed_tier_mbps",
              "gigabit_availability_pct"
            ],
            "properties": {
              "median_download_mbps": {
                "type": "number",
                "description": "Median fixed broadband download speed in Mbps (Ofcom Connected Nations)"
              },
              "gigabit_availability_pct": {
                "type": "number",
                "description": "Ofcom full-fibre / gigabit network coverage percentage"
              },
              "broadband_speed_tier_mbps": {
                "type": "number",
                "description": "Estimated fixed broadband download speed tier in Mbps (350, 120, 80, or 68.5 Mbps baseline derived from Ofcom Connected Nations availability brackets)"
              }
            },
            "additionalProperties": false
          },
          "healthcare_and_services": {
            "type": "object",
            "required": [
              "nearest_gp_surgery"
            ],
            "properties": {
              "nearest_gp_surgery": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "care_type",
                      "distance_km",
                      "regulator",
                      "rating",
                      "inspection_date"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "CQC or NHS provider/location ID e.g. CQC-1-12687408410"
                      },
                      "name": {
                        "type": "string",
                        "description": "Facility name (individual managers/partners strictly excluded)"
                      },
                      "rating": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Regulatory rating e.g. Outstanding, Good, or null if unrated/pending"
                      },
                      "care_type": {
                        "type": "string",
                        "description": "Service classification: GP Practice, Hospital, Clinic"
                      },
                      "regulator": {
                        "type": "string",
                        "description": "National healthcare regulator e.g. CQC, HIS, HIW"
                      },
                      "distance_km": {
                        "type": "number",
                        "description": "Straight-line distance in kilometers from postcode coordinates"
                      },
                      "inspection_date": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "Inspection date or last verified date"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Nearest GP practice / general practitioner surgery"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      }
    },
    "_billing": {
      "type": "object",
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "enum": [
            "demo_always_free",
            "gateway_partner",
            "marketplace_partner",
            "mcp_proxy_bypass",
            "rapidapi_proxy_bypass",
            "mcp_marketplace_license",
            "x402_paid_settled"
          ],
          "type": "string"
        },
        "payer": {
          "type": "string"
        },
        "transactionHash": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "_attribution": {
      "type": "string"
    },
    "cohort_summary": {
      "type": "object",
      "required": [
        "total_requested",
        "total_matched",
        "average_affluence_score",
        "dominant_persona",
        "average_house_price_gbp",
        "top_3_highest_value_postcodes"
      ],
      "properties": {
        "total_matched": {
          "type": "number"
        },
        "total_requested": {
          "type": "number"
        },
        "dominant_persona": {
          "type": "string"
        },
        "average_affluence_score": {
          "type": "number"
        },
        "average_house_price_gbp": {
          "type": "number"
        },
        "top_3_highest_value_postcodes": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "postcode",
              "median_house_price_gbp"
            ],
            "properties": {
              "postcode": {
                "type": "string"
              },
              "median_house_price_gbp": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
enrich_postcodes annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
summarise_outcode — Summarise Outward Postal District
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use when you only have an outward code / district (e.g. SW1A, BB7, EH1, CF10) and need high-level district demographic and property statistics (~150 tokens). Do not use when an exact full unit postcode is available (use lookup_postcode).

summarise_outcode input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "outcode"
  ],
  "properties": {
    "view": {
      "enum": [
        "full",
        "brief",
        "summary",
        "ai",
        "property",
        "demographics",
        "education",
        "healthcare",
        "transit",
        "services",
        "schools",
        "health",
        "transport",
        "infrastructure"
      ],
      "type": "string",
      "default": "full",
      "description": "Optional view slice to return: \"full\" (complete district summary, default), \"brief\" (or \"summary\"/\"ai\", ~80 tokens context summary), \"property\", \"demographics\", \"education\", \"healthcare\", \"transit\", or \"services\"."
    },
    "exclude": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ],
      "description": "Optional domain(s) to exclude: \"schools\", \"healthcare\", \"transit\" as a comma-separated string (e.g. \"schools, healthcare\") or an array of strings (e.g. [\"schools\", \"healthcare\"]). Note: exclude only applies when view=\"full\"; ignored if a specific view slice is selected."
    },
    "outcode": {
      "type": "string",
      "description": "Great Britain outward postal district code to summarize (e.g. SW1A, BB7, M1, EH1, CF10). Covers England, Scotland, and Wales."
    }
  },
  "additionalProperties": false
}
summarise_outcode output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "outcode",
    "total_postcodes",
    "district_median_house_price_gbp",
    "district_avg_price_per_sqm_gbp",
    "average_affluence_score_100",
    "dominant_affluence_tier",
    "imd_overall_decile_range",
    "top_personas",
    "sample_postcodes",
    "district_context_briefing",
    "_attribution"
  ],
  "properties": {
    "outcode": {
      "type": "string"
    },
    "_billing": {
      "type": "object",
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "enum": [
            "demo_always_free",
            "gateway_partner",
            "marketplace_partner",
            "mcp_proxy_bypass",
            "rapidapi_proxy_bypass",
            "mcp_marketplace_license",
            "x402_paid_settled"
          ],
          "type": "string"
        },
        "payer": {
          "type": "string"
        },
        "transactionHash": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "_attribution": {
      "type": "string"
    },
    "top_personas": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "total_postcodes": {
      "type": "number"
    },
    "sample_postcodes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dominant_affluence_tier": {
      "type": "string"
    },
    "imd_overall_decile_range": {
      "type": "object",
      "required": [
        "min",
        "max"
      ],
      "properties": {
        "max": {
          "type": "number"
        },
        "min": {
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "district_context_briefing": {
      "type": "string"
    },
    "average_affluence_score_100": {
      "type": "number"
    },
    "district_avg_price_per_sqm_gbp": {
      "type": "number"
    },
    "district_median_house_price_gbp": {
      "type": "number"
    }
  },
  "additionalProperties": false
}
summarise_outcode annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
get_postcode_ai_brief — Get Great Britain Postcode AI Briefing (Low-Token)
Advertised by the server during the last successful anonymous check.
Advertised read-only

Retrieve an ultra-lightweight, token-efficient natural language briefing, affluence tier, and persona profile (~80 tokens) for fast autonomous agent decision-making across Great Britain. Covers England, Scotland, and Wales (excludes Northern Ireland BT postcodes).

get_postcode_ai_brief input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "postcode"
  ],
  "properties": {
    "postcode": {
      "type": "string",
      "description": "Great Britain unit postcode to summarize (e.g. SW1A 1AA, BB7 3BB, EH1 1YZ, CF10 1EP). Space-optional, case-insensitive. Returns ~80 tokens of concise natural language context for LLM agents."
    }
  },
  "additionalProperties": false
}
get_postcode_ai_brief output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "summary_for_ai",
    "location",
    "_attribution"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "_billing": {
      "type": "object",
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "enum": [
            "demo_always_free",
            "gateway_partner",
            "marketplace_partner",
            "mcp_proxy_bypass",
            "rapidapi_proxy_bypass",
            "mcp_marketplace_license",
            "x402_paid_settled"
          ],
          "type": "string"
        },
        "payer": {
          "type": "string"
        },
        "transactionHash": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "location": {
      "type": "object",
      "required": [
        "postcode",
        "clean_postcode",
        "outcode",
        "incode",
        "lsoa_code",
        "msoa_code",
        "lsoa_name",
        "local_authority",
        "constituency",
        "region_or_nation",
        "rural_urban_classification",
        "latitude",
        "longitude"
      ],
      "properties": {
        "incode": {
          "type": "string",
          "description": "Inward code (e.g. 1AA)"
        },
        "outcode": {
          "type": "string",
          "description": "Outward code (e.g. BB7, SW1A, EH1, CF10)"
        },
        "latitude": {
          "type": "number",
          "description": "WGS84 Latitude"
        },
        "postcode": {
          "type": "string",
          "description": "Standard formatted Great Britain postcode with space"
        },
        "longitude": {
          "type": "number",
          "description": "WGS84 Longitude"
        },
        "lsoa_code": {
          "type": "string",
          "description": "2021 Census Lower Layer Super Output Area code or Data Zone"
        },
        "lsoa_name": {
          "type": "string",
          "description": "Official LSOA / Data Zone name"
        },
        "msoa_code": {
          "type": "string",
          "description": "2021 Census Middle Layer Super Output Area code"
        },
        "constituency": {
          "type": "string",
          "description": "UK Parliamentary Constituency"
        },
        "clean_postcode": {
          "type": "string",
          "description": "Normalised uppercase postcode without spaces"
        },
        "local_authority": {
          "type": "string",
          "description": "Local Authority / District Council name"
        },
        "region_or_nation": {
          "type": "string",
          "description": "Great Britain Region or Sovereign Nation (England, Scotland, Wales)"
        },
        "rural_urban_classification": {
          "type": "string",
          "description": "DEFRA Rural/Urban classification"
        }
      },
      "additionalProperties": false
    },
    "confidence": {
      "enum": [
        "exact",
        "approximate"
      ],
      "type": "string"
    },
    "match_type": {
      "enum": [
        "exact_unit",
        "district_fallback"
      ],
      "type": "string"
    },
    "_attribution": {
      "type": "string"
    },
    "summary_for_ai": {
      "type": "object",
      "required": [
        "ai_context_briefing",
        "primary_persona_tag",
        "affluence_tier",
        "b2c_spending_propensity",
        "affluence_score_100",
        "family_suitability_score_100",
        "commuter_connectivity_score_100",
        "property_value_index"
      ],
      "properties": {
        "affluence_tier": {
          "enum": [
            "Ultra-Prime",
            "Affluent",
            "Mid-Market",
            "Modest-Income",
            "High-Deprivation"
          ],
          "type": "string"
        },
        "affluence_score_100": {
          "type": "number",
          "maximum": 100,
          "minimum": 1,
          "description": "Composite socio-economic score from 1 to 100 (weighted: 35% modelled income, 25% human capital qualifications/NS-SeC, 25% IMD deprivation freedom, 15% homeownership equity; ~10 points represents ~1 national decile shift)"
        },
        "ai_context_briefing": {
          "type": "string",
          "description": "Pre-synthesised dense natural language summary designed for LLM context window injection"
        },
        "primary_persona_tag": {
          "type": "string",
          "description": "Target marketing / demographic persona archetype"
        },
        "property_value_index": {
          "type": "number",
          "description": "Relative property valuation index benchmarked against prime central London baseline (£16,200/sqm ceiling = 100)"
        },
        "b2c_spending_propensity": {
          "type": "string",
          "description": "Inferred neighbourhood consumer expenditure profile derived from local affluence tier and tenure. Represents a macro area characteristic, not an observed financial record of an individual household."
        },
        "family_suitability_score_100": {
          "type": "number",
          "maximum": 100,
          "minimum": 1,
          "description": "Composite family suitability score from 1 to 100 (weighted: 40% statutory crime safety decile, 30% statutory education/skills deprivation decile adjusted by -2 pts/km capped at -20 when nearest school >3km geodesic distance, 30% child and parenting-age demographic density)"
        },
        "commuter_connectivity_score_100": {
          "type": "number",
          "maximum": 100,
          "minimum": 1,
          "description": "Composite multi-modal connectivity score from 1 to 100 (45% straight-line geodesic distance to nearest rail/rapid transit station, up to +15 pts strategic intercity hub bonus, 20% zero-car transit reliance density, 15% broadband speed tier & gigabit coverage, 10% affluence)"
        }
      },
      "additionalProperties": false
    },
    "landmark_context": {
      "type": "object",
      "required": [
        "is_national_landmark",
        "landmark_name",
        "landmark_category",
        "demographic_distortion_note"
      ],
      "properties": {
        "landmark_name": {
          "type": "string",
          "description": "Official name of the landmark (e.g. Buckingham Palace, 10 Downing Street)"
        },
        "landmark_category": {
          "enum": [
            "Royal Residence",
            "Government & Executive",
            "Parliamentary & Civic",
            "National Defence & Security",
            "Central Banking & Financial",
            "National Heritage & Cathedral",
            "Diplomatic & Embassy",
            "Academic & Historic Seat",
            "Healthcare & Medical Research",
            "Correctional & Institutional",
            "National Sports & Culture",
            "Major Transport Hub",
            "Special Non-Geographic",
            "Military Overseas & BFPO"
          ],
          "type": "string",
          "description": "Category classification of the landmark or exceptional entity"
        },
        "is_national_landmark": {
          "type": "boolean",
          "description": "True if this postcode represents a major national landmark, royal palace, civic seat, or special non-geographic entity"
        },
        "demographic_distortion_note": {
          "type": "string",
          "description": "Explanation of divergence between the landmark and surrounding small-area residential census population"
        }
      },
      "additionalProperties": false
    },
    "resolved_district": {
      "type": "string"
    },
    "requested_postcode": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
get_postcode_ai_brief annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
get_property_and_energy_profile — Get Great Britain Property & Energy Efficiency Profile
Advertised by the server during the last successful anonymous check.
Advertised read-only

Retrieve real estate valuation (HM Land Registry / Registers of Scotland median house price, price per sqm, 3yr sales volume), EPC energy efficiency (current/potential band, retrofit upside), and Ofcom gigabit broadband connectivity for any Great Britain postcode. Covers England, Scotland, and Wales (excludes Northern Ireland BT postcodes).

get_property_and_energy_profile input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "postcode"
  ],
  "properties": {
    "postcode": {
      "type": "string",
      "description": "Great Britain unit postcode to inspect for real estate transactions, £/sqm, and EPC ratings (e.g. SW1A 1AA, BB7 3BB, EH1 1YZ, CF10 1EP). Space-optional, case-insensitive."
    }
  },
  "additionalProperties": false
}
get_property_and_energy_profile output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "location",
    "property_and_energy",
    "digital_infrastructure",
    "_attribution"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "_billing": {
      "type": "object",
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "enum": [
            "demo_always_free",
            "gateway_partner",
            "marketplace_partner",
            "mcp_proxy_bypass",
            "rapidapi_proxy_bypass",
            "mcp_marketplace_license",
            "x402_paid_settled"
          ],
          "type": "string"
        },
        "payer": {
          "type": "string"
        },
        "transactionHash": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "location": {
      "type": "object",
      "required": [
        "postcode",
        "clean_postcode",
        "outcode",
        "incode",
        "lsoa_code",
        "msoa_code",
        "lsoa_name",
        "local_authority",
        "constituency",
        "region_or_nation",
        "rural_urban_classification",
        "latitude",
        "longitude"
      ],
      "properties": {
        "incode": {
          "type": "string",
          "description": "Inward code (e.g. 1AA)"
        },
        "outcode": {
          "type": "string",
          "description": "Outward code (e.g. BB7, SW1A, EH1, CF10)"
        },
        "latitude": {
          "type": "number",
          "description": "WGS84 Latitude"
        },
        "postcode": {
          "type": "string",
          "description": "Standard formatted Great Britain postcode with space"
        },
        "longitude": {
          "type": "number",
          "description": "WGS84 Longitude"
        },
        "lsoa_code": {
          "type": "string",
          "description": "2021 Census Lower Layer Super Output Area code or Data Zone"
        },
        "lsoa_name": {
          "type": "string",
          "description": "Official LSOA / Data Zone name"
        },
        "msoa_code": {
          "type": "string",
          "description": "2021 Census Middle Layer Super Output Area code"
        },
        "constituency": {
          "type": "string",
          "description": "UK Parliamentary Constituency"
        },
        "clean_postcode": {
          "type": "string",
          "description": "Normalised uppercase postcode without spaces"
        },
        "local_authority": {
          "type": "string",
          "description": "Local Authority / District Council name"
        },
        "region_or_nation": {
          "type": "string",
          "description": "Great Britain Region or Sovereign Nation (England, Scotland, Wales)"
        },
        "rural_urban_classification": {
          "type": "string",
          "description": "DEFRA Rural/Urban classification"
        }
      },
      "additionalProperties": false
    },
    "confidence": {
      "enum": [
        "exact",
        "approximate"
      ],
      "type": "string"
    },
    "match_type": {
      "enum": [
        "exact_unit",
        "district_fallback"
      ],
      "type": "string"
    },
    "_attribution": {
      "type": "string"
    },
    "landmark_context": {
      "type": "object",
      "required": [
        "is_national_landmark",
        "landmark_name",
        "landmark_category",
        "demographic_distortion_note"
      ],
      "properties": {
        "landmark_name": {
          "type": "string",
          "description": "Official name of the landmark (e.g. Buckingham Palace, 10 Downing Street)"
        },
        "landmark_category": {
          "enum": [
            "Royal Residence",
            "Government & Executive",
            "Parliamentary & Civic",
            "National Defence & Security",
            "Central Banking & Financial",
            "National Heritage & Cathedral",
            "Diplomatic & Embassy",
            "Academic & Historic Seat",
            "Healthcare & Medical Research",
            "Correctional & Institutional",
            "National Sports & Culture",
            "Major Transport Hub",
            "Special Non-Geographic",
            "Military Overseas & BFPO"
          ],
          "type": "string",
          "description": "Category classification of the landmark or exceptional entity"
        },
        "is_national_landmark": {
          "type": "boolean",
          "description": "True if this postcode represents a major national landmark, royal palace, civic seat, or special non-geographic entity"
        },
        "demographic_distortion_note": {
          "type": "string",
          "description": "Explanation of divergence between the landmark and surrounding small-area residential census population"
        }
      },
      "additionalProperties": false
    },
    "resolved_district": {
      "type": "string"
    },
    "requested_postcode": {
      "type": "string"
    },
    "property_and_energy": {
      "type": "object",
      "required": [
        "median_house_price_gbp",
        "price_per_sqm_gbp",
        "price_basis",
        "sales_volume_3yr",
        "dominant_property_type",
        "avg_floor_area_sqm",
        "epc_rating_current",
        "epc_rating_potential",
        "retrofit_upside_potential",
        "pre_1930_housing_pct"
      ],
      "properties": {
        "price_basis": {
          "type": "object",
          "required": [
            "resolution",
            "window",
            "n"
          ],
          "properties": {
            "n": {
              "type": "number",
              "description": "Number of recorded transactions in rolling window used to compute median price"
            },
            "window": {
              "type": "string",
              "description": "Rolling temporal transaction window (2024–2026 for England & Wales, 2023–2025 for Scotland)"
            },
            "resolution": {
              "enum": [
                "postcode",
                "data_zone",
                "outcode_district",
                "local_authority"
              ],
              "type": "string",
              "description": "Spatial granularity of the median property valuation"
            }
          },
          "description": "Spatial resolution and temporal window metadata for the property transaction valuation",
          "additionalProperties": false
        },
        "sales_volume_3yr": {
          "type": [
            "number",
            "null"
          ],
          "description": "Transaction volume recorded in 3-year window"
        },
        "price_per_sqm_gbp": {
          "type": [
            "number",
            "null"
          ],
          "description": "Synthetic property valuation benchmark joining 3-year rolling median transaction prices (HMLR / RoS) with domestic mean internal floor areas (Open EPC / Scottish EPC Register) at postcode level"
        },
        "avg_floor_area_sqm": {
          "type": [
            "number",
            "null"
          ],
          "description": "Mean domestic internal floor area from Open EPC Register"
        },
        "epc_rating_current": {
          "type": [
            "string",
            "null"
          ],
          "description": "Modal current EPC energy efficiency band (A-G)"
        },
        "epc_rating_potential": {
          "type": [
            "string",
            "null"
          ],
          "description": "Modal potential EPC energy efficiency band (A-G)"
        },
        "pre_1930_housing_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Percentage of domestic stock built prior to 1930"
        },
        "dominant_property_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "Predominant housing typology (Detached, Semi-Detached, Terraced, Flat/Maisonette)"
        },
        "median_house_price_gbp": {
          "type": [
            "number",
            "null"
          ],
          "description": "HM Land Registry (E&W 2024–2026) and Registers of Scotland (Scotland 2023–2025) 3-year rolling median transaction price in GBP"
        },
        "retrofit_upside_potential": {
          "type": [
            "string",
            "null"
          ],
          "description": "Summary of energy efficiency retrofit potential"
        }
      },
      "additionalProperties": false
    },
    "digital_infrastructure": {
      "type": "object",
      "required": [
        "broadband_speed_tier_mbps",
        "gigabit_availability_pct"
      ],
      "properties": {
        "median_download_mbps": {
          "type": "number",
          "description": "Median fixed broadband download speed in Mbps (Ofcom Connected Nations)"
        },
        "gigabit_availability_pct": {
          "type": "number",
          "description": "Ofcom full-fibre / gigabit network coverage percentage"
        },
        "broadband_speed_tier_mbps": {
          "type": "number",
          "description": "Estimated fixed broadband download speed tier in Mbps (350, 120, 80, or 68.5 Mbps baseline derived from Ofcom Connected Nations availability brackets)"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
get_property_and_energy_profile annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
get_demographics_and_deprivation — Get Great Britain Demographics & Deprivation Profile
Advertised by the server during the last successful anonymous check.
Advertised read-only

Retrieve Census demographic breakdown (ONS Census 2021 / NRS Scotland Census 2022 income estimate, qualifications, tenure, employment, age) and statutory IMD deprivation deciles (IoD 2025, WIMD 2025, SIMD 2020 crime safety, education, living environment) for any Great Britain postcode. Covers England, Scotland, and Wales.

get_demographics_and_deprivation input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "postcode"
  ],
  "properties": {
    "postcode": {
      "type": "string",
      "description": "Great Britain unit postcode to inspect for Census demographics and statutory IMD deprivation deciles (e.g. SW1A 1AA, BB7 3BB, EH1 1YZ, CF10 1EP). Space-optional, case-insensitive."
    }
  },
  "additionalProperties": false
}
get_demographics_and_deprivation output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "location",
    "deprivation_deciles",
    "census_demographics",
    "_attribution"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "_billing": {
      "type": "object",
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "enum": [
            "demo_always_free",
            "gateway_partner",
            "marketplace_partner",
            "mcp_proxy_bypass",
            "rapidapi_proxy_bypass",
            "mcp_marketplace_license",
            "x402_paid_settled"
          ],
          "type": "string"
        },
        "payer": {
          "type": "string"
        },
        "transactionHash": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "location": {
      "type": "object",
      "required": [
        "postcode",
        "clean_postcode",
        "outcode",
        "incode",
        "lsoa_code",
        "msoa_code",
        "lsoa_name",
        "local_authority",
        "constituency",
        "region_or_nation",
        "rural_urban_classification",
        "latitude",
        "longitude"
      ],
      "properties": {
        "incode": {
          "type": "string",
          "description": "Inward code (e.g. 1AA)"
        },
        "outcode": {
          "type": "string",
          "description": "Outward code (e.g. BB7, SW1A, EH1, CF10)"
        },
        "latitude": {
          "type": "number",
          "description": "WGS84 Latitude"
        },
        "postcode": {
          "type": "string",
          "description": "Standard formatted Great Britain postcode with space"
        },
        "longitude": {
          "type": "number",
          "description": "WGS84 Longitude"
        },
        "lsoa_code": {
          "type": "string",
          "description": "2021 Census Lower Layer Super Output Area code or Data Zone"
        },
        "lsoa_name": {
          "type": "string",
          "description": "Official LSOA / Data Zone name"
        },
        "msoa_code": {
          "type": "string",
          "description": "2021 Census Middle Layer Super Output Area code"
        },
        "constituency": {
          "type": "string",
          "description": "UK Parliamentary Constituency"
        },
        "clean_postcode": {
          "type": "string",
          "description": "Normalised uppercase postcode without spaces"
        },
        "local_authority": {
          "type": "string",
          "description": "Local Authority / District Council name"
        },
        "region_or_nation": {
          "type": "string",
          "description": "Great Britain Region or Sovereign Nation (England, Scotland, Wales)"
        },
        "rural_urban_classification": {
          "type": "string",
          "description": "DEFRA Rural/Urban classification"
        }
      },
      "additionalProperties": false
    },
    "confidence": {
      "enum": [
        "exact",
        "approximate"
      ],
      "type": "string"
    },
    "match_type": {
      "enum": [
        "exact_unit",
        "district_fallback"
      ],
      "type": "string"
    },
    "_attribution": {
      "type": "string"
    },
    "landmark_context": {
      "type": "object",
      "required": [
        "is_national_landmark",
        "landmark_name",
        "landmark_category",
        "demographic_distortion_note"
      ],
      "properties": {
        "landmark_name": {
          "type": "string",
          "description": "Official name of the landmark (e.g. Buckingham Palace, 10 Downing Street)"
        },
        "landmark_category": {
          "enum": [
            "Royal Residence",
            "Government & Executive",
            "Parliamentary & Civic",
            "National Defence & Security",
            "Central Banking & Financial",
            "National Heritage & Cathedral",
            "Diplomatic & Embassy",
            "Academic & Historic Seat",
            "Healthcare & Medical Research",
            "Correctional & Institutional",
            "National Sports & Culture",
            "Major Transport Hub",
            "Special Non-Geographic",
            "Military Overseas & BFPO"
          ],
          "type": "string",
          "description": "Category classification of the landmark or exceptional entity"
        },
        "is_national_landmark": {
          "type": "boolean",
          "description": "True if this postcode represents a major national landmark, royal palace, civic seat, or special non-geographic entity"
        },
        "demographic_distortion_note": {
          "type": "string",
          "description": "Explanation of divergence between the landmark and surrounding small-area residential census population"
        }
      },
      "additionalProperties": false
    },
    "resolved_district": {
      "type": "string"
    },
    "requested_postcode": {
      "type": "string"
    },
    "census_demographics": {
      "type": "object",
      "required": [
        "population_density_per_sqkm",
        "est_median_household_income_gbp",
        "tenure_breakdown_pct",
        "qualifications_pct",
        "ns_sec_managerial_professional_pct",
        "economically_active_employed_pct",
        "retired_pct",
        "student_pct",
        "work_from_home_pct",
        "car_ownership_pct",
        "age_distribution_pct"
      ],
      "properties": {
        "retired_pct": {
          "type": "number"
        },
        "student_pct": {
          "type": "number"
        },
        "car_ownership_pct": {
          "type": "object",
          "required": [
            "zero_cars",
            "two_or_more_cars"
          ],
          "properties": {
            "zero_cars": {
              "type": "number"
            },
            "two_or_more_cars": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "qualifications_pct": {
          "type": "object",
          "required": [
            "degree_or_higher_level4_plus",
            "no_qualifications"
          ],
          "properties": {
            "no_qualifications": {
              "type": "number"
            },
            "degree_or_higher_level4_plus": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "work_from_home_pct": {
          "type": "number"
        },
        "age_distribution_pct": {
          "type": "object",
          "required": [
            "age_0_to_15",
            "age_16_to_29",
            "age_30_to_44",
            "age_45_to_64",
            "age_65_plus"
          ],
          "properties": {
            "age_0_to_15": {
              "type": "number"
            },
            "age_65_plus": {
              "type": "number"
            },
            "age_16_to_29": {
              "type": "number"
            },
            "age_30_to_44": {
              "type": "number"
            },
            "age_45_to_64": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "tenure_breakdown_pct": {
          "type": "object",
          "required": [
            "owned_outright",
            "mortgaged",
            "private_rented",
            "social_rented"
          ],
          "properties": {
            "mortgaged": {
              "type": "number"
            },
            "social_rented": {
              "type": "number"
            },
            "owned_outright": {
              "type": "number"
            },
            "private_rented": {
              "type": "number"
            }
          },
          "additionalProperties": false
        },
        "population_density_per_sqkm": {
          "type": "number",
          "description": "Resident population density per square kilometre from Census 2021 small area boundaries"
        },
        "est_median_household_income_gbp": {
          "type": "number",
          "description": "Heuristic neighbourhood estimate of annual median gross disposable household income in GBP (LSOA/Data Zone level) derived from a linear formula weighting DWP/HMRC income deprivation deciles, Census NS-SeC managerial occupation shares, and Level 4 qualifications, clamped at £21,000–£95,000. Not an observed Census return."
        },
        "economically_active_employed_pct": {
          "type": "number"
        },
        "ns_sec_managerial_professional_pct": {
          "type": "number"
        }
      },
      "additionalProperties": false
    },
    "deprivation_deciles": {
      "type": "object",
      "required": [
        "_scale_explanation",
        "imd_overall_decile",
        "imd_overall_rank",
        "income_deprivation_decile",
        "employment_deprivation_decile",
        "education_skills_decile",
        "health_deprivation_decile",
        "crime_safety_decile",
        "housing_barriers_decile",
        "living_environment_decile"
      ],
      "properties": {
        "imd_overall_rank": {
          "type": [
            "number",
            "null"
          ]
        },
        "_scale_explanation": {
          "type": "string",
          "description": "1 = most deprived 10% nationally, 10 = least deprived 10% nationally"
        },
        "imd_overall_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "crime_safety_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ],
          "description": "Statutory Crime Deprivation Decile (1-10) from the English IoD 2025, Welsh WIMD 2025, and Scottish SIMD 2020 (1 = highest recorded crime deprivation nationally, 10 = lowest recorded crime deprivation / safest 10%). Sourced from multi-year police records per capita at LSOA level. Represents neighbourhood historical baseline, not individual personal victimisation risk."
        },
        "education_skills_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "housing_barriers_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "health_deprivation_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "income_deprivation_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "living_environment_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        },
        "employment_deprivation_decile": {
          "anyOf": [
            {
              "type": "number",
              "maximum": 10,
              "minimum": 1
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
get_demographics_and_deprivation annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
screen_postcodes — Screen & Rank Great Britain Postcodes
Advertised by the server during the last successful anonymous check.
Advertised read-only

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.

screen_postcodes input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "postcodes",
    "metric"
  ],
  "properties": {
    "order": {
      "enum": [
        "desc",
        "asc"
      ],
      "type": "string",
      "default": "desc",
      "description": "Sort order: \"desc\" (highest first, default) or \"asc\" (lowest first)."
    },
    "metric": {
      "enum": [
        "affluence",
        "house_price",
        "crime_safety",
        "broadband_speed",
        "family_suitability",
        "connectivity"
      ],
      "type": "string",
      "description": "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": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "minItems": 2,
      "description": "List of 2 to 10 Great Britain postcodes to screen and rank (e.g. [\"SW1A 1AA\", \"BB7 3BB\", \"M1 1AE\"]). Maximum 10 postcodes."
    }
  },
  "additionalProperties": false
}
screen_postcodes output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "metric_ranked_by",
    "order",
    "total_screened",
    "leaderboard",
    "_attribution"
  ],
  "properties": {
    "order": {
      "enum": [
        "desc",
        "asc"
      ],
      "type": "string"
    },
    "_billing": {
      "type": "object",
      "required": [
        "mode"
      ],
      "properties": {
        "mode": {
          "enum": [
            "demo_always_free",
            "gateway_partner",
            "marketplace_partner",
            "mcp_proxy_bypass",
            "rapidapi_proxy_bypass",
            "mcp_marketplace_license",
            "x402_paid_settled"
          ],
          "type": "string"
        },
        "payer": {
          "type": "string"
        },
        "transactionHash": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "leaderboard": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "rank",
          "postcode",
          "metric_name",
          "metric_value",
          "affluence_tier",
          "median_house_price_gbp",
          "crime_safety_decile",
          "family_suitability_score_100",
          "ai_summary"
        ],
        "properties": {
          "rank": {
            "type": "number"
          },
          "postcode": {
            "type": "string"
          },
          "ai_summary": {
            "type": "string"
          },
          "metric_name": {
            "type": "string"
          },
          "metric_value": {
            "type": "number"
          },
          "affluence_tier": {
            "type": "string"
          },
          "crime_safety_decile": {
            "type": [
              "number",
              "null"
            ]
          },
          "median_download_mbps": {
            "type": [
              "number",
              "null"
            ]
          },
          "connectivity_score_100": {
            "type": "number"
          },
          "median_house_price_gbp": {
            "type": [
              "number",
              "null"
            ]
          },
          "broadband_speed_tier_mbps": {
            "type": [
              "number",
              "null"
            ]
          },
          "family_suitability_score_100": {
            "type": "number"
          }
        },
        "additionalProperties": false
      }
    },
    "_attribution": {
      "type": "string"
    },
    "total_screened": {
      "type": "number"
    },
    "metric_ranked_by": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
screen_postcodes annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
get_data_dictionary — Get Data Dictionary & Field Methodology
Advertised by the server during the last successful anonymous check.
Advertised read-only

$0.00 USDC reference tool (no payment or authentication required; subject to Terms of Service): Retrieve exact field specifications, mathematical calculation formulas, statistical scales, and data sources for any metric across Great Britain in the Postcode Context database.

get_data_dictionary input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "field": {
      "type": "string",
      "description": "Optional specific field name to inspect (e.g. affluence_score_100, median_house_price_gbp, family_suitability_score_100)."
    },
    "domain": {
      "enum": [
        "all",
        "summary_for_ai",
        "property_and_energy",
        "deprivation_deciles",
        "census_demographics",
        "digital_infrastructure",
        "location",
        "query_and_fallbacks",
        "landmark_context",
        "schools_and_education",
        "education_and_schools",
        "healthcare_and_services",
        "transit"
      ],
      "type": "string",
      "default": "summary_for_ai",
      "description": "Statistical domain category filter. Use \"summary_for_ai\" (default) for a compact token-efficient overview (~8 fields) for AI agents, or \"all\" for the complete 113-metric specification."
    }
  },
  "additionalProperties": false
}
get_data_dictionary annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
get_data_attribution — Get Data Provenance & Statutory Attribution Register
Advertised by the server during the last successful anonymous check.
Advertised read-only

$0.00 USDC reference tool (no payment or authentication required; subject to Terms of Service): Retrieve official statutory attribution statements, Crown copyright notices, Royal Mail Gridlink sublicence details, and Open Government Licence v3.0 metadata across all 19 contributing data providers (ONS, OS, Royal Mail, HM Land Registry, Registers of Scotland, MHCLG, Ofcom, Scottish Government, Welsh Government, DfE, CQC, PHS, NWSSP, DfT, ORR).

get_data_attribution input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {},
  "additionalProperties": false
}
get_data_attribution annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}

Prompts

Not advertised

No prompt definitions available.

Resources

2 advertised

data_dictionary — Postcode Context Data Dictionary

Advertised by the server during the last successful anonymous check.

Complete field specifications, mathematical formulas, statistical scales, and data sources for all 113 metrics in the Postcode Context database.

data_dictionary URI
postcode://data-dictionary

MIME type: application/json

data_attribution — Postcode Context Statutory Attribution & Provenance Register

Advertised by the server during the last successful anonymous check.

Official statutory attribution statements, Crown copyright notices, and Open Government Licence v3.0 metadata across all 19 data providers.

data_attribution URI
postcode://data-attribution

MIME type: application/json

90-day uptime

A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.

100% (49 of 49 checks answered)

  1. 2026-11-14: 1 of 1 checks answered
  2. 2026-11-15: 2 of 2 checks answered
  3. 2026-11-16: 4 of 4 checks answered
  4. 2026-11-17: 5 of 5 checks answered
  5. 2026-11-18: 5 of 5 checks answered
  6. 2026-11-19: 4 of 4 checks answered
  7. 2026-11-20: 3 of 3 checks answered
  8. 2026-11-21: 4 of 4 checks answered
  9. 2026-11-22: 4 of 4 checks answered
  10. 2026-11-23: 3 of 3 checks answered
  11. 2026-11-24: 4 of 4 checks answered
  12. 2026-11-25: 4 of 4 checks answered
  13. 2026-11-26: 4 of 4 checks answered
  14. 2026-11-27: 2 of 2 checks answered

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
3 of 3 (100%)
Average latency
1027 ms
95th percentile latency
1568 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 1632 ms · 10 tool(s), 2 resource(s), 0 resource template(s)
  • · probe · passed · 988 ms · metadata changed · 10 tool(s), 2 resource(s), 0 resource template(s)
  • · probe · passed · 462 ms · metadata changed · 10 tool(s), 2 resource(s), 0 resource template(s)

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http postcode-context-mcp https://api.postcodecontext.uk/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add postcode-context-mcp --url https://api.postcodecontext.uk/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable postcode-context-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "postcode-context-mcp": {
      "url": "https://api.postcodecontext.uk/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "postcode-context-mcp": {
      "type": "streamableHttp",
      "url": "https://api.postcodecontext.uk/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start postcode-context-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "postcode-context-mcp": {
      "type": "http",
      "url": "https://api.postcodecontext.uk/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http postcode-context-mcp https://api.postcodecontext.uk/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://api.postcodecontext.uk/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "postcode-context-mcp": {
      "serverUrl": "https://api.postcodecontext.uk/mcp"
    }
  }
}

Let your agent find its tools

Find servers like Postcode Context MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.

Do you run Postcode Context MCP?

Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.

Claim this listing