Skip to main content
Glama

Compare Locations

compare_locations
Read-only

Compare 2–5 locations side by side, for investment location decisions. MCP Apps hosts render a sortable side-by-side table with bars.

REQUIRED: locations: 2–5 objects, each {code_postal} or {commune} Optional: type_local ("Maison" | "Appartement", default Appartement), date_debut (default: the latest 12 months of data; use ≥ 12 months)

Returns per location: sales count, median €/m², median price, yoy_change_pct (median €/m² of the window vs the same-length window just before; summary.change_basis, summary.change_periods; all room counts) and ranks (summary.rank_order: price_m2 1 = cheapest; volume and growth 1 = highest). Summary: cheapest, most_expensive, highest_volume, fastest_growing.

Example: {locations: [{code_postal: "75011"}, {code_postal: "75020"}]} or by commune: {locations: [{commune: "LYON"}, {commune: "BORDEAUX"}]}

Cost: 10 credits per call

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": {
      "locations": "<locations>"
    },
    "name": "compare_locations"
  }
}

Input Schema

NameRequiredDescriptionDefault
locationsYes2-5 locations to compare
date_debutNoStart date (default: the latest 12 months of data)
type_localNoProperty type (default: Appartement)Appartement

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / date_debut / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
  2. Changed1 schema field changed
    • changedInput schema / properties / date_debut / description
      Previous value: -"Start date (default: 1 year ago)"New value: +"Start date (default: the latest 12 months of data)"
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, non-destructive, closed-world, so the bar is lower, yet the description adds real context: host-side table rendering, default window behavior, rank direction (price_m2 1 = cheapest; volume/growth 1 = highest), and an explicit cost of 10 credits per call, which is genuinely useful for agent budgeting. Gaps remain around failure modes, e.g. what happens with an unresolvable code_postal or a commune with no data.

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

Conciseness5/5

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

Front-loaded with the one-line purpose, then requirements, then return shape, then examples, then cost. The return paragraph is dense but every element (yoy basis, rank direction, summary keys) is decision-relevant and there is no filler.

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?

With no output schema, the description carries the full burden of describing returns and does so thoroughly, including the change basis and rank ordering, and it adds cost and host-rendering behavior. It never addresses error paths or input format expectations (e.g., case sensitivity of commune, as 'LYON' is uppercase in the example), which keeps it short of a 5.

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 semantics the schema does not encode: each location object is either {code_postal} OR {commune} (the schema merely lists both properties without a oneOf constraint), plus guidance to use at least 12 months for date_debut. The worked examples further disambiguate the commune form.

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?

States a specific verb and resource ('Compare 2–5 locations side by side') with a stated purpose ('for investment location decisions') and the rendering it drives. It is distinct enough from siblings like find_property_comparables or analyze_market_statistics in shape (multi-location, 2–5 items), but it never explicitly names an alternative to contrast against.

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 the phrase 'for investment location decisions' and by the 2–5 location scope, which naturally excludes single-location queries. There is no explicit when-not guidance and no named alternative (e.g., a single-location stats tool) for the case where the agent only needs one location.

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