Analyze Market Statistics
analyze_market_statisticsMarket statistics: average/median price, price per m², surface. MCP Apps hosts render a chart of the price per m², sale price and surface ranges.
REQUIRED: one location filter: code_postal, commune (uppercase; Paris by arrondissement: "PARIS 01"–"PARIS 20"), code_departement, or latitude + longitude (radius). Example: {commune: "PARIS 11", type_local: "Appartement"}. A T3: add pieces_min: 3, pieces_max: 3 (rooms gives the scope).
Returns count, price (min/max/avg/median), surface, price_per_m2. Figures drop the scope's lowest and highest 1% €/m² (outliers_excluded, 20+ sales); count is every matching sale. Caps, back from data_as_of: radius_m > 1000 is restricted to the latest 12 months (so is any radius); code_departement alone or commune without type_local → 1 year; else 2 years. Read window.applied when dates are capped or defaulted; a cap starting after date_fin returns window_unavailable (not charged).
Cost: 5 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": "analyze_market_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commune | No | UPPERCASE as stored, e.g. "PARIS 11" (Paris, Lyon, Marseille by arrondissement). Unsure? Call resolve_location first. | |
| date_fin | No | End date (YYYY-MM-DD) | |
| latitude | No | Latitude for radius search (requires longitude) | |
| radius_m | No | Radius in meters (default: 500, max: 50000) | |
| longitude | No | Longitude for radius search (requires latitude) | |
| date_debut | No | Start date (YYYY-MM-DD) | |
| pieces_max | No | Max pièces | |
| pieces_min | No | Min pièces (rooms, not bedrooms) | |
| type_local | No | Property type | |
| code_postal | No | Postal code (e.g., '75001') | |
| exclude_vefa | No | Exclude VEFA new-build (off-plan) sales (default: true) | |
| include_terrain | No | Include terrain-only transactions in search results (default: false) | |
| code_departement | No | Department code (e.g., '73' for Savoie, '83' for Var) | |
| use_original_type | No | Use the raw DVF type_local, not the corrected computed_type_local (default: false) | |
| exclude_bulk_sales | No | Exclude bulk and aggregated sales (default: true) | |
| include_pouvoir_achat | No | Add a price-to-income ratio field (INSEE Filosofi × DVF). Ignored on radius searches. |