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_price_distribution

Get Price Distribution

Solo lectura42 parametersRespuesta tipada

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

Over REST: POST /v1/area-insights/distributions/prices (equivalent). MCP and REST compared.

What does Get Price Distribution do?

Returns a distribution of property prices based on the provided filters. Each record represents a price interval and the number of properties within that interval.

Parameters

NameTypeRequiredDescription
request_dataMCPPriceDistributionRequestSchemaYesConfiguration for price distribution filtering.

Filter highlights

  • type_group: group of estate types (e.g., apartment, house)
  • business_type: "sale" or "rent"
  • price_range: numeric price range filter
  • exclude_outliers: optional flag to exclude statistical outliers

Returns

json
[
  {
    "lower_bound": 100000,
    "upper_bound": 150000,
    "properties_count": 42,
    "is_mean": false
  }
]
FieldTypeDescription
lower_boundintLower price boundary
upper_boundintUpper price boundary
properties_countintNumber of properties in the range
is_meanboolIndicates whether the range includes the mean price

Example Request

json
{
  "custom_location_boundary": {
    "circle": {
      "target_point": {"latitude": 48.8566, "longitude": 2.3522},
      "distance": 10000
    }
  },
  "type_group": "apartment",
  "business_type": "sale",
  "price_range": {"min": 100000, "max": 500000},
  "exclude_outliers": true
}

Which parameters does area-insights_get_price_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–15000
maxintegernullable
0–15000
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 la propiedad: cualquiera de used, ruin, very-good, new, other.
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)
lower_boundintegerobligatorio
Límite inferior de precio de la unidad de distribución.
upper_boundintegerobligatorio
Límite superior de precio de la unidad de distribución.
properties_countintegerobligatorio
Número de inmuebles que participaron en la distribución.
is_meanbooleanobligatorio
Indicates whether the mean value is within this distribution unit.

How do I call area-insights_get_price_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_price_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.