Area Insights · MCP-Tool
area-insights_get_price_distribution
Get Price Distribution
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), POST /market-analytics-api/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
| Name | Type | Required | Description |
|---|---|---|---|
request_data | MCPPriceDistributionRequestSchema | Yes | Configuration 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 filterexclude_outliers: optional flag to exclude statistical outliers
Returns
[
{
"lower_bound": 100000,
"upper_bound": 150000,
"properties_count": 42,
"is_mean": false
}
]| Field | Type | Description |
|---|---|---|
lower_bound | int | Lower price boundary |
upper_bound | int | Upper price boundary |
properties_count | int | Number of properties in the range |
is_mean | bool | Indicates whether the range includes the mean price |
Example Request
{
"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_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 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)
lower_boundintegererforderlichupper_boundintegererforderlichproperties_countintegererforderlichis_meanbooleanerforderlichHow do I call area-insights_get_price_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_price_distribution",
"arguments": {
"request_data": {
"type_group": "apartment",
"business_type": "sale",
"custom_location_boundary": {
"location_ids": [
544116
]
}
}
}
}
}