Platform

Casafari es la plataforma de inteligencia de datos inmobiliarios nativa para agentes de IA. El índice inmobiliario más completo de Europa: un grafo inmobiliario limpio y deduplicado de propiedades residenciales y comerciales, en venta y alquiler, en 16 países.El índice inmobiliario más completo de Europa: un grafo inmobiliario limpio y deduplicado.

Cómo se construye el grafo

Area Insights · herramienta MCP

area-insights_get_bedrooms_distribution

Get Bedrooms Distribution

Solo lectura42 parametersRespuesta tipada

Call it as area-insights_get_bedrooms_distribution on the Area Insights MCP server, https://platform.casafari.com/mcp/area-insights (how to connect).

Over REST: POST /v1/area-insights/distributions/bedrooms (equivalent), POST /market-analytics-api/distributions/bedrooms (equivalent). MCP and REST compared.

What does Get Bedrooms Distribution do?

Returns a distribution of properties grouped by the number of bedrooms. Each record includes total listings count, average price, and average price per square meter.

Business Context

Useful for analyzing pricing differences and market concentration based on bedroom count — ideal for residential market segmentation.

Parameters

NameTypeRequiredDescription
request_dataMCPBedroomsDistributionRequestSchemaYesFilter configuration for bedroom-based distribution.

Filter highlights

  • type_group: property type group (e.g., apartment, house)
  • business_type: "sale" or "rent"
  • custom_location_boundary: geographical boundary filter
  • bedrooms_range: range of bedroom counts
  • exclude_outliers: optional flag to remove statistical outliers

Returns

json
[
  {
    "bedrooms": "2",
    "properties_count": 324,
    "average_price": 245000.0,
    "average_price_per_sqm": 5200.0
  }
]
FieldTypeDescription
bedroomsstrBedroom count label
properties_countintNumber of properties
average_pricefloatAverage property price
average_price_per_sqmfloatAverage price per square meter

Example Request

json
{
  "custom_location_boundary": {
    "circle": {
      "target_point": {"latitude": 48.8566, "longitude": 2.3522},
      "distance": 10000
    }
  },
  "type_group": "apartment",
  "business_type": "sale",
  "bedrooms_range": {"min": 1, "max": 4},
  "exclude_outliers": true
}

Which parameters does area-insights_get_bedrooms_distribution take?

request_dataobjectobligatorio
17 properties
type_groupstringobligatorio
Grupo de tipo de inmueble.
apartment house
business_typestringobligatorio
Tipo de operación para la que el inmueble está disponible.
sale rent
price_rangeobjectnullable
2 propiedades
minintegernullable
1–2147483647
maxintegernullable
1–2147483647
price_per_sqm_rangeobjectnullable
2 propiedades
minintegernullable
1–2147483647
maxintegernullable
1–2147483647
rooms_rangeobjectnullable
2 propiedades
minintegernullable
1–15000
maxintegernullable
1–15000
bedrooms_rangeobjectnullable
2 propiedades
minintegernullable
0–10
maxintegernullable
0–10
bathrooms_rangeobjectnullable
2 propiedades
minintegernullable
1–15000
maxintegernullable
1–15000
total_area_rangeobjectnullable
2 propiedades
minintegernullable
1–1000000
maxintegernullable
1–1000000
plot_area_rangeobjectnullable
2 propiedades
minintegernullable
1–1000000
maxintegernullable
1–1000000
construction_year_rangeobjectnullable
2 propiedades
minintegernullable
1–3000
maxintegernullable
1–3000
characteristicsobjectnullable
2 propiedades
must_havestring[]
Incluir solo los inmuebles que posean todas estas características.
balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuity
excludestring[]
Excluir los inmuebles que contengan alguna de estas características.
balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuity
conditionsstring[]
Estados de conservación de la propiedad, tal y como los devuelve el endpoint GET /api/v1/references/conditions.
used ruin very-good new other
al menos 1 elemento
privateboolean
Indica si el anuncio es de un particular o de un profesional o agencia inmobiliaria.
bankboolean
Si el inmueble es propiedad del banco.
auctionboolean
Si el inmueble está sujeto a subasta.
por defecto false
exclude_outliersboolean
Excluir inmuebles cuyo precio esté significativamente fuera de mercado en comparación con propiedades similares.
valor predeterminado true
custom_location_boundaryobjectobligatorio
2 propiedades
location_idsinteger[]
Lista de ID de ubicación.
1–10 elementos1–2147483647
circleobject
Dibuja un círculo para delimitar el área de búsqueda.
2 propiedades
distanceintegerobligatorio
Distancia máxima en metros desde el target_point solicitado hasta los inmuebles.
50–50000
target_pointobjectobligatorio
Coordenadas del punto objetivo alrededor del cual buscar.
2 propiedades
latitudenumberobligatorio
-90–90
longitudenumberobligatorio
-180–180

¿Qué devuelve?

Returned as result.

Mostrar la estructura de respuesta (4 campos)
bedroomsstringobligatorio
The number of bedrooms in the properties that participated in the distribution.
properties_countintegerobligatorio
Número de inmuebles que participaron en la distribución.
average_pricenumberobligatorio
Average price of properties with a specific number of bedrooms.
average_price_per_sqmnumberobligatorio
Average price per square meter of properties with a specific number of bedrooms.

How do I call area-insights_get_bedrooms_distribution?

Un ejemplo ejecutado en la plataforma antes de publicarlo: funciona tal cual. Su asistente completará sus propios valores con los parámetros anteriores.

JSON-RPC
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "area-insights_get_bedrooms_distribution",
    "arguments": {
      "request_data": {
        "type_group": "apartment",
        "business_type": "sale",
        "custom_location_boundary": {
          "location_ids": [
            11737
          ]
        }
      }
    }
  }
}

Consejo: añada .md a cualquier URL para leerla como Markdown.