Skip to main content
Glama

Compare areas side by side

compare_areas
Read-onlyIdempotent
Up to 10 areas side by side on up to 8 published metrics, one basis line. Use
it for "compare W14 with E5 on rent and yield". `areas` is a list of
{"type": "postcode_district" | "local_authority" | "county" | "country",
"code": ...}; codes as in resolve_place. Free text is refused.

Each row is one area, and an area that cannot be read is its own row with
covered=false and a reason (the call is covered if at least one row answered).
Months can differ between areas: read each figure's `period`. Asking-to-sold
and days on market are hidden where fewer than 10 sales matched; days on
market is only observed from Sep 2026. Do NOT use it as a valuation.

More than 10 areas or 8 metrics is refused. Free; covered=false or an upstream
failure is not charged. Free.

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": {
      "areas": "<areas>",
      "metrics": "<metrics>"
    },
    "name": "compare_areas"
  }
}

Input Schema

NameRequiredDescriptionDefault
bedsNoall
areasYes
metricsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: per-row failure semantics (covered=false with a reason, call covered if one row answered), differing periods per area, suppression rules (fewer than 10 sales, days on market only from Sep 2026), hard refusals above 10 areas/8 metrics, and billing behavior. That is substantial added context, well above the annotation baseline.

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 with scope, then the example, then edge-case behavior — a sensible ordering with little filler. The trailing 'Free.' duplicates the earlier 'Free; ... not charged' sentence and is dead weight.

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?

An output schema exists, so return-value detail is not required, and the description still explains row semantics and partial-coverage outcomes well. Remaining gaps are the unexplained `beds` parameter and the absence of any guidance on what the basis line means, both of which an agent would need before calling confidently.

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 0%, so the description carries the burden. It does well on `areas` (item shape, the four allowed type values, 'codes as in resolve_place', free text refused) and states the 8-metric cap, but the metric names themselves are only in the enum and the `beds` parameter is never mentioned at all — 'one basis line' is too vague to map onto it.

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

Purpose4/5

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

The first sentence states a specific verb and resource with scope bounds ('Up to 10 areas side by side on up to 8 published metrics, one basis line'), and the example ('compare W14 with E5 on rent and yield') pins down the intent. It does not name a sibling such as rank_areas or area_profile to contrast against, so differentiation is left to inference.

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?

Gives a concrete when-to-use example and an explicit when-not-to-use rule ('Do NOT use it as a valuation'), plus routing to resolve_place for code formats. It stops short of naming alternative tools for related comparison tasks, but the exclusions it does state are unambiguous.

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