Area Insights · herramienta MCP
area-insights_get_heatmap
Get Heatmap
Call it as area-insights_get_heatmap on the Area Insights MCP server, https://platform.casafari.com/mcp/area-insights (how to connect).
Over REST: POST /v1/area-insights/heatmap (equivalent). MCP and REST compared.
What does Get Heatmap do?
Generate an area insights heatmap showing property distribution and price dynamics across geographic areas.
This tool aggregates active real estate listings for the child locations of the given location_id
(e.g., districts of a city), returning the selected data_point metric for each of them.
It supports a wide range of property filters, including estate type, price range,
construction year, and location hierarchy.
Use Cases
Retrieve geographic insights for real estate analytics:
- Visualize market activity intensity across a city or region.
- Identify hotspots of high property density or high average price.
- Compare neighborhoods based on average price per sqm.
- Analyze supply distribution and property trends over time.
- Combine with time-series data to understand historical evolution by area.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
request_data | MCPHeatMapRequestSchema | Yes | Defines filters, metrics, and date range for heatmap generation. |
Important Notes
- Only ACTIVE listings are included.
- The tool automatically resolves child locations (e.g., neighborhoods within a city).
- If no matching data is found, a
ToolErrorwill be raised. - Use returned data for map visualization or spatial analytics dashboards.
Returns
[
{
"location_id": 12345,
"location_name": "Lisbon",
"value": 5200.5
}
]Each item represents one geographic unit with aggregated metric value.
Which parameters does area-insights_get_heatmap take?
request_dataobjectobligatorio19 properties
type_groupstringobligatorioapartment housebusiness_typestringobligatoriosale rentprice_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullableprice_per_sqm_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullablerooms_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullablebedrooms_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullablebathrooms_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullabletotal_area_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullableplot_area_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullableconstruction_year_rangeobjectnullable2 propiedades
minintegernullablemaxintegernullablecharacteristicsobjectnullable2 propiedades
must_havestring[]balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityexcludestring[]balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuityconditionsstring[]used, ruin, very-good, new, other.used ruin very-good new otherprivatebooleanbankbooleanauctionbooleanexclude_outliersbooleanlocation_idintegerobligatoriodata_pointstringobligatorioavg_price avg_price_psqm available_on_market new sold_or_rented price_up price_downdate_rangeobjectobligatorio2 propiedades
mincadena (fecha)obligatorioYYYY-MM-DD. If the specified date is not Monday - the closest previous Monday will be selectedmaxcadena (fecha)nullableYYYY-MM-DD. If the specified date is not Sunday - the closest previous Sunday will be selected¿Qué devuelve?
Returned as result.
Mostrar la estructura de la respuesta (3 campos)
location_idintegerobligatoriolocation_namestringobligatoriovaluenumberobligatorioHow do I call area-insights_get_heatmap?
Un ejemplo ejecutado en la plataforma antes de publicarlo: funciona tal cual. Su asistente completará sus propios valores con los parámetros anteriores.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "area-insights_get_heatmap",
"arguments": {
"request_data": {
"type_group": "apartment",
"business_type": "sale",
"location_id": 11737,
"data_point": "avg_price_psqm",
"date_range": {
"min": "2025-01-01",
"max": "2025-12-31"
}
}
}
}
}