Skip to main content
Glama

Compare postcode districts

compare_areas
Read-onlyIdempotent

Two to six postcode districts side by side for one property type: latest whole year's median price per square metre with quartiles and sales, change since 2015, the year in progress against the same months a year earlier and, when a floor area is given, what that many square metres cost at each district's median; then market_now for each: adverts of that type on the market, the share whose latest change was a price cut, median days on the market and until adverts came down, and sale certificates against a year earlier. Property type is held constant because comparing a district of flats with a district of houses compares the mix, not the place.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "outcodes": "<outcodes>"
    },
    "name": "compare_areas"
  }
}

Input Schema

NameRequiredDescriptionDefault
outcodesYesTwo to six postcode districts, for example ['SW19', 'BS7', 'M20'].
floor_area_m2NoOptional floor area to price at each district's median, for example 100.
property_typeNoOne type, held constant across the districts: D detached, S semi-detached, T terraced, F flat.T

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds substantial behavioral value by detailing the exact contents of the response (quartiles, sales counts, price-cut share, days on market, sale certificates), which matters because there is no output schema. It says nothing about invalid outcode handling or response size/latency for six districts.

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

Conciseness3/5

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

The content is front-loaded and mostly earns its place, but the core is a single sprawling sentence chaining 'with... change since... the year in progress... and, when a floor area is given... then `market_now` for each...', which is hard to parse on a first read. A bulleted or segmented structure for the returned metric groups would serve an agent better.

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 three-parameter, read-only aggregation tool with no output schema, the description covers the return payload and the parameter trade-offs well enough to call it correctly. The remaining gaps — error behavior for unrecognized outcodes and rough response volume for six districts — are minor but non-zero.

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 the baseline is 3, but the description adds real meaning: `floor_area_m2` is explained as 'what that many square metres cost at each district's median', which is interpretive rather than a restatement, and it explains why `property_type` is held constant across districts. The 2-6 district bound and enum semantics are already in the schema, so no additional credit there.

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?

The description names a specific verb and resource ('Two to six postcode districts side by side') and enumerates exactly what is compared: median price per m2 with quartiles and sales, change since 2015, year-to-date vs same months a year earlier, floor-area pricing, and `market_now` metrics. The multi-district, single-property-type scope distinguishes it implicitly from single-district siblings such as district_statistics or area_overview.

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?

It establishes the operating context clearly: 2-6 districts, one property type held constant, optional floor area. The closing rationale — holding type constant 'because comparing a district of flats with a district of houses compares the mix, not the place' — is genuine guidance for parameter choice. It does not name an alternative tool or state when not to use it, 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