Skip to main content
Glama

Get Zonal Price Distribution

get_zonal_price_distribution
Read-only

Map and rank median price per m² by postal code or commune across a city or department (DVF sales): compare arrondissements, postal codes or communes, find the most / least expensive zones. MCP Apps hosts render an interactive map; other clients get the same JSON.

REQUIRED: code_departement ("75") or commune (a major city: "PARIS" returns every arrondissement). Optional: type_local, group_by ("code_postal" default | "commune"), min_transactions (default 10), date_debut/date_fin (default: the latest year).

Returns per zone: centroid (lat/lon), median and average price/m², sales count, and position ("expensive" | "average" | "affordable").

Example: {commune: "PARIS", type_local: "Appartement"}

Cost: 15 credits per call

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_zonal_price_distribution"
  }
}

Input Schema

NameRequiredDescriptionDefault
communeNoMajor city name (e.g., 'PARIS' - returns all arrondissements)
date_finNoEnd date (default: data_as_of, the latest sale)
group_byNoAggregation level (default: code_postal)code_postal
date_debutNoStart date (default: the latest 12 months of data)
type_localNoProperty type filter
code_departementNoDepartment code (e.g., '75')
min_transactionsNoMinimum transactions to include a zone (default: 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / date_debut / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / date_fin / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
  2. Changed2 schema fields 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)"
    • changedInput schema / properties / date_fin / description
      Previous value: -"End date (default: today)"New value: +"End date (default: data_as_of, the latest sale)"
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint true, destructive false, openWorldHint false), yet the description still adds value beyond them: a per-call cost of 15 credits, the default date window (latest year / latest 12 months), and the MCP Apps interactive-map behavior versus plain JSON for other clients. It does not mention rate limits, data-freshness caveats, or how sparse zones are handled beyond min_transactions.

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 purpose, then labeled REQUIRED / Optional / Returns / Example / Cost blocks that an agent can scan in seconds. Every sentence carries distinct information — no filler or restatement of the title.

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

Completeness5/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 compensates by enumerating returned fields per zone (centroid, median and average price/m², sales count, position enum) and disclosing cost and rendering behavior. For a 7-parameter read-only analytics tool, nothing material is missing.

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 the schema lacks: the one-of constraint ("code_departement or commune") is nowhere expressed in the schema, and it explains the consequence of group_by/semantics via the PARIS example returning every arrondissement. Defaults for min_transactions and date range are repeated from the schema but contextualized as "latest year".

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 pair ("Map and rank") plus the exact metric ("median price per m²") and the aggregation units (postal code or commune), scoped to a city or department over DVF sales. It also names the concrete analytical uses (compare arrondissements, find most/least expensive zones), so an agent can distinguish it from trend or yield siblings without opening the schema.

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 clear when-to-use context (comparing zones, ranking expensive vs affordable areas) and states the input requirement that selects a valid call: code_departement or commune. It does not explicitly exclude or route to named alternatives such as compare_locations or analyze_price_trends, so it falls short of full 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