Comparables & Valuation · MCP tool
comparables_get_comparables
Get Comparables
Call it as comparables_get_comparables on the Comparables & Valuation MCP server, https://platform.casafari.com/mcp/comparables (how to connect).
Over REST: POST /v1/comparables/search (equivalent), POST /api/v2/comparables/search (equivalent), POST /api/v1/comparables/search (related), POST /api/v1/valuation/comparables-prices (related). MCP and REST compared.
What does Get Comparables do?
Values one property and finds comparable properties around it. Give the target in location_boundary.circle.target_point as a street address, coordinates or, in Spain only, a cadastral reference, plus comparables_types, its size (total_area or plot_area, in square metres) and operation (sale or rent). It returns estimated_prices (fast-sell, fair and out-of-market price) and the comparable properties with area statistics. Asking prices only, with no registered or closing prices (Comparables with Transactions has those). The circle radius, distance, is in kilometres (0.05 to 50, default 5), not metres. bedrooms is a similarity target, not a filter, so results can have other bedroom counts.
Which parameters does comparables_get_comparables take?
comparables_countintegerrequiredlocation_boundaryobjectrequired2 properties
polygonobject[]2 properties
latitudenumberrequiredlongitudenumberrequiredcircleobject2 properties
distancenumbertarget_point: 0.05 to 50, default 5.target_pointobjectrequired3 properties
coordinatesobject2 properties
latitudenumberrequiredlongitudenumberrequiredaddressstringcadastral_referenceobject4 properties
country_codestringrequiredEScadastral_referencestringrequiredprovincestringmunicipalitystringsold_or_rented_afterstringnullableYYYY-MM-DD) will be considered as possible comparables. Default value: 9 months ago, counting from today. If null is passed, only active properties will be considered.operationstringrequiredsale rentcomparables_typesstring[]required40 allowed values
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel other_commercial restaurant werkstatt plot urban_plot rural_plot room other garage parking apartment_building office_building mix_use_buildingmin_priceintegermax_priceintegerconditionstringused ruin very-good new otherbedroomsintegerrooms.roomsintegerbedrooms).bathroomsintegerconstruction_yearintegertotal_areaintegerhotel, industrial, office, other_commercial, restaurant, retail, warehouse, werkstatt property types if target_point.cadastral_reference is not provided.plot_areaintegerrural_plot and urban_plot property types if target_point.cadastral_reference is not provided.floorsstring[]no_floor ground middle topfloor_numberinteger[]orientationstringexterior interiorviewsstring[]water landscape city golf parkdirectionsstring[]north south east westcharacteristicsobject3 properties
must_havestring[]balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuity business_transfer smoke_outlet air_conditioningnice_to_havestring[]balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuity business_transfer smoke_outlet air_conditioningexcludestring[]balcony elevator no_elevator garage garden parking storage swimming_pool terrace rental_license furniture rented_out life_annuity business_transfer smoke_outlet air_conditioningenergy_ratingsstring[]Unknown A+ A B C D E F G Hdays_on_market_fromintegerdays_on_market_tointegerwith_agenciesstring[]without_agenciesstring[]exclude_outliersbooleanWhat does it return?
Show the response shape (99 fields)
resultsobject[]required60 properties
property_idintegerrequiredproperty_urlstringnullableprimary_listing_idintegerrequiredtypestringrequired40 allowed values
apartment studio duplex penthouse dachgeschosswohnung etagenwohnung erdgeschosswohnung country_house house palace townhouse villa country_estate chalet bungalow family_house reihenhaus reihenendhaus reihenmittelhaus einfamilienhaus zweifamilienhaus landwirtschaftliche_betriebe retail office industrial warehouse hotel other_commercial restaurant werkstatt plot urban_plot rural_plot room other garage parking apartment_building office_building mix_use_buildingtype_groupstringrequiredapartment house investment plot othercoordinatesobjectrequired2 properties
latitudenumberrequiredlongitudenumberrequiredlocationobjectrequired4 properties
location_idintegerrequirednamestringrequiredadministrative_levelstringrequiredzip_codesstring[]nullablelocations_structureobject[]required4 properties
location_idintegerrequirednamestringrequiredadministrative_levelstringrequiredzip_codesstring[]nullableaddressstringrequiredzip_codestringrequireddistancenumbernullableconstruction_yearintegerrequiredtotal_areaintegerrequiredliving_areaintegerrequiredplot_areaintegerrequiredterrace_areaintegerrequiredbedroomsintegerrequiredroomsintegerrequiredbathroomsintegerrequiredfloor_numberintegerrequiredconditionstringrequiredused ruin very-good new otherfeaturesobjectrequired7 properties
floorstringrequiredno_floor ground middle toporientationstringrequiredexterior interiorviewstringrequiredviews field instead.water landscape city golf parkviewsstring[]requiredwater landscape city golf parkdirectionstringrequireddirections field instead.north south east westdirectionsstring[]requirednorth south east westcharacteristicsstring[]requiredoperationsstring[]requiredsale rentsale_statusstringrequiredactive reserved hold sold nonesale_currencystringrequiredsale_priceintegerrequiredsale_currency field).sale_price_baseintegerrequiredsale_price_per_sqmnumberrequiredsale_currency field).sale_price_per_sqm_basenumberrequiredrent_statusstringrequiredactive reserved hold rented nonerent_currencystringrequiredrent_priceintegerrequiredrent_currency field).rent_price_baseintegerrequiredrent_price_per_sqmnumberrequiredrent_currency field).rent_price_per_sqm_basenumberrequiredrent_periodstringrequiredday week fortnight month year nonetitlestringrequireddescriptionstringrequiredthumbnailsstring[]nullablepicturesstring[]nullablegross_yieldnumberrequiredsold_atstringrequiredrented_atstringrequiredtotal_sale_price_changenumberrequiredtotal_rent_price_changenumberrequiredlast_sale_price_reductionnumberrequiredlast_rent_price_reductionnumberrequiredsale_price_last_changeobjectrequired3 properties
change_datestringrequiredold_valueintegerrequirednew_valueintegerrequiredrent_price_last_changeobjectrequired3 properties
change_datestringrequiredold_valueintegerrequirednew_valueintegerrequiredsale_time_on_marketmap of anynullablerent_time_on_marketmap of anynullablesale_active_listings_countintegernullablerent_active_listings_countintegernullablesimilarity_scorenumbernullablelisting_urlsstring[]requiredis_outlierbooleannullableis_private_propertybooleanrequiredenergy_certificatestringnullableenergy_rating field instead.energy_ratingstringnullableref_numbersstring[]requiredstatisticsobjectrequiredoperation defined in the request).5 properties
average_priceintegerrequiredaverage_price_per_sqmnumberrequiredaverage_time_on_the_marketintegerrequiredaverage_listings_per_propertynumberrequiredsold_or_rented_in_last_six_monthsintegerrequiredestimated_pricesobjectrequiredoperation defined in the request).6 properties
fast_sell_priceintegerrequiredfair_market_priceintegerrequiredout_of_market_priceintegerrequiredfast_sell_price_per_sqmnumberrequiredfair_market_price_per_sqmnumberrequiredout_of_market_price_per_sqmnumberrequiredcasafari_linkstringrequiredvaluation_idintegernullableHow do I call comparables_get_comparables?
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": "comparables_get_comparables",
"arguments": {
"comparables_count": 1,
"location_boundary": {
"polygon": [
{
"latitude": -90,
"longitude": -180
}
]
},
"operation": "sale",
"comparables_types": [
"apartment"
]
}
}
}