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_time_series_operations

Get Time Series Operations

Solo lectura50 parametersRespuesta tipada

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

Over REST: no operation in the public API description does this. MCP and REST compared.

What does Get Time Series Operations do?

Performs analytical time-series operations (e.g., mean, delta_pct, CAGR, cv, std, etc.) for a single geographic or analytical segment using real-estate historical data.

This tool enables focused analysis of real estate market dynamics over time — such as prices, listings, or sales — within one defined location or subset.

Purpose

Designed for analytical scenarios such as:

  • Tracking how property prices evolve in a specific area.
  • Measuring growth trends (e.g., CAGR, percentage deltas).
  • Evaluating volatility using standard deviation or coefficient of variation.
  • Studying local market activity over a given period.

Input (request_data)

Expects an instance of MCPTimeSeriesOperationsRequestSchema, which includes:

  • segment → a single MCPTimeSeriesRequestSchema object defining the geographic or analytical subset.
  • operations → list of time-series operations (TimeSeriesOperationEnum) to compute.

MCPTimeSeriesRequestSchema includes:

  • custom_location_boundary: spatial boundary (circle or list of location IDs).
  • data_point: metric to analyze (e.g. AVERAGE_PRICE_PER_SQM, SOLD_COUNT, NEW_LISTED_COUNT).
  • date_interval: aggregation interval (WEEK, MONTH, QUARTER, or YEAR).
  • date_range: start and end of the analysis period.
  • Optional property filters (price, area, rooms, construction year, etc.).
  • exclude_outliers: whether to exclude statistical outliers.

Analytical consistency rule: The analytical context (data_point, date_interval, business_type, etc.) must remain consistent within the request. The segment may only redefine custom_location_boundary and alias relative to the base filter.

Operations

Supported operations from TimeSeriesOperationEnum include:

  • mean — average value across the time range.
  • delta_pct — percentage change between the first and last data points.
  • cagr — compound annual growth rate.
  • std — standard deviation.
  • cv — coefficient of variation.
  • (plus others defined in the enum).

LLM Behavior

  • On success → returns a single analytical result (MCPTimeSeriesUnitResponseSchema) containing computed metrics for the requested segment.
  • On error → raises a ToolError with an error message.

Example Success Response

json
    {
      "alias": "Madrid Center",
      "date_start": "2020-01-01",
      "date_end": "2024-01-01",
      "date_interval": "MONTH",
      "total_of_data_points": 48,
      "results": [
        {"operation": "mean", "value": 3200.5},
        {"operation": "delta_pct", "value": 12.4},
        {"operation": "cagr", "value": 0.032}
      ]
    }

Example Error Response

text
ToolError: No data found for the specified segment.

Example Use Cases

  • Analyze average price per m² in a specific city or district.
  • Measure sales growth over several years.
  • Evaluate rental market volatility.
  • Assess seasonal dynamics of listings or sales activity.

Summary

get_time_series_operations retrieves aggregated real-estate time-series data for a defined location or segment and computes selected analytical operations. It provides a structured, quantitative summary of market trends and changes for a single region or subset.

Which parameters does area-insights_get_time_series_operations take?

request_dataobjectobligatorio
Schema for MCP time-series analytical requests. ### Concept This schema defines what to analyze (via filter), where to analyze (via segment), and which operations to compute (via operations). - The filter contains shared analytical parameters defining the general query context. - The segment represents a specific analytical subset (e.g., a district, city, or region), which inherits all values from filter but can override a few (e.g., location boundary). This logic ensures a consistent analytical context while allowing a single location-specific override — suitable for focused analytical requests where only one boundary or subset is being analyzed.
2 propiedades
segmentobjectobligatorio
Analytical segment representing a boundary or subset of data. Inherits all fields from filter but may redefine location-specific ones (such as custom_location_boundary or alias).
21 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 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
aliasstringobligatorio
Alias (name) of the segment that was analyzed.
custom_location_boundaryobjectobligatorio
Geographic boundary definition (circle, or location ID list).
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
data_pointstringobligatorio
Especifica el tipo de datos inmobiliarios a recuperar para un periodo determinado.
avg_price avg_price_psqm available_on_market new sold_or_rented price_up price_down
date_intervalstringobligatorio
Defines the time interval for aggregating data points. Determines the frequency at which data is reported in the response.
week month quarter year
date_rangeobjectobligatorio
2 propiedades
mincadena (fecha)obligatorio
Start date in the format YYYY-MM-DD. If the specified date is not Monday - the closest previous Monday will be selected.
maxcadena (fecha)nullable
End date in the format YYYY-MM-DD. If the specified date is not Sunday - the closest previous Sunday will be selected.
operationsstring[]
List of analytical operations to compute (e.g. mean, cagr, delta_pct). If omitted, a default minimal set is applied.
29 allowed valuesmean median std var min max sum count delta_abs delta_pct cagr mom_last yoy_last slope_per_period trend_strength cv inc_steps dec_steps flat_steps p10 q1 p90 p95 iqr outlier_ratio zscore_max movavg_last_3 movavg_last_6 movavg_last_12

¿Qué devuelve?

Show the response shape (8 fields)
aliasstringobligatorio
Alias (name) of the segment that was analyzed.
date_startcadena (fecha)obligatorio
Start date of the analyzed period.
date_endcadena (fecha)obligatorio
End date of the analyzed period.
date_intervalstringobligatorio
Frequency of the analyzed period.
week month quarter year
total_of_data_pointsintegerobligatorio
Number of data points included in the analyzed period.
resultsobject[]obligatorio
List of computed results for each analytical operation.
2 propiedades
operationstringobligatorio
Operation type applied to the time series (e.g., mean, cagr, delta_pct, cv).
29 allowed valuesmean median std var min max sum count delta_abs delta_pct cagr mom_last yoy_last slope_per_period trend_strength cv inc_steps dec_steps flat_steps p10 q1 p90 p95 iqr outlier_ratio zscore_max movavg_last_3 movavg_last_6 movavg_last_12
valuenumberobligatorio
Computed numeric value. None if insufficient data for the operation.

How do I call area-insights_get_time_series_operations?

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_time_series_operations",
    "arguments": {
      "request_data": {
        "segment": {
          "type_group": "apartment",
          "business_type": "sale",
          "custom_location_boundary": {
            "location_ids": [
              11737
            ]
          },
          "alias": "Madrid",
          "data_point": "avg_price_psqm",
          "date_interval": "quarter",
          "date_range": {
            "min": "2024-01-01",
            "max": "2025-12-31"
          }
        },
        "operations": [
          "mean",
          "delta_pct"
        ]
      }
    }
  }
}

Preguntas sobre esto

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