Skip to main content
Glama

WhereToLive London open data

Rank London postcode districts

rank_london_districts
Read-onlyIdempotent

London postcode districts ranked on one open-data measure: lowest_crime_rate (police.uk residential crime per 1,000 residents), cheapest_houses (Land Registry median sold price of existing houses; flats are not ranked), most_outstanding_schools (Ofsted), or shortest_commute (needs hub). Optional borough filter, commute cut-off and reversed order (most expensive, highest crime, longest commute first). Ranks are London-wide.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hubNoFor shortest_commute: the work hub. 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).
limitNoRows to return (default 10, max 50).
metricYesWhat to rank on.
boroughNoOnly districts with postcodes in this London borough, e.g. "Lewisham".
reverseNoWorst first: highest crime, most expensive, fewest Outstanding schools, longest commute.
max_minutesNoFor shortest_commute: only districts at or under this many minutes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive, so the description's job is to add semantics beyond that. It does: data provenance (police.uk per 1,000 residents, Land Registry median sold price, Ofsted Outstanding), the flats exclusion, and that ranks are London-wide rather than within the borough filter. It doesn't describe the returned row shape, but annotations carry the safety profile.

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?

A single dense paragraph that front-loads the metric list, with no filler sentences. It is slightly long because of the parenthetical source annotations, but every clause carries information an agent needs to pick a metric correctly.

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 6-parameter read-only ranking tool with no output schema, the description covers metric semantics, the hub dependency, the cut-off, and the scope of ranking. The main remaining gap is the shape of returned rows (district name, score, rank), which an agent must infer.

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

Parameters4/5

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

Schema coverage is 100%, so 3 is the baseline, but the description adds meaning beyond the schema: it defines what each metric rank actually measures and clarifies that reverse yields 'most expensive, highest crime, longest commute first', and that hub is required for shortest_commute. These tie parameters to behavior rather than restating field names.

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?

States a specific verb (rank) and resource (London postcode districts) plus the exact set of ranking metrics with their data sources. An agent can immediately distinguish it from compare_london_districts or find_london_district, which are lookups rather than rankings.

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

Usage Guidelines4/5

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

Explains each metric's meaning and conditional usage (shortest_commute 'needs hub', flats excluded from cheapest_houses), and describes the optional borough filter and reverse ordering. It does not explicitly name a sibling tool or say when to prefer this over compare_london_districts, so it stops short of a 5.

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