Area Insights · MCP tool
ma_get_bedrooms_distribution
Get Bedrooms Distribution
Over REST: POST /market-analytics-api/distributions/bedrooms (equivalent). MCP and REST compared.
Description
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
| Name | Type | Required | Description |
|---|---|---|---|
request_data | MCPBedroomsDistributionRequestSchema | Yes | Filter 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 filterbedrooms_range: range of bedroom countsexclude_outliers: optional flag to remove statistical outliers
Returns
[
{
"bedrooms": "2",
"properties_count": 324,
"average_price": 245000.0,
"average_price_per_sqm": 5200.0
}
]| Field | Type | Description |
|---|---|---|
bedrooms | str | Bedroom count label |
properties_count | int | Number of properties |
average_price | float | Average property price |
average_price_per_sqm | float | Average price per square meter |
Example Request
{
"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
}Parameters
request_dataobjectrequired17 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_outliersbooleancustom_location_boundaryobjectrequired2 properties
location_idsinteger[]circleobject2 properties
distanceintegerrequiredtarget_point to the properties.target_pointobjectrequired2 properties
latitudenumberrequiredlongitudenumberrequiredResponse
Returned as result.
Show the response shape (4 fields)
bedroomsstringrequiredproperties_countintegerrequiredaverage_pricenumberrequiredaverage_price_per_sqmnumberrequiredExample 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_bedrooms_distribution",
"arguments": {
"request_data": {
"type_group": "apartment",
"business_type": "sale",
"custom_location_boundary": {
"location_ids": [
1
]
}
}
}
}
}