Area Insights · MCP-Tool
area-insights_get_bedrooms_distribution
Get Bedrooms Distribution
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). 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
| 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
}Which parameters does area-insights_get_bedrooms_distribution take?
request_dataobjecterforderlich17 properties
type_groupZeichenfolgeerforderlichapartment housebusiness_typeZeichenfolgeerforderlichsale rentprice_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinprice_per_sqm_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinrooms_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinbedrooms_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinbathrooms_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seintotal_area_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinplot_area_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seinconstruction_year_rangeobjectkann null sein2 Eigenschaften
minintegerkann null seinmaxintegerkann null seincharacteristicsobjectkann null sein2 Eigenschaften
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, other.used ruin very-good new otherprivatebooleanbankbooleanauctionbooleanexclude_outliersbooleancustom_location_boundaryobjecterforderlich2 Eigenschaften
location_idsinteger[]circleobject2 Eigenschaften
distanceintegererforderlichtarget_point zu den Immobilien.target_pointobjecterforderlich2 Eigenschaften
latitudenumbererforderlichlongitudenumbererforderlichWas wird zurückgegeben?
Returned as result.
Antwortstruktur anzeigen (4 Felder)
bedroomsZeichenfolgeerforderlichproperties_countintegererforderlichaverage_pricenumbererforderlichaverage_price_per_sqmnumbererforderlichHow do I call area-insights_get_bedrooms_distribution?
Ein Beispiel, das vor der Veröffentlichung auf der Plattform ausgeführt wurde: Es funktioniert so wie es ist. Ihr Assistent füllt Ihre eigenen Werte basierend auf den oben genannten Parametern aus.
{
"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": [
544116
]
}
}
}
}
}