Area Insights · MCP tool
ma_get_time_series_operations
Get Time Series Operations
Over REST: no operation in the public API description does this. MCP and REST compared.
Description
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 singleMCPTimeSeriesRequestSchemaobject 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, orYEAR).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
segmentmay only redefinecustom_location_boundaryandaliasrelative 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
ToolErrorwith an error message.
Example Success Response
{
"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
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.
Parameters
request_dataobjectrequiredfilter), 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 properties
segmentobjectrequiredfilter but may redefine location-specific ones (such as custom_location_boundary or alias).21 properties
type_groupstringrequiredapartment housebusiness_typestringrequiredsale rentprice_rangeobjectnullable2 properties
minintegernullablemaxintegernullableprice_per_sqm_rangeobjectnullable2 properties
minintegernullablemaxintegernullablerooms_rangeobjectnullable2 properties
minintegernullablemaxintegernullablebedrooms_rangeobjectnullable2 properties
minintegernullablemaxintegernullablebathrooms_rangeobjectnullable2 properties
minintegernullablemaxintegernullabletotal_area_rangeobjectnullable2 properties
minintegernullablemaxintegernullableplot_area_rangeobjectnullable2 properties
minintegernullablemaxintegernullableconstruction_year_rangeobjectnullable2 properties
minintegernullablemaxintegernullablecharacteristicsobjectnullable2 properties
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 otherprivatebooleanbankbooleanauctionbooleanexclude_outliersbooleanaliasstringrequiredcustom_location_boundaryobjectrequired2 properties
location_idsinteger[]circleobject2 properties
distanceintegerrequiredtarget_point to the properties.target_pointobjectrequired2 properties
latitudenumberrequiredlongitudenumberrequireddata_pointstringrequiredavg_price avg_price_psqm available_on_market new sold_or_rented price_up price_downdate_intervalstringrequiredweek month quarter yeardate_rangeobjectrequired2 properties
minstring (date)requiredYYYY-MM-DD. If the specified date is not Monday - the closest previous Monday will be selected.maxstring (date)nullableYYYY-MM-DD. If the specified date is not Sunday - the closest previous Sunday will be selected.operationsstring[]mean, cagr, delta_pct). If omitted, a default minimal set is applied.29 allowed values
mean 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_12Response
Show the response shape (8 fields)
aliasstringrequireddate_startstring (date)requireddate_endstring (date)requireddate_intervalstringrequiredweek month quarter yeartotal_of_data_pointsintegerrequiredresultsobject[]required2 properties
operationstringrequired29 allowed values
mean 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_12valuenumberrequiredExample call
Required arguments only, with placeholder values. Your assistant fills them in from the parameters above.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ma_get_time_series_operations",
"arguments": {
"request_data": {
"segment": {
"type_group": "apartment",
"business_type": "sale",
"alias": "…",
"custom_location_boundary": {
"location_ids": [
1
]
},
"data_point": "avg_price",
"date_interval": "week",
"date_range": {
"min": "2025-01-01"
}
}
}
}
}
}