Skip to main content
Glama

WhereToLive London open data

Screen London districts on several criteria

find_london_districts
Read-onlyIdempotent

Find the London postcode districts that meet several open-data criteria at once: a maximum Land Registry median house price, a maximum commute to a work hub, crime at or below the London rate or under a rate per 1,000 residents, a minimum number of Outstanding state schools, a maximum share of postcodes in flood zone 3, a maximum ONS official borough rent for a number of bedrooms, and an optional borough. Each match carries the figures that qualified it, with sample sizes, and its page URL; districts that cannot be checked for lack of data are counted, not hidden. When nothing matches, it returns the districts that miss by only one criterion, closest first, with by how much, and names the criterion that rules out most of them. Houses only: flat medians are not compared across districts (retirement flats are not identified in Land Registry data).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hubNoWork hub for the commute criterion or sort. canary-wharf (Canary Wharf), city-of-london (Bank / Liverpool Street / Moorgate), kings-cross (King's Cross), westminster (Westminster), oxford-circus (Oxford Circus), london-bridge (London Bridge), paddington (Paddington), stratford (Stratford), hammersmith (Hammersmith), victoria (Victoria), waterloo (Waterloo), farringdon (Farringdon).
limitNoDistricts to return (default 20, max 50).
boroughNoOnly districts with postcodes in this London borough, e.g. "Lewisham".
sort_byNoOrder of the matches (lowest first, Outstanding schools most first). Default: the first criterion given.
bedroomsNoBedrooms for the rent criterion: all (default), 1, 2, 3 or 4+.
max_commute_minutesNoOnly districts whose typical door-to-door minutes to hub are at or under this (needs hub).
max_flood_zone_3_pctNoOnly districts with at most this % of postcodes in Environment Agency Flood Zone 3.
min_outstanding_schoolsNoOnly districts with at least this many state schools currently graded Outstanding by Ofsted.
max_official_rent_gbp_pcmNoOnly districts whose borough(s) have an ONS official average monthly rent at or under this (see bedrooms).
max_median_house_price_gbpNoOnly districts whose median sold price of existing houses (12 months) is at or under this.
crime_at_or_below_london_rateNoOnly districts whose residential crime per 1,000 residents is at or below London as a whole.
max_crimes_per_1000_residentsNoOnly districts at or under this many residential-relevant crimes per 1,000 residents a year.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the readOnly/idempotent annotations: each match carries qualifying figures, sample sizes, and a page URL; uncheckable districts are 'counted, not hidden'; and when nothing matches it returns near-misses sorted closest-first with the ruling-out criterion. The flats-retirement caveat is also disclosed. This is rich operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded purpose followed by criteria enumeration and then the two valuable behavioral clauses (uncheckable districts, no-match fallback). The criteria list partially duplicates the schema, but the description stays readable and most sentences carry non-redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter, no-required, no-output-schema tool, it explains the AND-combination semantics and the return payload (figures, sample sizes, URLs, near-miss fallback), so the agent knows what comes back. Only the interaction/precedence among the six sibling tools is left unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 12 parameters thoroughly (including enums, ranges, sort defaults). The description mostly re-lists the same criteria, adding only the houses-only qualifier for the price comparison. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Find the London postcode districts') plus the conjunctive screening model ('meet several open-data criteria at once'). This clearly separates it from siblings like find_london_district, rank_london_districts, and compare_london_districts without the agent needing to open schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'meet several criteria at once' (AND-filter screening), and it does state one constraint ('Houses only'). But it never names when to prefer rank_london_districts or compare_london_districts, which is a real risk given six siblings. No explicit when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources