{
  "servers": "https://platform.casafari.com/mcp/",
  "groups": [
    {
      "namespace": "props",
      "name": "Property Sourcing",
      "docs": "/docs/property-sourcing",
      "endpoint": "https://platform.casafari.com/mcp/property-sourcing",
      "tools": [
        {
          "name": "property-sourcing_search",
          "backend_name": "search",
          "title": "Search homes for sale or rent",
          "description": "Homes for sale or rent in one country, merged into one record per home across portals and agency websites. Give location_ids from locations_search, and optionally operation (sale or rent), types, ranges for price, price_per_sqm, bedrooms, bathrooms, living_area_sqm and plot_area_sqm ({\"min\", \"max\"}), features and exclude_features, sort and page_size. Each result has a prop_ id, type, asking price (and per square metre), bedrooms, living area, location and the date first seen; total is how many homes match. When next is not null, pass it to property-sourcing_next_page. There is no plain-language filter.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "location_ids": {
                "type": "array",
                "description": "1 to 100 location ids, from locations_search (a city, district or neighbourhood).",
                "items": {
                  "type": "integer",
                  "minimum": 1
                },
                "minItems": 1,
                "maxItems": 100
              },
              "country": {
                "type": "string",
                "description": "ISO country code, e.g. \"ES\". Optional: the location ids say their country.",
                "pattern": "^[A-Za-z]{2}$"
              },
              "operation": {
                "type": "string",
                "enum": [
                  "sale",
                  "rent"
                ],
                "description": "Homes for \"sale\" (default) or for \"rent\"."
              },
              "types": {
                "type": "array",
                "description": "Property types, lower case, e.g. [\"apartment\", \"penthouse\", \"house\", \"villa\"].",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z][a-z_]*$",
                  "maxLength": 40
                },
                "minItems": 1,
                "maxItems": 40
              },
              "price": {
                "type": "object",
                "description": "Asking price in the country's currency (monthly rent when operation is rent): {\"min\": n, \"max\": n}, whole numbers from 1; either may be left out.",
                "properties": {
                  "min": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "max": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              },
              "price_per_sqm": {
                "type": "object",
                "description": "Asking price per square metre: {\"min\": n, \"max\": n}, whole numbers from 1; either may be left out.",
                "properties": {
                  "min": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "max": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              },
              "bedrooms": {
                "type": "object",
                "description": "Bedrooms: {\"min\": n, \"max\": n}, whole numbers from 0; either may be left out.",
                "properties": {
                  "min": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "max": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "additionalProperties": false
              },
              "bathrooms": {
                "type": "object",
                "description": "Bathrooms: {\"min\": n, \"max\": n}, whole numbers from 1; either may be left out.",
                "properties": {
                  "min": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "max": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              },
              "living_area_sqm": {
                "type": "object",
                "description": "Living area in square metres: {\"min\": n, \"max\": n}, whole numbers from 1; either may be left out.",
                "properties": {
                  "min": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "max": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              },
              "plot_area_sqm": {
                "type": "object",
                "description": "Plot area in square metres: {\"min\": n, \"max\": n}, whole numbers from 1; either may be left out.",
                "properties": {
                  "min": {
                    "type": "integer",
                    "minimum": 1
                  },
                  "max": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              },
              "features": {
                "type": "array",
                "description": "Features every result must have.",
                "items": {
                  "type": "string",
                  "enum": [
                    "balcony",
                    "elevator",
                    "garage",
                    "garden",
                    "parking",
                    "storage",
                    "swimming_pool",
                    "terrace",
                    "rental_license",
                    "furniture",
                    "no_elevator",
                    "rented_out",
                    "life_annuity",
                    "business_transfer",
                    "smoke_outlet"
                  ]
                },
                "minItems": 1,
                "maxItems": 15
              },
              "exclude_features": {
                "type": "array",
                "description": "Features no result may have.",
                "items": {
                  "type": "string",
                  "enum": [
                    "balcony",
                    "elevator",
                    "garage",
                    "garden",
                    "parking",
                    "storage",
                    "swimming_pool",
                    "terrace",
                    "rental_license",
                    "furniture",
                    "no_elevator",
                    "rented_out",
                    "life_annuity",
                    "business_transfer",
                    "smoke_outlet"
                  ]
                },
                "minItems": 1,
                "maxItems": 15
              },
              "sort": {
                "type": "string",
                "enum": [
                  "newest",
                  "oldest",
                  "recently_updated",
                  "price_asc",
                  "price_desc",
                  "price_per_sqm_asc",
                  "price_per_sqm_desc",
                  "largest"
                ],
                "description": "Order of the results. newest: most recently on the market first."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100,
                "description": "Results per page, 1 to 100 (default 25; the plan may allow fewer). Every page costs the same."
              }
            },
            "required": [
              "location_ids"
            ],
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/property-sourcing/search"
        },
        {
          "name": "property-sourcing_next_page",
          "backend_name": "next_page",
          "title": "Next page of a home search",
          "description": "The next page of a property-sourcing_search: pass its next value as cursor, unchanged. A cursor is valid for an hour and only for this account; one search reaches at most the plan's depth.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "cursor": {
                "type": "string",
                "description": "The `next` value of the previous page, as it came (a link or its cur_ part). Valid for an hour.",
                "minLength": 1,
                "maxLength": 4096
              }
            },
            "required": [
              "cursor"
            ],
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/property-sourcing/next_page"
        },
        {
          "name": "property-sourcing_get_property",
          "backend_name": "get_property",
          "title": "One home with its listings and history",
          "description": "One home by its prop_ id: type, asking price and per square metre, rooms, areas, location and description. Add expand [\"listings\"] for every portal and agency listing of the home (source, agency, link, price, status) and [\"history\"] for its price and status changes over time, which show price cuts and time on the market.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "property_id": {
                "type": "string",
                "description": "A prop_ id from a search, resolve_listing, a High Potential Seller Leads result or an Area Insights properties sample.",
                "pattern": "^prop_[A-Za-z0-9_-]+$"
              },
              "expand": {
                "type": "array",
                "description": "Add \"listings\" (every portal and agency listing of the home) and/or \"history\" (its price and status changes). Same price either way.",
                "items": {
                  "type": "string",
                  "enum": [
                    "listings",
                    "history"
                  ]
                },
                "maxItems": 2
              },
              "operation": {
                "type": "string",
                "enum": [
                  "sale",
                  "rent"
                ],
                "description": "Which price to show when the home is offered both ways. Optional."
              }
            },
            "required": [
              "property_id"
            ],
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/property-sourcing/get_property"
        },
        {
          "name": "property-sourcing_resolve_listing",
          "backend_name": "resolve_listing",
          "title": "Find the home behind a listing link",
          "description": "The home behind one listing: give exactly one of url (a portal or agency link), reference (the listing's reference, with country) or listing_id. Answers the matching homes with their prop_ ids, ready for property-sourcing_get_property. Add country when the link's domain does not say it.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "A portal or agency link to one listing.",
                "maxLength": 2000
              },
              "reference": {
                "type": "string",
                "description": "The listing's reference, as the agency publishes it.",
                "maxLength": 100
              },
              "listing_id": {
                "type": "integer",
                "minimum": 1,
                "description": "A listing id from a property's listings."
              },
              "country": {
                "type": "string",
                "description": "ISO country code, e.g. \"ES\". Needed for a reference, or for a link whose domain does not say the country.",
                "pattern": "^[A-Za-z]{2}$"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/property-sourcing/resolve_listing"
        },
        {
          "name": "property-sourcing_get_closing_prices",
          "backend_name": "get_closing_prices",
          "title": "Registered sale prices around a home",
          "description": "What similar homes nearby actually sold for, not what they are asking: the aggregated registered sale prices around one home by its prop_ id, for homes in Spain, France, Italy, Poland and Portugal. Compares with recent registered sales of the same type (apartment or house) and about the same size within a radius (default 1,500 m) and period (default 24 months), and answers the count, the median, p10, p90 and range per square metre (after leaving out implausible rows such as parking spaces and partial shares; excluded says how many), and, for France and Poland only, the closest sales (sales, default 10, up to 25: sold date, registered closing price, price per square metre, area, distance and type, never an address), each answer labelled a registered closing price with its source (Spanish notary deeds, France's DVF register, registered sales in Italy, Poland's RCN register). Size is matched on the home's living area, else its total area; size_matched false means the home has neither and all sizes were compared. For Portugal it answers the official median per square metre of the nearest municipality from INE, labelled as an area median. For Italy, where the home lies in an OMI zone, it answers the zone's OMI quotation range per property type and condition from the Agenzia delle Entrate, labelled as a quotation range and not a closing price (otherwise the registered sales summary). Other countries answer that there are none. Use it to judge whether an asking price is high or low.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "property_id": {
                "type": "string",
                "description": "A prop_ id from a search, resolve_listing or get_property.",
                "pattern": "^prop_[A-Za-z0-9_-]+$"
              },
              "radius_m": {
                "type": "integer",
                "minimum": 100,
                "maximum": 5000,
                "description": "Search radius around the home in metres (default 1500)."
              },
              "sales": {
                "type": "integer",
                "minimum": 0,
                "maximum": 25,
                "description": "How many of the closest sales to list (default 10, 0 for none). Each has its sold date, registered closing price, price per m², area, distance and type; never an address."
              },
              "months": {
                "type": "integer",
                "minimum": 1,
                "maximum": 60,
                "description": "How far back to look, in months (default 24)."
              }
            },
            "required": [
              "property_id"
            ],
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/property-sourcing/get_closing_prices"
        }
      ]
    },
    {
      "namespace": "private-sellers",
      "name": "Private Seller Leads",
      "docs": "/docs/private-sellers",
      "endpoint": "https://platform.casafari.com/mcp/private-sellers",
      "tools": [
        {
          "name": "private-sellers_search",
          "backend_name": "search",
          "title": "Search new private-seller listings",
          "description": "New private-seller (FSBO) listings in an area since a date, newest first. Find the location_id with Location Lookup (locations_search) first. Each listing has its portal link, first-seen date, sale or rent, property type, asking price, area, rooms, rounded coordinates and the seller's contact (name, phone, email; null where the portal shows none). since is a date (YYYY-MM-DD), at most 90 days back. Set confirmed_only to keep only listings whose private seller is confirmed. Pass the next value of a page as cursor for the following page.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "location_id": {
                "type": "integer",
                "minimum": 1,
                "description": "Location id of a country, city, district or neighbourhood, from locations_search (Location Lookup)."
              },
              "since": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": "Only listings first seen on or after this date, YYYY-MM-DD, at most 90 days back."
              },
              "until": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": "Only listings first seen on or before this date, YYYY-MM-DD. Optional."
              },
              "operation": {
                "type": "string",
                "enum": [
                  "sale",
                  "rent"
                ],
                "description": "Homes for sale or for rent. Optional: both."
              },
              "property_type": {
                "type": "string",
                "pattern": "^[a-z_]{1,32}$",
                "description": "Property type group, lower case, e.g. \"apartment\" or \"house\". Optional."
              },
              "confirmed_only": {
                "type": "boolean",
                "description": "true: only listings whose private seller is confirmed. Default false."
              },
              "page_size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50,
                "description": "Listings per page, 1 to 50 (default 20). Every page costs the same."
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096,
                "description": "The next value of the previous page, as it came. Valid for an hour. Leave out for the first page."
              }
            },
            "required": [
              "location_id",
              "since"
            ],
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/private-sellers/search"
        },
        {
          "name": "private-sellers_get_listing",
          "backend_name": "get_listing",
          "title": "Get one private-seller listing",
          "description": "One private-seller (FSBO) listing by its psl_ id from a search: the same fields as a search result, the seller's contact included.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^psl_[A-Za-z0-9_-]+$",
                "description": "A psl_ id from a search result."
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/private-sellers/get_listing"
        },
        {
          "name": "private-sellers_coverage",
          "backend_name": "coverage",
          "title": "Private-seller listing coverage",
          "description": "Per country, how many private-seller (FSBO) listings were first seen in the last 30 days, so you know where there is data.",
          "inputSchema": {
            "type": "object",
            "properties": {},
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/private-sellers/coverage"
        }
      ]
    },
    {
      "namespace": "comps",
      "name": "Comparables & Valuation",
      "docs": "/docs/comparables-valuation",
      "endpoint": "https://platform.casafari.com/mcp/comparables",
      "tools": [
        {
          "name": "comparables_get_comparables",
          "backend_name": "get-comparables",
          "title": "Get Comparables",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "comparables_count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50,
                "description": "Maximum number of comparable properties in results."
              },
              "location_boundary": {
                "type": "object",
                "properties": {
                  "polygon": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "latitude": {
                          "type": "number",
                          "minimum": -90,
                          "maximum": 90,
                          "description": "Latitude."
                        },
                        "longitude": {
                          "type": "number",
                          "minimum": -180,
                          "maximum": 180,
                          "description": "Longitude."
                        }
                      },
                      "required": [
                        "latitude",
                        "longitude"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 4,
                    "description": "Closed polygon of geo-points to search within. First and last points must match."
                  },
                  "circle": {
                    "type": "object",
                    "properties": {
                      "distance": {
                        "type": "number",
                        "minimum": 0.05,
                        "maximum": 50,
                        "description": "Circle radius in kilometres (not metres) from `target_point`: 0.05 to 50, default 5.",
                        "default": 5
                      },
                      "target_point": {
                        "type": "object",
                        "properties": {
                          "coordinates": {
                            "type": "object",
                            "properties": {
                              "latitude": {
                                "type": "number",
                                "minimum": -90,
                                "maximum": 90,
                                "description": "Latitude."
                              },
                              "longitude": {
                                "type": "number",
                                "minimum": -180,
                                "maximum": 180,
                                "description": "Longitude."
                              }
                            },
                            "required": [
                              "latitude",
                              "longitude"
                            ],
                            "additionalProperties": false,
                            "description": "Target point coordinates to search around."
                          },
                          "address": {
                            "type": "string",
                            "description": "Address of the property to define the point to search around."
                          },
                          "cadastral_reference": {
                            "type": "object",
                            "properties": {
                              "country_code": {
                                "type": "string",
                                "enum": [
                                  "ES"
                                ],
                                "description": "Country code following the ISO 3166-1 alpha-2 rules."
                              },
                              "cadastral_reference": {
                                "type": "string",
                                "description": "Cadastral reference of the estate."
                              },
                              "province": {
                                "type": "string",
                                "description": "Name of the estate's province."
                              },
                              "municipality": {
                                "type": "string",
                                "description": "Name of the estate's municipality."
                              }
                            },
                            "required": [
                              "country_code",
                              "cadastral_reference"
                            ],
                            "additionalProperties": false,
                            "description": "Cadastral reference of the property to define the point to search around. For now available only for Spain."
                          }
                        },
                        "additionalProperties": false,
                        "description": "Target point to search around. Can be defined as coordinates, address or cadastral reference of the property. Only one value should be provided."
                      }
                    },
                    "required": [
                      "target_point"
                    ],
                    "additionalProperties": false,
                    "description": "Circle boundary to search within."
                  }
                },
                "additionalProperties": false,
                "description": "Location to search within. Can be defined as a polygon of geo-points or a circle with a given target point and a distance. Only one value should be provided.",
                "examples": [
                  {
                    "circle": {
                      "target_point": {
                        "coordinates": {
                          "latitude": 40.39865,
                          "longitude": -3.69627
                        }
                      },
                      "distance": 1
                    }
                  }
                ]
              },
              "sold_or_rented_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Properties sold/rented since this date (in the format `YYYY-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."
              },
              "operation": {
                "type": "string",
                "enum": [
                  "sale",
                  "rent"
                ],
                "description": "Operation type."
              },
              "comparables_types": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "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_building"
                  ]
                },
                "description": "Property types to compare with, all from one type group. Groups: apartment (erdgeschosswohnung, etagenwohnung, dachgeschosswohnung, duplex, studio, penthouse, apartment); house (villa, reihenhaus, palace, country_estate, zweifamilienhaus, reihenmittelhaus, reihenendhaus, landwirtschaftliche_betriebe, country_house, townhouse, chalet, bungalow, einfamilienhaus, house; family_house is deprecated); room (room); building (mix_use_building, office_building, apartment_building); investment (restaurant, other_commercial, warehouse, office, industrial, werkstatt, hotel, retail); plot (rural_plot, urban_plot; plot is deprecated); other (garage, other, parking). Not every type is available in every country."
              },
              "min_price": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647,
                "description": "The minimum price filter for comparables result. Default value: 0."
              },
              "max_price": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647,
                "description": "The maximum price filter for comparables result."
              },
              "condition": {
                "type": "string",
                "enum": [
                  "used",
                  "ruin",
                  "very-good",
                  "new",
                  "other"
                ],
                "description": "Property condition: used, ruin, very-good, new or other."
              },
              "bedrooms": {
                "type": "integer",
                "minimum": 0,
                "maximum": 15000,
                "description": "Target number of bedrooms of the property being valued. A similarity target, not a filter: comparables with other bedroom counts can be returned, ranked lower. Cannot be used together with `rooms`."
              },
              "rooms": {
                "type": "integer",
                "minimum": 0,
                "maximum": 15000,
                "description": "Number of rooms (cannot be used together with `bedrooms`)."
              },
              "bathrooms": {
                "type": "integer",
                "minimum": 1,
                "maximum": 15000,
                "description": "Number of bathrooms."
              },
              "construction_year": {
                "type": "integer",
                "minimum": 1,
                "maximum": 3000,
                "description": "Desired construction year."
              },
              "total_area": {
                "type": "integer",
                "minimum": 5,
                "maximum": 10000000,
                "description": "Desired total area, square meters. This field is required for `hotel`, `industrial`, `office`, `other_commercial`, `restaurant`, `retail`, `warehouse`, `werkstatt` property types if `target_point.cadastral_reference` is not provided."
              },
              "plot_area": {
                "type": "integer",
                "minimum": 20,
                "maximum": 10000000,
                "description": "Desired plot area, square meters. This field is required for `rural_plot` and `urban_plot` property types if `target_point.cadastral_reference` is not provided."
              },
              "floors": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "no_floor",
                    "ground",
                    "middle",
                    "top"
                  ]
                },
                "description": "List of floor types."
              },
              "floor_number": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": -250,
                  "maximum": 250
                },
                "description": "Desired list of floor numbers. Negative values indicate underground floors (e.g. basements). Minimum value is -250. Maximum value is 250."
              },
              "orientation": {
                "type": "string",
                "enum": [
                  "exterior",
                  "interior"
                ],
                "description": "Property view orientation."
              },
              "views": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "water",
                    "landscape",
                    "city",
                    "golf",
                    "park"
                  ]
                },
                "description": "List of views from the property."
              },
              "directions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "north",
                    "south",
                    "east",
                    "west"
                  ]
                },
                "description": "List of cardinal directions the property faces."
              },
              "characteristics": {
                "type": "object",
                "properties": {
                  "must_have": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "balcony",
                        "elevator",
                        "no_elevator",
                        "garage",
                        "garden",
                        "parking",
                        "storage",
                        "swimming_pool",
                        "terrace",
                        "rental_license",
                        "furniture",
                        "rented_out",
                        "life_annuity",
                        "business_transfer",
                        "smoke_outlet",
                        "air_conditioning"
                      ]
                    },
                    "description": "Include only properties that have all these characteristics."
                  },
                  "nice_to_have": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "balcony",
                        "elevator",
                        "no_elevator",
                        "garage",
                        "garden",
                        "parking",
                        "storage",
                        "swimming_pool",
                        "terrace",
                        "rental_license",
                        "furniture",
                        "rented_out",
                        "life_annuity",
                        "business_transfer",
                        "smoke_outlet",
                        "air_conditioning"
                      ]
                    },
                    "description": "Include properties that have any of these characteristics."
                  },
                  "exclude": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "balcony",
                        "elevator",
                        "no_elevator",
                        "garage",
                        "garden",
                        "parking",
                        "storage",
                        "swimming_pool",
                        "terrace",
                        "rental_license",
                        "furniture",
                        "rented_out",
                        "life_annuity",
                        "business_transfer",
                        "smoke_outlet",
                        "air_conditioning"
                      ]
                    },
                    "description": "Exclude properties that contain any of these characteristics."
                  }
                },
                "additionalProperties": false,
                "description": "Property characteristics."
              },
              "energy_ratings": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "Unknown",
                    "A+",
                    "A",
                    "B",
                    "C",
                    "D",
                    "E",
                    "F",
                    "G",
                    "H"
                  ]
                },
                "description": "List of energy ratings."
              },
              "days_on_market_from": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000,
                "description": "Minimum days on market value."
              },
              "days_on_market_to": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000,
                "description": "Maximum days on market value."
              },
              "with_agencies": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Only properties advertised by these agencies, companies or sources, as free-text names. No list of names is available over MCP; an unknown name matches nothing."
              },
              "without_agencies": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Exclude properties advertised by these agencies, companies or sources, as free-text names. No list of names is available over MCP."
              },
              "exclude_outliers": {
                "type": "boolean",
                "description": "Exclude properties that are significantly underpriced or overpriced compared to similar properties. Default value: true."
              }
            },
            "required": [
              "comparables_count",
              "location_boundary",
              "operation",
              "comparables_types"
            ]
          },
          "outputSchema": {
            "type": "object",
            "properties": {
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "property_id": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "ID of the property."
                    },
                    "property_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "URL of the property in the CASAFARI website."
                    },
                    "primary_listing_id": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Primary listing (ad) ID of the property which is defined after the matching into property."
                    },
                    "type": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "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_building"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property type."
                    },
                    "type_group": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "apartment",
                            "house",
                            "investment",
                            "plot",
                            "other"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property type group."
                    },
                    "coordinates": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "latitude": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Latitude."
                            },
                            "longitude": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Longitude."
                            }
                          },
                          "required": [
                            "latitude",
                            "longitude"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property coordinates."
                    },
                    "location": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "location_id": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Location ID, from Location Lookup (`GET /v1/locations/search`)."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Location name."
                            },
                            "administrative_level": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Location administrative level."
                            },
                            "zip_codes": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The location zip codes."
                            }
                          },
                          "required": [
                            "location_id",
                            "name",
                            "administrative_level"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about property location."
                    },
                    "locations_structure": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "location_id": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Location ID, from Location Lookup (`GET /v1/locations/search`)."
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Location name."
                              },
                              "administrative_level": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Location administrative level."
                              },
                              "zip_codes": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "The location zip codes."
                              }
                            },
                            "required": [
                              "location_id",
                              "name",
                              "administrative_level"
                            ],
                            "additionalProperties": true
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about all the parent locations (including property location) up to the country."
                    },
                    "address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Property address."
                    },
                    "zip_code": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The location zip code."
                    },
                    "distance": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Distance in kilometers from target point to the property. Not calculated for search by polygon."
                    },
                    "construction_year": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Construction year."
                    },
                    "total_area": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Total area."
                    },
                    "living_area": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Living area."
                    },
                    "plot_area": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Plot area."
                    },
                    "terrace_area": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Terrace area."
                    },
                    "bedrooms": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of bedrooms."
                    },
                    "rooms": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of rooms."
                    },
                    "bathrooms": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of bathrooms."
                    },
                    "floor_number": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Exact floor number. Negative values indicate underground floors (e.g. basements)."
                    },
                    "condition": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "used",
                            "ruin",
                            "very-good",
                            "new",
                            "other"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property condition: any of `used`, `ruin`, `very-good`, `new`, `other`."
                    },
                    "features": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "floor": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "no_floor",
                                    "ground",
                                    "middle",
                                    "top"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Floor type."
                            },
                            "orientation": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "exterior",
                                    "interior"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Property view orientation."
                            },
                            "view": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "water",
                                    "landscape",
                                    "city",
                                    "golf",
                                    "park"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "View from the property. This field is deprecated and will be removed in the next major update. Please, use `views` field instead."
                            },
                            "views": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "water",
                                      "landscape",
                                      "city",
                                      "golf",
                                      "park"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "List of views from the property."
                            },
                            "direction": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "north",
                                    "south",
                                    "east",
                                    "west"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Cardinal direction the property faces. This field is deprecated and will be removed in the next major update. Please, use `directions` field instead."
                            },
                            "directions": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "north",
                                      "south",
                                      "east",
                                      "west"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "List of cardinal directions the property faces."
                            },
                            "characteristics": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Property characteristics."
                            }
                          },
                          "required": [
                            "floor",
                            "orientation",
                            "view",
                            "views",
                            "direction",
                            "directions",
                            "characteristics"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property features."
                    },
                    "operations": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "sale",
                              "rent"
                            ]
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Operation types for which property is available."
                    },
                    "sale_status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "active",
                            "reserved",
                            "hold",
                            "sold",
                            "none"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Sale status."
                    },
                    "sale_currency": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Sale price currency code."
                    },
                    "sale_price": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Sale price, in the currency of the listings (specified by the `sale_currency` field)."
                    },
                    "sale_price_base": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Sale price, in Euros."
                    },
                    "sale_price_per_sqm": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Sale price per square meter, in the currency of the listings (specified by the `sale_currency` field)."
                    },
                    "sale_price_per_sqm_base": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Sale price per square meter, in Euros."
                    },
                    "rent_status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "active",
                            "reserved",
                            "hold",
                            "rented",
                            "none"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Rent status."
                    },
                    "rent_currency": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Rent price currency code."
                    },
                    "rent_price": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Rent price, in the currency of the listings (specified by the `rent_currency` field)."
                    },
                    "rent_price_base": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Rent price, in Euros."
                    },
                    "rent_price_per_sqm": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Rent price per square meter, in the currency of the listings (specified by the `rent_currency` field)."
                    },
                    "rent_price_per_sqm_base": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Rent price per square meter, in Euros."
                    },
                    "rent_period": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "day",
                            "week",
                            "fortnight",
                            "month",
                            "year",
                            "none"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Rent period."
                    },
                    "title": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Property title."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Property description."
                    },
                    "thumbnails": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "List of the thumbnail image URLs."
                    },
                    "pictures": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "List of the original picture image URLs."
                    },
                    "gross_yield": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Gross yield in percentage."
                    },
                    "sold_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Date when the property was sold."
                    },
                    "rented_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Date when the property was rented."
                    },
                    "total_sale_price_change": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Total sale price change in percents."
                    },
                    "total_rent_price_change": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Total rent price change in percents."
                    },
                    "last_sale_price_reduction": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Last sale price reduction in percents."
                    },
                    "last_rent_price_reduction": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Last rent price reduction in percents."
                    },
                    "sale_price_last_change": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "change_date": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Date of the change."
                            },
                            "old_value": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Value before change."
                            },
                            "new_value": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Value after change."
                            }
                          },
                          "required": [
                            "change_date",
                            "old_value",
                            "new_value"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about the last change of sale price."
                    },
                    "rent_price_last_change": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "change_date": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Date of the change."
                            },
                            "old_value": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Value before change."
                            },
                            "new_value": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Value after change."
                            }
                          },
                          "required": [
                            "change_date",
                            "old_value",
                            "new_value"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about the last change of rent price."
                    },
                    "sale_time_on_market": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about the property last activity on the sales market."
                    },
                    "rent_time_on_market": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about the property last activity on the rental market."
                    },
                    "sale_active_listings_count": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of active listings for this property on the sales market."
                    },
                    "rent_active_listings_count": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of active listings for this property on the rental market."
                    },
                    "similarity_score": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Similarity score of the property. Value between 0 and 1. Indicates how property parameters are close to the requested ones."
                    },
                    "listing_urls": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Listing urls of the comparable."
                    },
                    "is_outlier": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Whether the property is considered an outlier based on its price. Default value: false."
                    },
                    "is_private_property": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Whether the property is listed by a private individual, as opposed to an agent or a professional."
                    },
                    "energy_certificate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Energy certificate classification that attests to the energy efficiency of a property. This field is deprecated and will be removed in the next major update. Please, use `energy_rating` field instead."
                    },
                    "energy_rating": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Energy rating that attests to the energy efficiency of a property."
                    },
                    "ref_numbers": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "List of reference numbers from listings."
                    }
                  },
                  "required": [
                    "property_id",
                    "primary_listing_id",
                    "type",
                    "type_group",
                    "coordinates",
                    "location",
                    "locations_structure",
                    "address",
                    "zip_code",
                    "construction_year",
                    "total_area",
                    "living_area",
                    "plot_area",
                    "terrace_area",
                    "bedrooms",
                    "rooms",
                    "bathrooms",
                    "floor_number",
                    "condition",
                    "features",
                    "operations",
                    "sale_status",
                    "sale_currency",
                    "sale_price",
                    "sale_price_base",
                    "sale_price_per_sqm",
                    "sale_price_per_sqm_base",
                    "rent_status",
                    "rent_currency",
                    "rent_price",
                    "rent_price_base",
                    "rent_price_per_sqm",
                    "rent_price_per_sqm_base",
                    "rent_period",
                    "title",
                    "description",
                    "gross_yield",
                    "sold_at",
                    "rented_at",
                    "total_sale_price_change",
                    "total_rent_price_change",
                    "last_sale_price_reduction",
                    "last_rent_price_reduction",
                    "sale_price_last_change",
                    "rent_price_last_change",
                    "listing_urls",
                    "is_private_property",
                    "ref_numbers"
                  ],
                  "additionalProperties": true
                },
                "description": "Array of found comparable properties."
              },
              "statistics": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "average_price": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Average price."
                      },
                      "average_price_per_sqm": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Average price per square meter."
                      },
                      "average_time_on_the_market": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Average number of days on the market."
                      },
                      "average_listings_per_property": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Average number of listings per property."
                      },
                      "sold_or_rented_in_last_six_months": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Number of properties that were sold or rented during the last 6 months in the requested location."
                      }
                    },
                    "required": [
                      "average_price",
                      "average_price_per_sqm",
                      "average_time_on_the_market",
                      "average_listings_per_property",
                      "sold_or_rented_in_last_six_months"
                    ],
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Statistics information for the found comparables (for `operation` defined in the request)."
              },
              "estimated_prices": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "fast_sell_price": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Fast sell price."
                      },
                      "fair_market_price": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Fair market price."
                      },
                      "out_of_market_price": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Out of market price."
                      },
                      "fast_sell_price_per_sqm": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Fast sell price per square meter."
                      },
                      "fair_market_price_per_sqm": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Fair market price per square meter."
                      },
                      "out_of_market_price_per_sqm": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Out of market price per square meter."
                      }
                    },
                    "required": [
                      "fast_sell_price",
                      "fair_market_price",
                      "out_of_market_price",
                      "fast_sell_price_per_sqm",
                      "fair_market_price_per_sqm",
                      "out_of_market_price_per_sqm"
                    ],
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Estimated prices calculated based on the found comparables (for `operation` defined in the request)."
              },
              "casafari_link": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Link to Comparative Market Analysis page."
              },
              "valuation_id": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Persistent valuation ID used to generate Smart Link or a PDF. Expires in a year."
              }
            },
            "required": [
              "results",
              "statistics",
              "estimated_prices",
              "casafari_link"
            ],
            "additionalProperties": true
          },
          "annotations": {
            "readOnlyHint": true
          },
          "docs": "/docs/comparables-valuation/get-comparables"
        }
      ]
    },
    {
      "namespace": "comps-tx",
      "name": "Comparables with Transactions",
      "docs": "/docs/comparables-with-transactions",
      "endpoint": "https://platform.casafari.com/mcp/comparables-transactions",
      "tools": [
        {
          "name": "comparables-transactions_get_comparables",
          "backend_name": "get_comparables",
          "title": "Get Comparables with Transactions",
          "description": "Values one property and finds comparable properties around it, plus registered closing prices of nearby sales. 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), the comparable properties with area statistics and, next to them, transactional_data (registered sales: Spain's notary deals, Italy's registered sales from Agenzia delle Entrate and Poland's RCN, the official register of property prices; price, price per square metre, sale date, size, distance) and dvf_results (France's DVF, the public register of property sales). Closing prices are for Spain, France, Italy and Poland. 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.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "comparables_count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50,
                "description": "Maximum number of comparable properties in results."
              },
              "location_boundary": {
                "type": "object",
                "properties": {
                  "polygon": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "latitude": {
                          "type": "number",
                          "minimum": -90,
                          "maximum": 90,
                          "description": "Latitude."
                        },
                        "longitude": {
                          "type": "number",
                          "minimum": -180,
                          "maximum": 180,
                          "description": "Longitude."
                        }
                      },
                      "required": [
                        "latitude",
                        "longitude"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 4,
                    "description": "Closed polygon of geo-points to search within. First and last points must match."
                  },
                  "circle": {
                    "type": "object",
                    "properties": {
                      "distance": {
                        "type": "number",
                        "minimum": 0.05,
                        "maximum": 50,
                        "description": "Circle radius in kilometres (not metres) from `target_point`: 0.05 to 50, default 5.",
                        "default": 5
                      },
                      "target_point": {
                        "type": "object",
                        "properties": {
                          "coordinates": {
                            "type": "object",
                            "properties": {
                              "latitude": {
                                "type": "number",
                                "minimum": -90,
                                "maximum": 90,
                                "description": "Latitude."
                              },
                              "longitude": {
                                "type": "number",
                                "minimum": -180,
                                "maximum": 180,
                                "description": "Longitude."
                              }
                            },
                            "required": [
                              "latitude",
                              "longitude"
                            ],
                            "additionalProperties": false,
                            "description": "Target point coordinates to search around."
                          },
                          "address": {
                            "type": "string",
                            "description": "Address of the property to define the point to search around."
                          },
                          "cadastral_reference": {
                            "type": "object",
                            "properties": {
                              "country_code": {
                                "type": "string",
                                "enum": [
                                  "ES"
                                ],
                                "description": "Country code following the ISO 3166-1 alpha-2 rules."
                              },
                              "cadastral_reference": {
                                "type": "string",
                                "description": "Cadastral reference of the estate."
                              },
                              "province": {
                                "type": "string",
                                "description": "Name of the estate's province."
                              },
                              "municipality": {
                                "type": "string",
                                "description": "Name of the estate's municipality."
                              }
                            },
                            "required": [
                              "country_code",
                              "cadastral_reference"
                            ],
                            "additionalProperties": false,
                            "description": "Cadastral reference of the property to define the point to search around. For now available only for Spain."
                          }
                        },
                        "additionalProperties": false,
                        "description": "Target point to search around. Can be defined as coordinates, address or cadastral reference of the property. Only one value should be provided."
                      }
                    },
                    "required": [
                      "target_point"
                    ],
                    "additionalProperties": false,
                    "description": "Circle boundary to search within."
                  }
                },
                "additionalProperties": false,
                "description": "Location to search within. Can be defined as a polygon of geo-points or a circle with a given target point and a distance. Only one value should be provided.",
                "examples": [
                  {
                    "circle": {
                      "target_point": {
                        "coordinates": {
                          "latitude": 40.39865,
                          "longitude": -3.69627
                        }
                      },
                      "distance": 1
                    }
                  }
                ]
              },
              "sold_or_rented_after": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Properties sold/rented since this date (in the format `YYYY-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."
              },
              "operation": {
                "type": "string",
                "enum": [
                  "sale",
                  "rent"
                ],
                "description": "Operation type."
              },
              "comparables_types": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "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_building"
                  ]
                },
                "description": "Property types to compare with, all from one type group. Groups: apartment (erdgeschosswohnung, etagenwohnung, dachgeschosswohnung, duplex, studio, penthouse, apartment); house (villa, reihenhaus, palace, country_estate, zweifamilienhaus, reihenmittelhaus, reihenendhaus, landwirtschaftliche_betriebe, country_house, townhouse, chalet, bungalow, einfamilienhaus, house; family_house is deprecated); room (room); building (mix_use_building, office_building, apartment_building); investment (restaurant, other_commercial, warehouse, office, industrial, werkstatt, hotel, retail); plot (rural_plot, urban_plot; plot is deprecated); other (garage, other, parking). Not every type is available in every country."
              },
              "min_price": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647,
                "description": "The minimum price filter for comparables result. Default value: 0."
              },
              "max_price": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2147483647,
                "description": "The maximum price filter for comparables result."
              },
              "condition": {
                "type": "string",
                "enum": [
                  "used",
                  "ruin",
                  "very-good",
                  "new",
                  "other"
                ],
                "description": "Property condition: used, ruin, very-good, new or other."
              },
              "bedrooms": {
                "type": "integer",
                "minimum": 0,
                "maximum": 15000,
                "description": "Target number of bedrooms of the property being valued. A similarity target, not a filter: comparables with other bedroom counts can be returned, ranked lower. Cannot be used together with `rooms`."
              },
              "rooms": {
                "type": "integer",
                "minimum": 0,
                "maximum": 15000,
                "description": "Number of rooms (cannot be used together with `bedrooms`)."
              },
              "bathrooms": {
                "type": "integer",
                "minimum": 1,
                "maximum": 15000,
                "description": "Number of bathrooms."
              },
              "construction_year": {
                "type": "integer",
                "minimum": 1,
                "maximum": 3000,
                "description": "Desired construction year."
              },
              "total_area": {
                "type": "integer",
                "minimum": 5,
                "maximum": 10000000,
                "description": "Desired total area, square meters. This field is required for `hotel`, `industrial`, `office`, `other_commercial`, `restaurant`, `retail`, `warehouse`, `werkstatt` property types if `target_point.cadastral_reference` is not provided."
              },
              "plot_area": {
                "type": "integer",
                "minimum": 20,
                "maximum": 10000000,
                "description": "Desired plot area, square meters. This field is required for `rural_plot` and `urban_plot` property types if `target_point.cadastral_reference` is not provided."
              },
              "floors": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "no_floor",
                    "ground",
                    "middle",
                    "top"
                  ]
                },
                "description": "List of floor types."
              },
              "floor_number": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": -250,
                  "maximum": 250
                },
                "description": "Desired list of floor numbers. Negative values indicate underground floors (e.g. basements). Minimum value is -250. Maximum value is 250."
              },
              "orientation": {
                "type": "string",
                "enum": [
                  "exterior",
                  "interior"
                ],
                "description": "Property view orientation."
              },
              "views": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "water",
                    "landscape",
                    "city",
                    "golf",
                    "park"
                  ]
                },
                "description": "List of views from the property."
              },
              "directions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "north",
                    "south",
                    "east",
                    "west"
                  ]
                },
                "description": "List of cardinal directions the property faces."
              },
              "characteristics": {
                "type": "object",
                "properties": {
                  "must_have": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "balcony",
                        "elevator",
                        "no_elevator",
                        "garage",
                        "garden",
                        "parking",
                        "storage",
                        "swimming_pool",
                        "terrace",
                        "rental_license",
                        "furniture",
                        "rented_out",
                        "life_annuity",
                        "business_transfer",
                        "smoke_outlet",
                        "air_conditioning"
                      ]
                    },
                    "description": "Include only properties that have all these characteristics."
                  },
                  "nice_to_have": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "balcony",
                        "elevator",
                        "no_elevator",
                        "garage",
                        "garden",
                        "parking",
                        "storage",
                        "swimming_pool",
                        "terrace",
                        "rental_license",
                        "furniture",
                        "rented_out",
                        "life_annuity",
                        "business_transfer",
                        "smoke_outlet",
                        "air_conditioning"
                      ]
                    },
                    "description": "Include properties that have any of these characteristics."
                  },
                  "exclude": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "balcony",
                        "elevator",
                        "no_elevator",
                        "garage",
                        "garden",
                        "parking",
                        "storage",
                        "swimming_pool",
                        "terrace",
                        "rental_license",
                        "furniture",
                        "rented_out",
                        "life_annuity",
                        "business_transfer",
                        "smoke_outlet",
                        "air_conditioning"
                      ]
                    },
                    "description": "Exclude properties that contain any of these characteristics."
                  }
                },
                "additionalProperties": false,
                "description": "Property characteristics."
              },
              "energy_ratings": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "Unknown",
                    "A+",
                    "A",
                    "B",
                    "C",
                    "D",
                    "E",
                    "F",
                    "G",
                    "H"
                  ]
                },
                "description": "List of energy ratings."
              },
              "days_on_market_from": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000,
                "description": "Minimum days on market value."
              },
              "days_on_market_to": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000,
                "description": "Maximum days on market value."
              },
              "with_agencies": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Only properties advertised by these agencies, companies or sources, as free-text names. No list of names is available over MCP; an unknown name matches nothing."
              },
              "without_agencies": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Exclude properties advertised by these agencies, companies or sources, as free-text names. No list of names is available over MCP."
              },
              "exclude_outliers": {
                "type": "boolean",
                "description": "Exclude properties that are significantly underpriced or overpriced compared to similar properties. Default value: true."
              }
            },
            "required": [
              "comparables_count",
              "location_boundary",
              "operation",
              "comparables_types"
            ]
          },
          "outputSchema": {
            "type": "object",
            "properties": {
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "property_id": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "ID of the property."
                    },
                    "property_url": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "URL of the property in the CASAFARI website."
                    },
                    "primary_listing_id": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Primary listing (ad) ID of the property which is defined after the matching into property."
                    },
                    "type": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "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_building"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property type."
                    },
                    "type_group": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "apartment",
                            "house",
                            "investment",
                            "plot",
                            "other"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property type group."
                    },
                    "coordinates": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "latitude": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Latitude."
                            },
                            "longitude": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Longitude."
                            }
                          },
                          "required": [
                            "latitude",
                            "longitude"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property coordinates."
                    },
                    "location": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "location_id": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Location ID, from Location Lookup (`GET /v1/locations/search`)."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Location name."
                            },
                            "administrative_level": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Location administrative level."
                            },
                            "zip_codes": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The location zip codes."
                            }
                          },
                          "required": [
                            "location_id",
                            "name",
                            "administrative_level"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about property location."
                    },
                    "locations_structure": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "location_id": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Location ID, from Location Lookup (`GET /v1/locations/search`)."
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Location name."
                              },
                              "administrative_level": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Location administrative level."
                              },
                              "zip_codes": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "The location zip codes."
                              }
                            },
                            "required": [
                              "location_id",
                              "name",
                              "administrative_level"
                            ],
                            "additionalProperties": true
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about all the parent locations (including property location) up to the country."
                    },
                    "address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Property address."
                    },
                    "zip_code": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The location zip code."
                    },
                    "distance": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Distance in kilometers from target point to the property. Not calculated for search by polygon."
                    },
                    "construction_year": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Construction year."
                    },
                    "total_area": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Total area."
                    },
                    "living_area": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Living area."
                    },
                    "plot_area": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Plot area."
                    },
                    "terrace_area": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Terrace area."
                    },
                    "bedrooms": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of bedrooms."
                    },
                    "rooms": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of rooms."
                    },
                    "bathrooms": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of bathrooms."
                    },
                    "floor_number": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Exact floor number. Negative values indicate underground floors (e.g. basements)."
                    },
                    "condition": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "used",
                            "ruin",
                            "very-good",
                            "new",
                            "other"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property condition: any of `used`, `ruin`, `very-good`, `new`, `other`."
                    },
                    "features": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "floor": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "no_floor",
                                    "ground",
                                    "middle",
                                    "top"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Floor type."
                            },
                            "orientation": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "exterior",
                                    "interior"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Property view orientation."
                            },
                            "view": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "water",
                                    "landscape",
                                    "city",
                                    "golf",
                                    "park"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "View from the property. This field is deprecated and will be removed in the next major update. Please, use `views` field instead."
                            },
                            "views": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "water",
                                      "landscape",
                                      "city",
                                      "golf",
                                      "park"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "List of views from the property."
                            },
                            "direction": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "north",
                                    "south",
                                    "east",
                                    "west"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Cardinal direction the property faces. This field is deprecated and will be removed in the next major update. Please, use `directions` field instead."
                            },
                            "directions": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "enum": [
                                      "north",
                                      "south",
                                      "east",
                                      "west"
                                    ]
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "List of cardinal directions the property faces."
                            },
                            "characteristics": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Property characteristics."
                            }
                          },
                          "required": [
                            "floor",
                            "orientation",
                            "view",
                            "views",
                            "direction",
                            "directions",
                            "characteristics"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property features."
                    },
                    "operations": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "sale",
                              "rent"
                            ]
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Operation types for which property is available."
                    },
                    "sale_status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "active",
                            "reserved",
                            "hold",
                            "sold",
                            "none"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Sale status."
                    },
                    "sale_currency": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Sale price currency code."
                    },
                    "sale_price": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Sale price, in the currency of the listings (specified by the `sale_currency` field)."
                    },
                    "sale_price_base": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Sale price, in Euros."
                    },
                    "sale_price_per_sqm": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Sale price per square meter, in the currency of the listings (specified by the `sale_currency` field)."
                    },
                    "sale_price_per_sqm_base": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Sale price per square meter, in Euros."
                    },
                    "rent_status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "active",
                            "reserved",
                            "hold",
                            "rented",
                            "none"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Rent status."
                    },
                    "rent_currency": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Rent price currency code."
                    },
                    "rent_price": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Rent price, in the currency of the listings (specified by the `rent_currency` field)."
                    },
                    "rent_price_base": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Rent price, in Euros."
                    },
                    "rent_price_per_sqm": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Rent price per square meter, in the currency of the listings (specified by the `rent_currency` field)."
                    },
                    "rent_price_per_sqm_base": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Rent price per square meter, in Euros."
                    },
                    "rent_period": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "day",
                            "week",
                            "fortnight",
                            "month",
                            "year",
                            "none"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Rent period."
                    },
                    "title": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Property title."
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Property description."
                    },
                    "thumbnails": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "List of the thumbnail image URLs."
                    },
                    "pictures": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "List of the original picture image URLs."
                    },
                    "gross_yield": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Gross yield in percentage."
                    },
                    "sold_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Date when the property was sold."
                    },
                    "rented_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Date when the property was rented."
                    },
                    "total_sale_price_change": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Total sale price change in percents."
                    },
                    "total_rent_price_change": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Total rent price change in percents."
                    },
                    "last_sale_price_reduction": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Last sale price reduction in percents."
                    },
                    "last_rent_price_reduction": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Last rent price reduction in percents."
                    },
                    "sale_price_last_change": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "change_date": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Date of the change."
                            },
                            "old_value": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Value before change."
                            },
                            "new_value": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Value after change."
                            }
                          },
                          "required": [
                            "change_date",
                            "old_value",
                            "new_value"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about the last change of sale price."
                    },
                    "rent_price_last_change": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "change_date": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Date of the change."
                            },
                            "old_value": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Value before change."
                            },
                            "new_value": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Value after change."
                            }
                          },
                          "required": [
                            "change_date",
                            "old_value",
                            "new_value"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about the last change of rent price."
                    },
                    "sale_time_on_market": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about the property last activity on the sales market."
                    },
                    "rent_time_on_market": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about the property last activity on the rental market."
                    },
                    "sale_active_listings_count": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of active listings for this property on the sales market."
                    },
                    "rent_active_listings_count": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of active listings for this property on the rental market."
                    },
                    "similarity_score": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Similarity score of the property. Value between 0 and 1. Indicates how property parameters are close to the requested ones."
                    },
                    "listing_urls": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Listing urls of the comparable."
                    },
                    "is_outlier": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Whether the property is considered an outlier based on its price. Default value: false."
                    },
                    "is_private_property": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "Whether the property is listed by a private individual, as opposed to an agent or a professional."
                    },
                    "energy_certificate": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Energy certificate classification that attests to the energy efficiency of a property. This field is deprecated and will be removed in the next major update. Please, use `energy_rating` field instead."
                    },
                    "energy_rating": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Energy rating that attests to the energy efficiency of a property."
                    },
                    "ref_numbers": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "List of reference numbers from listings."
                    }
                  },
                  "required": [
                    "property_id",
                    "primary_listing_id",
                    "type",
                    "type_group",
                    "coordinates",
                    "location",
                    "locations_structure",
                    "address",
                    "zip_code",
                    "construction_year",
                    "total_area",
                    "living_area",
                    "plot_area",
                    "terrace_area",
                    "bedrooms",
                    "rooms",
                    "bathrooms",
                    "floor_number",
                    "condition",
                    "features",
                    "operations",
                    "sale_status",
                    "sale_currency",
                    "sale_price",
                    "sale_price_base",
                    "sale_price_per_sqm",
                    "sale_price_per_sqm_base",
                    "rent_status",
                    "rent_currency",
                    "rent_price",
                    "rent_price_base",
                    "rent_price_per_sqm",
                    "rent_price_per_sqm_base",
                    "rent_period",
                    "title",
                    "description",
                    "gross_yield",
                    "sold_at",
                    "rented_at",
                    "total_sale_price_change",
                    "total_rent_price_change",
                    "last_sale_price_reduction",
                    "last_rent_price_reduction",
                    "sale_price_last_change",
                    "rent_price_last_change",
                    "listing_urls",
                    "is_private_property",
                    "ref_numbers"
                  ],
                  "additionalProperties": true
                },
                "description": "Array of found comparable properties."
              },
              "statistics": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "average_price": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Average price."
                      },
                      "average_price_per_sqm": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Average price per square meter."
                      },
                      "average_time_on_the_market": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Average number of days on the market."
                      },
                      "average_listings_per_property": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Average number of listings per property."
                      },
                      "sold_or_rented_in_last_six_months": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Number of properties that were sold or rented during the last 6 months in the requested location."
                      }
                    },
                    "required": [
                      "average_price",
                      "average_price_per_sqm",
                      "average_time_on_the_market",
                      "average_listings_per_property",
                      "sold_or_rented_in_last_six_months"
                    ],
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Statistics information for the found comparables (for `operation` defined in the request)."
              },
              "estimated_prices": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "fast_sell_price": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Fast sell price."
                      },
                      "fair_market_price": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Fair market price."
                      },
                      "out_of_market_price": {
                        "anyOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Out of market price."
                      },
                      "fast_sell_price_per_sqm": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Fast sell price per square meter."
                      },
                      "fair_market_price_per_sqm": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Fair market price per square meter."
                      },
                      "out_of_market_price_per_sqm": {
                        "type": [
                          "number",
                          "null"
                        ],
                        "description": "Out of market price per square meter."
                      }
                    },
                    "required": [
                      "fast_sell_price",
                      "fair_market_price",
                      "out_of_market_price",
                      "fast_sell_price_per_sqm",
                      "fair_market_price_per_sqm",
                      "out_of_market_price_per_sqm"
                    ],
                    "additionalProperties": true
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Estimated prices calculated based on the found comparables (for `operation` defined in the request)."
              },
              "casafari_link": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Link to Comparative Market Analysis page."
              },
              "valuation_id": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Persistent valuation ID used to generate Smart Link or a PDF. Expires in a year."
              },
              "dvf_results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "dvf_reference": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Reference ID of the DVF property."
                    },
                    "coordinates": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "lat": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Latitude."
                            },
                            "lon": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Longitude."
                            }
                          },
                          "required": [
                            "lat",
                            "lon"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "DVF property coordinates."
                    },
                    "distance": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Distance in kilometers from target point to DVF the property. Not calculated for search by polygon."
                    },
                    "type": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "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_building"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property type."
                    },
                    "type_group": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "apartment",
                            "house",
                            "investment",
                            "plot",
                            "other"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Property type group."
                    },
                    "sale_price": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Sale price, in the original currency."
                    },
                    "sale_price_base": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Sale price, in Euros."
                    },
                    "sale_price_psqm": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Sale price per square meter, in the original currency. Default value: 0."
                    },
                    "sale_price_psqm_base": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Sale price per square meter, in Euros. Default value: 0."
                    },
                    "sold_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Date when the property was sold."
                    },
                    "total_area": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Total area."
                    },
                    "plot_area": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Plot area."
                    },
                    "rooms": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of rooms."
                    },
                    "bedrooms": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Number of bedrooms."
                    },
                    "address": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Property address."
                    },
                    "location": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "location_id": {
                              "anyOf": [
                                {
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Location ID, from Location Lookup (`GET /v1/locations/search`)."
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Location name."
                            },
                            "administrative_level": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Location administrative level."
                            },
                            "zip_codes": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "The location zip codes."
                            }
                          },
                          "required": [
                            "location_id",
                            "name",
                            "administrative_level"
                          ],
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about DVF property location."
                    },
                    "locations_structure": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "location_id": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Location ID, from Location Lookup (`GET /v1/locations/search`)."
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Location name."
                              },
                              "administrative_level": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Location administrative level."
                              },
                              "zip_codes": {
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "The location zip codes."
                              }
                            },
                            "required": [
                              "location_id",
                              "name",
                              "administrative_level"
                            ],
                            "additionalProperties": true
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Information about all the parent locations (including DVF property location) up to the country."
                    },
                    "sale_status": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "active",
                            "reserved",
                            "hold",
                            "sold",
                            "none"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Sale status."
                    },
                    "thumbnails": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "List of the thumbnail image URLs."
                    }
                  },
                  "required": [
                    "dvf_reference",
                    "coordinates",
                    "type",
                    "type_group",
                    "sale_price",
                    "sale_price_base",
                    "total_area",
                    "plot_area",
                    "rooms",
                    "bedrooms",
                    "address",
                    "location",
                    "locations_structure"
                  ],
                  "additionalProperties": true
                },
                "description": "Array of found DVF data (Request for geolocated property values)."
              },
              "transactional_data": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "cadastral_reference": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "rooms": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "bedrooms": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "bathrooms": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "coordinates": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "lat": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Latitude."
                                },
                                "lon": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Longitude."
                                }
                              },
                              "required": [
                                "lat",
                                "lon"
                              ],
                              "additionalProperties": true
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "total_area": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "plot_area": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "address": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_typology": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_annexes": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Additional raw source data (if present), describing annexes (such as parking, storage, etc) included in the transaction price."
                        },
                        "type": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "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_building"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "type_group": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sold_at": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "currency": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Price currency code."
                        },
                        "price": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "price_per_sqm": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "with_mortgage": {
                          "type": [
                            "boolean",
                            "null"
                          ],
                          "description": "Flag indicating whether the transaction was financed with a mortgage."
                        },
                        "distance": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Distance in kilometers from target point to the property. Not calculated for search by polygon."
                        },
                        "location_id": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "construction_year": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "location": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "location_id": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Location ID, from Location Lookup (`GET /v1/locations/search`)."
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Location name."
                                },
                                "administrative_level": {
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "description": "Location administrative level."
                                },
                                "zip_codes": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "The location zip codes."
                                }
                              },
                              "required": [
                                "location_id",
                                "name",
                                "administrative_level"
                              ],
                              "additionalProperties": true
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "locations_structure": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "location_id": {
                                    "anyOf": [
                                      {
                                        "type": "integer"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "Location ID, from Location Lookup (`GET /v1/locations/search`)."
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Location name."
                                  },
                                  "administrative_level": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Location administrative level."
                                  },
                                  "zip_codes": {
                                    "anyOf": [
                                      {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ],
                                    "description": "The location zip codes."
                                  }
                                },
                                "required": [
                                  "location_id",
                                  "name",
                                  "administrative_level"
                                ],
                                "additionalProperties": true
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "image_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country_code": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "FR",
                                "IT",
                                "PT",
                                "ES"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "reference",
                        "cadastral_reference",
                        "rooms",
                        "bedrooms",
                        "bathrooms",
                        "coordinates",
                        "total_area",
                        "plot_area",
                        "address",
                        "source_typology",
                        "source_annexes",
                        "type",
                        "type_group",
                        "sold_at",
                        "currency",
                        "price",
                        "price_per_sqm",
                        "with_mortgage",
                        "location_id",
                        "construction_year",
                        "location",
                        "locations_structure",
                        "image_url",
                        "country_code"
                      ],
                      "additionalProperties": true
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "results",
              "statistics",
              "estimated_prices",
              "casafari_link"
            ],
            "additionalProperties": true
          },
          "annotations": {
            "readOnlyHint": true
          },
          "docs": "/docs/comparables-with-transactions/get_comparables"
        }
      ]
    },
    {
      "namespace": "ma",
      "name": "Area Insights",
      "docs": "/docs/area-insights",
      "endpoint": "https://platform.casafari.com/mcp/area-insights",
      "tools": [
        {
          "name": "area-insights_get_current_datetime",
          "backend_name": "get_current_datetime",
          "title": "Get Current Datetime",
          "description": "# Tool: `get_current_datetime`\n\n## Description\nReturns the current system date and time.\n\n## Returns\n```json\n{\n  \"current_datetime\": \"2025-10-06T12:45:00.000000\"\n}\n```\n\n| Key | Type | Description |\n|------|------|-------------|\n| `current_datetime` | `str` | Local system date and time in ISO format. |\n\n## Example Usage\n```python\nresult = await call_tool(\"get_current_datetime\")\nprint(result[\"current_datetime\"])\n```",
          "inputSchema": {
            "additionalProperties": false,
            "properties": {},
            "type": "object"
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/area-insights/get_current_datetime"
        },
        {
          "name": "area-insights_get_time_series_data",
          "backend_name": "get_time_series_data",
          "title": "Get Time Series Data",
          "description": "# Tool: `get_time_series_data`\n\n## Description\nRetrieve **time series data** for the real estate market.\nEach data point in the series represents an aggregated metric (`data_point`) for a specific period,\ndefined by the chosen `date_interval` and property filters.\n\nThis tool provides consistent, interval-based historical data for various real estate indicators.\n\n## Use Cases\nRetrieve historical market information, such as:\n- Average property prices.\n- Average price per square meter.\n- Number of properties sold or rented over time.\n- Number of newly listed properties.\n- Number of properties available on the market.\n- Number of price increases or decreases for listings.\n\n## Parameters\n| Name | Type | Required | Description |\n|------|------|-----------|--------------|\n| `request_data` | `MCPTimeSeriesRequestSchema` | Yes | Defines filters, time interval, and data metric (`data_point`) for aggregation. |\n\n### Filter highlights\n- `data_point`: defines **which metric** to retrieve (e.g. price, listings, sold count, etc.).\n- `date_interval`: defines **the frequency** of data points in the response (`WEEK`, `MONTH`, `QUARTER`, `YEAR`).\n- `custom_location_boundary`: spatial boundary (circle or list of location IDs).\n- `type_group`: group of property types to analyze.\n- `business_type`: `\"sale\"` or `\"rent\"`.\n- `exclude_outliers`: optionally exclude statistical outliers from the results.\n- optional property filters: price range, area, bedrooms, bathrooms, etc.\n\n## Important Notes\n- If you need to compare different property types, send **separate requests** for each type group.\n- For broader analyses, prefer using `AVERAGE_PRICE_PER_SQM` over total price.\n- You can reuse the same filters with different `data_point` values to analyze multiple aspects of the market\n(e.g. compare new listings vs. sold properties).\n- Use the `exclude_outliers` flag to remove extreme values and improve analytical accuracy.\n\n## Returns\n```json\n[\n  {\n    \"date_start\": \"2024-01-01\",\n    \"value\": 4350.5\n  }\n]",
          "inputSchema": {
            "additionalProperties": false,
            "properties": {
              "request_data": {
                "description": "One analytical segment defining a specific filter or location boundary.\nAlias (name) is generated automatically on the server based on the location definition.",
                "properties": {
                  "type_group": {
                    "description": "Estate type group.",
                    "enum": [
                      "apartment",
                      "house"
                    ],
                    "type": "string"
                  },
                  "business_type": {
                    "enum": [
                      "sale",
                      "rent"
                    ],
                    "type": "string",
                    "description": "Operation type for which the property is available."
                  },
                  "price_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "price_per_sqm_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "rooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "bedrooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "bathrooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "total_area_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "plot_area_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "construction_year_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 3000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 3000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "characteristics": {
                    "anyOf": [
                      {
                        "properties": {
                          "must_have": {
                            "description": "Include only properties that have all these characteristics.",
                            "items": {
                              "enum": [
                                "balcony",
                                "elevator",
                                "no_elevator",
                                "garage",
                                "garden",
                                "parking",
                                "storage",
                                "swimming_pool",
                                "terrace",
                                "rental_license",
                                "furniture",
                                "rented_out",
                                "life_annuity"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "exclude": {
                            "description": "Exclude properties that contain any of these characteristics.",
                            "items": {
                              "enum": [
                                "balcony",
                                "elevator",
                                "no_elevator",
                                "garage",
                                "garden",
                                "parking",
                                "storage",
                                "swimming_pool",
                                "terrace",
                                "rental_license",
                                "furniture",
                                "rented_out",
                                "life_annuity"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "conditions": {
                    "default": null,
                    "description": "Property conditions: any of `used`, `ruin`, `very-good`, `new`, `other`.",
                    "items": {
                      "enum": [
                        "used",
                        "ruin",
                        "very-good",
                        "new",
                        "other"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "private": {
                    "default": null,
                    "description": "Whether the property is listed by a private individual, as opposed to an agent or a professional.",
                    "type": "boolean"
                  },
                  "bank": {
                    "default": null,
                    "description": "Whether the property is owned by the bank.",
                    "type": "boolean"
                  },
                  "auction": {
                    "default": false,
                    "description": "Whether the property is the subject of an auction.",
                    "type": "boolean"
                  },
                  "exclude_outliers": {
                    "default": true,
                    "description": "Exclude properties that are significantly underpriced or overpriced compared to similar properties.",
                    "type": "boolean"
                  },
                  "alias": {
                    "description": "Alias (name) of the segment that was analyzed.",
                    "type": "string"
                  },
                  "custom_location_boundary": {
                    "properties": {
                      "location_ids": {
                        "default": null,
                        "description": "List of location IDs.",
                        "items": {
                          "maximum": 2147483647,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "maxItems": 10,
                        "minItems": 1,
                        "type": "array"
                      },
                      "circle": {
                        "properties": {
                          "distance": {
                            "description": "Maximum distance in meters from the requested `target_point` to the properties.",
                            "maximum": 50000,
                            "minimum": 50,
                            "type": "integer"
                          },
                          "target_point": {
                            "properties": {
                              "latitude": {
                                "maximum": 90,
                                "minimum": -90,
                                "type": "number"
                              },
                              "longitude": {
                                "maximum": 180,
                                "minimum": -180,
                                "type": "number"
                              }
                            },
                            "required": [
                              "latitude",
                              "longitude"
                            ],
                            "type": "object",
                            "description": "Target point coordinates to search around."
                          }
                        },
                        "required": [
                          "distance",
                          "target_point"
                        ],
                        "type": "object",
                        "default": null,
                        "description": "Circle boundary to search within."
                      }
                    },
                    "type": "object",
                    "description": "Geographic boundary definition (circle, or location ID list)."
                  },
                  "data_point": {
                    "enum": [
                      "avg_price",
                      "avg_price_psqm",
                      "available_on_market",
                      "new",
                      "sold_or_rented",
                      "price_up",
                      "price_down"
                    ],
                    "type": "string",
                    "description": "Specifies the type of real estate data to retrieve for a given period."
                  },
                  "date_interval": {
                    "enum": [
                      "week",
                      "month",
                      "quarter",
                      "year"
                    ],
                    "type": "string",
                    "description": "Defines the time interval for aggregating data points. Determines the frequency at which data is reported in the response."
                  },
                  "date_range": {
                    "properties": {
                      "min": {
                        "anyOf": [
                          {
                            "format": "date",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Start date in the format `YYYY-MM-DD`. If the specified date is not Monday - the closest previous Monday will be selected."
                      },
                      "max": {
                        "anyOf": [
                          {
                            "format": "date",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "End date in the format `YYYY-MM-DD`. If the specified date is not Sunday - the closest previous Sunday will be selected."
                      }
                    },
                    "required": [
                      "min"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "type_group",
                  "business_type",
                  "alias",
                  "custom_location_boundary",
                  "data_point",
                  "date_interval",
                  "date_range"
                ],
                "type": "object"
              }
            },
            "required": [
              "request_data"
            ],
            "type": "object"
          },
          "outputSchema": {
            "properties": {
              "result": {
                "items": {
                  "properties": {
                    "date_start": {
                      "description": "The starting date of the period associated with the passed `date_interval` field value. The format follows `YYYY-MM-DD`.",
                      "format": "date",
                      "type": "string"
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The numerical value corresponding to the passed `data_point` field value for the given `date_start`."
                    }
                  },
                  "required": [
                    "date_start",
                    "value"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "result"
            ],
            "type": "object",
            "x-fastmcp-wrap-result": true
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/area-insights/get_time_series_data"
        },
        {
          "name": "area-insights_get_time_series_operations",
          "backend_name": "get_time_series_operations",
          "title": "Get Time Series Operations",
          "description": "# Tool: `get_time_series_operations`\n\n## Description\nPerforms analytical **time-series operations** (e.g., `mean`, `delta_pct`, `CAGR`, `cv`, `std`, etc.)\nfor a **single geographic or analytical segment** using real-estate historical data.\n\nThis tool enables focused analysis of **real estate market dynamics** over time —\nsuch as prices, listings, or sales — within one defined location or subset.\n\n## Purpose\nDesigned for analytical scenarios such as:\n- Tracking how property prices evolve in a specific area.\n- Measuring growth trends (e.g., CAGR, percentage deltas).\n- Evaluating volatility using standard deviation or coefficient of variation.\n- Studying local market activity over a given period.\n\n## Input (`request_data`)\nExpects an instance of `MCPTimeSeriesOperationsRequestSchema`, which includes:\n- **`segment`** → a single `MCPTimeSeriesRequestSchema` object defining the geographic or analytical subset.\n- **`operations`** → list of time-series operations (`TimeSeriesOperationEnum`) to compute.\n\n`MCPTimeSeriesRequestSchema` includes:\n- `custom_location_boundary`: spatial boundary (circle or list of location IDs).\n- `data_point`: metric to analyze (e.g. `AVERAGE_PRICE_PER_SQM`, `SOLD_COUNT`, `NEW_LISTED_COUNT`).\n- `date_interval`: aggregation interval (`WEEK`, `MONTH`, `QUARTER`, or `YEAR`).\n- `date_range`: start and end of the analysis period.\n- Optional property filters (price, area, rooms, construction year, etc.).\n- `exclude_outliers`: whether to exclude statistical outliers.\n\n> **Analytical consistency rule:**\nThe analytical context (data_point, date_interval, business_type, etc.) must remain\nconsistent within the request. The `segment` may only redefine `custom_location_boundary`\nand `alias` relative to the base filter.\n\n## Operations\nSupported operations from `TimeSeriesOperationEnum` include:\n- `mean` — average value across the time range.\n- `delta_pct` — percentage change between the first and last data points.\n- `cagr` — compound annual growth rate.\n- `std` — standard deviation.\n- `cv` — coefficient of variation.\n- (plus others defined in the enum).\n\n## LLM Behavior\n- On success → returns a **single analytical result** (`MCPTimeSeriesUnitResponseSchema`)\n  containing computed metrics for the requested segment.\n- On error → raises a `ToolError` with an error message.\n\n## Example Success Response\n```json\n    {\n      \"alias\": \"Madrid Center\",\n      \"date_start\": \"2020-01-01\",\n      \"date_end\": \"2024-01-01\",\n      \"date_interval\": \"MONTH\",\n      \"total_of_data_points\": 48,\n      \"results\": [\n        {\"operation\": \"mean\", \"value\": 3200.5},\n        {\"operation\": \"delta_pct\", \"value\": 12.4},\n        {\"operation\": \"cagr\", \"value\": 0.032}\n      ]\n    }\n```\n\n## Example Error Response\n```\nToolError: No data found for the specified segment.\n```\n\n## Example Use Cases\n- Analyze **average price per m²** in a specific city or district.\n- Measure **sales growth** over several years.\n- Evaluate **rental market volatility**.\n- Assess **seasonal dynamics** of listings or sales activity.\n\n## Summary\n`get_time_series_operations` retrieves **aggregated real-estate time-series data**\nfor a defined location or segment and computes selected analytical operations.\nIt provides a structured, quantitative summary of market trends and changes\nfor a single region or subset.",
          "inputSchema": {
            "additionalProperties": false,
            "properties": {
              "request_data": {
                "description": "Schema for MCP time-series analytical requests.\n\n### Concept\nThis schema defines *what* to analyze (via `filter`), *where* to analyze (via `segment`),\nand *which operations* to compute (via `operations`).\n\n- The `filter` contains **shared analytical parameters** defining the general query context.\n- The `segment` represents a **specific analytical subset** (e.g., a district, city, or region),\n  which inherits all values from `filter` but can override a few (e.g., location boundary).\n\nThis logic ensures a consistent analytical context while allowing\na single location-specific override — suitable for focused analytical requests\nwhere only one boundary or subset is being analyzed.",
                "properties": {
                  "segment": {
                    "description": "Analytical segment representing a boundary or subset of data. Inherits all fields from `filter` but may redefine location-specific ones (such as `custom_location_boundary` or `alias`).",
                    "properties": {
                      "type_group": {
                        "description": "Estate type group.",
                        "enum": [
                          "apartment",
                          "house"
                        ],
                        "type": "string"
                      },
                      "business_type": {
                        "enum": [
                          "sale",
                          "rent"
                        ],
                        "type": "string",
                        "description": "Operation type for which the property is available."
                      },
                      "price_range": {
                        "anyOf": [
                          {
                            "properties": {
                              "min": {
                                "anyOf": [
                                  {
                                    "maximum": 2147483647,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              },
                              "max": {
                                "anyOf": [
                                  {
                                    "maximum": 2147483647,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              }
                            },
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "default": null
                      },
                      "price_per_sqm_range": {
                        "anyOf": [
                          {
                            "properties": {
                              "min": {
                                "anyOf": [
                                  {
                                    "maximum": 2147483647,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              },
                              "max": {
                                "anyOf": [
                                  {
                                    "maximum": 2147483647,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              }
                            },
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "default": null
                      },
                      "rooms_range": {
                        "anyOf": [
                          {
                            "properties": {
                              "min": {
                                "anyOf": [
                                  {
                                    "maximum": 15000,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              },
                              "max": {
                                "anyOf": [
                                  {
                                    "maximum": 15000,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              }
                            },
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "default": null
                      },
                      "bedrooms_range": {
                        "anyOf": [
                          {
                            "properties": {
                              "min": {
                                "anyOf": [
                                  {
                                    "maximum": 15000,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              },
                              "max": {
                                "anyOf": [
                                  {
                                    "maximum": 15000,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              }
                            },
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "default": null
                      },
                      "bathrooms_range": {
                        "anyOf": [
                          {
                            "properties": {
                              "min": {
                                "anyOf": [
                                  {
                                    "maximum": 15000,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              },
                              "max": {
                                "anyOf": [
                                  {
                                    "maximum": 15000,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              }
                            },
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "default": null
                      },
                      "total_area_range": {
                        "anyOf": [
                          {
                            "properties": {
                              "min": {
                                "anyOf": [
                                  {
                                    "maximum": 1000000,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              },
                              "max": {
                                "anyOf": [
                                  {
                                    "maximum": 1000000,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              }
                            },
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "default": null
                      },
                      "plot_area_range": {
                        "anyOf": [
                          {
                            "properties": {
                              "min": {
                                "anyOf": [
                                  {
                                    "maximum": 1000000,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              },
                              "max": {
                                "anyOf": [
                                  {
                                    "maximum": 1000000,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              }
                            },
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "default": null
                      },
                      "construction_year_range": {
                        "anyOf": [
                          {
                            "properties": {
                              "min": {
                                "anyOf": [
                                  {
                                    "maximum": 3000,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              },
                              "max": {
                                "anyOf": [
                                  {
                                    "maximum": 3000,
                                    "minimum": 1,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "default": null
                              }
                            },
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "default": null
                      },
                      "characteristics": {
                        "anyOf": [
                          {
                            "properties": {
                              "must_have": {
                                "description": "Include only properties that have all these characteristics.",
                                "items": {
                                  "enum": [
                                    "balcony",
                                    "elevator",
                                    "no_elevator",
                                    "garage",
                                    "garden",
                                    "parking",
                                    "storage",
                                    "swimming_pool",
                                    "terrace",
                                    "rental_license",
                                    "furniture",
                                    "rented_out",
                                    "life_annuity"
                                  ],
                                  "type": "string"
                                },
                                "type": "array"
                              },
                              "exclude": {
                                "description": "Exclude properties that contain any of these characteristics.",
                                "items": {
                                  "enum": [
                                    "balcony",
                                    "elevator",
                                    "no_elevator",
                                    "garage",
                                    "garden",
                                    "parking",
                                    "storage",
                                    "swimming_pool",
                                    "terrace",
                                    "rental_license",
                                    "furniture",
                                    "rented_out",
                                    "life_annuity"
                                  ],
                                  "type": "string"
                                },
                                "type": "array"
                              }
                            },
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "default": null
                      },
                      "conditions": {
                        "default": null,
                        "description": "Property conditions: any of `used`, `ruin`, `very-good`, `new`, `other`.",
                        "items": {
                          "enum": [
                            "used",
                            "ruin",
                            "very-good",
                            "new",
                            "other"
                          ],
                          "type": "string"
                        },
                        "minItems": 1,
                        "type": "array"
                      },
                      "private": {
                        "default": null,
                        "description": "Whether the property is listed by a private individual, as opposed to an agent or a professional.",
                        "type": "boolean"
                      },
                      "bank": {
                        "default": null,
                        "description": "Whether the property is owned by the bank.",
                        "type": "boolean"
                      },
                      "auction": {
                        "default": false,
                        "description": "Whether the property is the subject of an auction.",
                        "type": "boolean"
                      },
                      "exclude_outliers": {
                        "default": true,
                        "description": "Exclude properties that are significantly underpriced or overpriced compared to similar properties.",
                        "type": "boolean"
                      },
                      "alias": {
                        "description": "Alias (name) of the segment that was analyzed.",
                        "type": "string"
                      },
                      "custom_location_boundary": {
                        "properties": {
                          "location_ids": {
                            "default": null,
                            "description": "List of location IDs.",
                            "items": {
                              "maximum": 2147483647,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "maxItems": 10,
                            "minItems": 1,
                            "type": "array"
                          },
                          "circle": {
                            "properties": {
                              "distance": {
                                "description": "Maximum distance in meters from the requested `target_point` to the properties.",
                                "maximum": 50000,
                                "minimum": 50,
                                "type": "integer"
                              },
                              "target_point": {
                                "properties": {
                                  "latitude": {
                                    "maximum": 90,
                                    "minimum": -90,
                                    "type": "number"
                                  },
                                  "longitude": {
                                    "maximum": 180,
                                    "minimum": -180,
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "latitude",
                                  "longitude"
                                ],
                                "type": "object",
                                "description": "Target point coordinates to search around."
                              }
                            },
                            "required": [
                              "distance",
                              "target_point"
                            ],
                            "type": "object",
                            "default": null,
                            "description": "Circle boundary to search within."
                          }
                        },
                        "type": "object",
                        "description": "Geographic boundary definition (circle, or location ID list)."
                      },
                      "data_point": {
                        "enum": [
                          "avg_price",
                          "avg_price_psqm",
                          "available_on_market",
                          "new",
                          "sold_or_rented",
                          "price_up",
                          "price_down"
                        ],
                        "type": "string",
                        "description": "Specifies the type of real estate data to retrieve for a given period."
                      },
                      "date_interval": {
                        "enum": [
                          "week",
                          "month",
                          "quarter",
                          "year"
                        ],
                        "type": "string",
                        "description": "Defines the time interval for aggregating data points. Determines the frequency at which data is reported in the response."
                      },
                      "date_range": {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "format": "date",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Start date in the format `YYYY-MM-DD`. If the specified date is not Monday - the closest previous Monday will be selected."
                          },
                          "max": {
                            "anyOf": [
                              {
                                "format": "date",
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "End date in the format `YYYY-MM-DD`. If the specified date is not Sunday - the closest previous Sunday will be selected."
                          }
                        },
                        "required": [
                          "min"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "type_group",
                      "business_type",
                      "alias",
                      "custom_location_boundary",
                      "data_point",
                      "date_interval",
                      "date_range"
                    ],
                    "type": "object"
                  },
                  "operations": {
                    "default": null,
                    "description": "List of analytical operations to compute (e.g. `mean`, `cagr`, `delta_pct`). If omitted, a default minimal set is applied.",
                    "items": {
                      "enum": [
                        "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_12"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "segment"
                ],
                "type": "object"
              }
            },
            "required": [
              "request_data"
            ],
            "type": "object"
          },
          "outputSchema": {
            "description": "Response schema for a single segment (location boundary)\nprocessed within the time-series operations batch.",
            "properties": {
              "alias": {
                "description": "Alias (name) of the segment that was analyzed.",
                "type": "string"
              },
              "date_start": {
                "description": "Start date of the analyzed period.",
                "format": "date",
                "type": "string"
              },
              "date_end": {
                "description": "End date of the analyzed period.",
                "format": "date",
                "type": "string"
              },
              "date_interval": {
                "enum": [
                  "week",
                  "month",
                  "quarter",
                  "year"
                ],
                "type": "string",
                "description": "Frequency of the analyzed period."
              },
              "total_of_data_points": {
                "description": "Number of data points included in the analyzed period.",
                "type": "integer"
              },
              "results": {
                "anyOf": [
                  {
                    "items": {
                      "description": "Computed result for one analytical operation.",
                      "properties": {
                        "operation": {
                          "enum": [
                            "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_12"
                          ],
                          "type": "string",
                          "description": "Operation type applied to the time series (e.g., mean, cagr, delta_pct, cv)."
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Computed numeric value. None if insufficient data for the operation."
                        }
                      },
                      "required": [
                        "operation",
                        "value"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "List of computed results for each analytical operation."
              }
            },
            "required": [
              "alias",
              "date_start",
              "date_end",
              "date_interval",
              "total_of_data_points",
              "results"
            ],
            "type": "object"
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/area-insights/get_time_series_operations"
        },
        {
          "name": "area-insights_get_price_distribution",
          "backend_name": "get_price_distribution",
          "title": "Get Price Distribution",
          "description": "# Tool: `get_price_distribution`\n\n## Description\nReturns a **distribution of property prices** based on the provided filters.\nEach record represents a price interval and the number of properties within that interval.\n\n## Parameters\n| Name | Type | Required | Description |\n|------|------|-----------|--------------|\n| `request_data` | `MCPPriceDistributionRequestSchema` | Yes | Configuration for price distribution filtering. |\n\n### Filter highlights\n- `type_group`: group of estate types (e.g., apartment, house)\n- `business_type`: `\"sale\"` or `\"rent\"`\n- `price_range`: numeric price range filter\n- `exclude_outliers`: optional flag to exclude statistical outliers\n\n## Returns\n```json\n[\n  {\n    \"lower_bound\": 100000,\n    \"upper_bound\": 150000,\n    \"properties_count\": 42,\n    \"is_mean\": false\n  }\n]\n```\n\n| Field | Type | Description |\n|--------|------|-------------|\n| `lower_bound` | `int` | Lower price boundary |\n| `upper_bound` | `int` | Upper price boundary |\n| `properties_count` | `int` | Number of properties in the range |\n| `is_mean` | `bool` | Indicates whether the range includes the mean price |\n\n## Example Request\n```json\n{\n  \"custom_location_boundary\": {\n    \"circle\": {\n      \"target_point\": {\"latitude\": 48.8566, \"longitude\": 2.3522},\n      \"distance\": 10000\n    }\n  },\n  \"type_group\": \"apartment\",\n  \"business_type\": \"sale\",\n  \"price_range\": {\"min\": 100000, \"max\": 500000},\n  \"exclude_outliers\": true\n}\n```",
          "inputSchema": {
            "additionalProperties": false,
            "properties": {
              "request_data": {
                "properties": {
                  "type_group": {
                    "description": "Estate type group.",
                    "enum": [
                      "apartment",
                      "house"
                    ],
                    "type": "string"
                  },
                  "business_type": {
                    "enum": [
                      "sale",
                      "rent"
                    ],
                    "type": "string",
                    "description": "Operation type for which the property is available."
                  },
                  "price_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "price_per_sqm_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "rooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "bedrooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "bathrooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "total_area_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "plot_area_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "construction_year_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 3000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 3000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "characteristics": {
                    "anyOf": [
                      {
                        "properties": {
                          "must_have": {
                            "description": "Include only properties that have all these characteristics.",
                            "items": {
                              "enum": [
                                "balcony",
                                "elevator",
                                "no_elevator",
                                "garage",
                                "garden",
                                "parking",
                                "storage",
                                "swimming_pool",
                                "terrace",
                                "rental_license",
                                "furniture",
                                "rented_out",
                                "life_annuity"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "exclude": {
                            "description": "Exclude properties that contain any of these characteristics.",
                            "items": {
                              "enum": [
                                "balcony",
                                "elevator",
                                "no_elevator",
                                "garage",
                                "garden",
                                "parking",
                                "storage",
                                "swimming_pool",
                                "terrace",
                                "rental_license",
                                "furniture",
                                "rented_out",
                                "life_annuity"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "conditions": {
                    "default": null,
                    "description": "Property conditions: any of `used`, `ruin`, `very-good`, `new`, `other`.",
                    "items": {
                      "enum": [
                        "used",
                        "ruin",
                        "very-good",
                        "new",
                        "other"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "private": {
                    "default": null,
                    "description": "Whether the property is listed by a private individual, as opposed to an agent or a professional.",
                    "type": "boolean"
                  },
                  "bank": {
                    "default": null,
                    "description": "Whether the property is owned by the bank.",
                    "type": "boolean"
                  },
                  "auction": {
                    "default": false,
                    "description": "Whether the property is the subject of an auction.",
                    "type": "boolean"
                  },
                  "exclude_outliers": {
                    "default": true,
                    "description": "Exclude properties that are significantly underpriced or overpriced compared to similar properties.",
                    "type": "boolean"
                  },
                  "custom_location_boundary": {
                    "properties": {
                      "location_ids": {
                        "default": null,
                        "description": "List of location IDs.",
                        "items": {
                          "maximum": 2147483647,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "maxItems": 10,
                        "minItems": 1,
                        "type": "array"
                      },
                      "circle": {
                        "properties": {
                          "distance": {
                            "description": "Maximum distance in meters from the requested `target_point` to the properties.",
                            "maximum": 50000,
                            "minimum": 50,
                            "type": "integer"
                          },
                          "target_point": {
                            "properties": {
                              "latitude": {
                                "maximum": 90,
                                "minimum": -90,
                                "type": "number"
                              },
                              "longitude": {
                                "maximum": 180,
                                "minimum": -180,
                                "type": "number"
                              }
                            },
                            "required": [
                              "latitude",
                              "longitude"
                            ],
                            "type": "object",
                            "description": "Target point coordinates to search around."
                          }
                        },
                        "required": [
                          "distance",
                          "target_point"
                        ],
                        "type": "object",
                        "default": null,
                        "description": "Circle boundary to search within."
                      }
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "type_group",
                  "business_type",
                  "custom_location_boundary"
                ],
                "type": "object"
              }
            },
            "required": [
              "request_data"
            ],
            "type": "object"
          },
          "outputSchema": {
            "properties": {
              "result": {
                "items": {
                  "properties": {
                    "lower_bound": {
                      "description": "The lower price bound of the distribution unit.",
                      "type": "integer"
                    },
                    "upper_bound": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The upper price bound of the distribution unit."
                    },
                    "properties_count": {
                      "description": "The number of properties that participated in the distribution.",
                      "type": "integer"
                    },
                    "is_mean": {
                      "description": "Indicates whether the mean value is within this distribution unit.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "lower_bound",
                    "upper_bound",
                    "properties_count",
                    "is_mean"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "result"
            ],
            "type": "object",
            "x-fastmcp-wrap-result": true
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/area-insights/get_price_distribution"
        },
        {
          "name": "area-insights_get_bedrooms_distribution",
          "backend_name": "get_bedrooms_distribution",
          "title": "Get Bedrooms Distribution",
          "description": "# Tool: `get_bedrooms_distribution`\n\n## Description\nReturns a **distribution of properties grouped by the number of bedrooms**.\nEach record includes total listings count, average price, and average price per square meter.\n\n## Business Context\nUseful for analyzing pricing differences and market concentration\nbased on bedroom count — ideal for residential market segmentation.\n\n## Parameters\n| Name | Type | Required | Description |\n|------|------|-----------|--------------|\n| `request_data` | `MCPBedroomsDistributionRequestSchema` | Yes | Filter configuration for bedroom-based distribution. |\n\n### Filter highlights\n- `type_group`: property type group (e.g., apartment, house)\n- `business_type`: `\"sale\"` or `\"rent\"`\n- `custom_location_boundary`: geographical boundary filter\n- `bedrooms_range`: range of bedroom counts\n- `exclude_outliers`: optional flag to remove statistical outliers\n\n## Returns\n```json\n[\n  {\n    \"bedrooms\": \"2\",\n    \"properties_count\": 324,\n    \"average_price\": 245000.0,\n    \"average_price_per_sqm\": 5200.0\n  }\n]\n```\n\n| Field | Type | Description |\n|--------|------|-------------|\n| `bedrooms` | `str` | Bedroom count label |\n| `properties_count` | `int` | Number of properties |\n| `average_price` | `float` | Average property price |\n| `average_price_per_sqm` | `float` | Average price per square meter |\n\n## Example Request\n```json\n{\n  \"custom_location_boundary\": {\n    \"circle\": {\n      \"target_point\": {\"latitude\": 48.8566, \"longitude\": 2.3522},\n      \"distance\": 10000\n    }\n  },\n  \"type_group\": \"apartment\",\n  \"business_type\": \"sale\",\n  \"bedrooms_range\": {\"min\": 1, \"max\": 4},\n  \"exclude_outliers\": true\n}\n```",
          "inputSchema": {
            "additionalProperties": false,
            "properties": {
              "request_data": {
                "properties": {
                  "type_group": {
                    "description": "Estate type group.",
                    "enum": [
                      "apartment",
                      "house"
                    ],
                    "type": "string"
                  },
                  "business_type": {
                    "enum": [
                      "sale",
                      "rent"
                    ],
                    "type": "string",
                    "description": "Operation type for which the property is available."
                  },
                  "price_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "price_per_sqm_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "rooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "bedrooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 10,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 10,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "bathrooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "total_area_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "plot_area_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "construction_year_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 3000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 3000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "characteristics": {
                    "anyOf": [
                      {
                        "properties": {
                          "must_have": {
                            "description": "Include only properties that have all these characteristics.",
                            "items": {
                              "enum": [
                                "balcony",
                                "elevator",
                                "no_elevator",
                                "garage",
                                "garden",
                                "parking",
                                "storage",
                                "swimming_pool",
                                "terrace",
                                "rental_license",
                                "furniture",
                                "rented_out",
                                "life_annuity"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "exclude": {
                            "description": "Exclude properties that contain any of these characteristics.",
                            "items": {
                              "enum": [
                                "balcony",
                                "elevator",
                                "no_elevator",
                                "garage",
                                "garden",
                                "parking",
                                "storage",
                                "swimming_pool",
                                "terrace",
                                "rental_license",
                                "furniture",
                                "rented_out",
                                "life_annuity"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "conditions": {
                    "default": null,
                    "description": "Property conditions: any of `used`, `ruin`, `very-good`, `new`, `other`.",
                    "items": {
                      "enum": [
                        "used",
                        "ruin",
                        "very-good",
                        "new",
                        "other"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "private": {
                    "default": null,
                    "description": "Whether the property is listed by a private individual, as opposed to an agent or a professional.",
                    "type": "boolean"
                  },
                  "bank": {
                    "default": null,
                    "description": "Whether the property is owned by the bank.",
                    "type": "boolean"
                  },
                  "auction": {
                    "default": false,
                    "description": "Whether the property is the subject of an auction.",
                    "type": "boolean"
                  },
                  "exclude_outliers": {
                    "default": true,
                    "description": "Exclude properties that are significantly underpriced or overpriced compared to similar properties.",
                    "type": "boolean"
                  },
                  "custom_location_boundary": {
                    "properties": {
                      "location_ids": {
                        "default": null,
                        "description": "List of location IDs.",
                        "items": {
                          "maximum": 2147483647,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "maxItems": 10,
                        "minItems": 1,
                        "type": "array"
                      },
                      "circle": {
                        "properties": {
                          "distance": {
                            "description": "Maximum distance in meters from the requested `target_point` to the properties.",
                            "maximum": 50000,
                            "minimum": 50,
                            "type": "integer"
                          },
                          "target_point": {
                            "properties": {
                              "latitude": {
                                "maximum": 90,
                                "minimum": -90,
                                "type": "number"
                              },
                              "longitude": {
                                "maximum": 180,
                                "minimum": -180,
                                "type": "number"
                              }
                            },
                            "required": [
                              "latitude",
                              "longitude"
                            ],
                            "type": "object",
                            "description": "Target point coordinates to search around."
                          }
                        },
                        "required": [
                          "distance",
                          "target_point"
                        ],
                        "type": "object",
                        "default": null,
                        "description": "Circle boundary to search within."
                      }
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "type_group",
                  "business_type",
                  "custom_location_boundary"
                ],
                "type": "object"
              }
            },
            "required": [
              "request_data"
            ],
            "type": "object"
          },
          "outputSchema": {
            "properties": {
              "result": {
                "items": {
                  "properties": {
                    "bedrooms": {
                      "description": "The number of bedrooms in the properties that participated in the distribution.",
                      "type": "string"
                    },
                    "properties_count": {
                      "description": "The number of properties that participated in the distribution.",
                      "type": "integer"
                    },
                    "average_price": {
                      "description": "Average price of properties with a specific number of bedrooms.",
                      "type": "number"
                    },
                    "average_price_per_sqm": {
                      "description": "Average price per square meter of properties with a specific number of bedrooms.",
                      "type": "number"
                    }
                  },
                  "required": [
                    "bedrooms",
                    "properties_count",
                    "average_price",
                    "average_price_per_sqm"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "result"
            ],
            "type": "object",
            "x-fastmcp-wrap-result": true
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/area-insights/get_bedrooms_distribution"
        },
        {
          "name": "area-insights_get_time_on_market_distribution",
          "backend_name": "get_time_on_market_distribution",
          "title": "Get Time on Market Distribution",
          "description": "# Tool: `get_time_on_market_distribution`\n\n## Description\nReturns a **distribution of properties by their time on the market**, grouped by price intervals.\nEach record contains average listing duration and property count.\n\n## Business Context\nUseful for evaluating **market liquidity** and **demand efficiency**,\nidentifying price segments where listings sell faster or remain longer.\n\n## Parameters\n| Name | Type | Required | Description |\n|------|------|-----------|--------------|\n| `request_data` | `MCPTimeOnMarketDistributionRequestSchema` | Yes | Defines filters for listing duration analysis. |\n\n### Filter highlights\n- `type_group`: property type group\n- `business_type`: `\"sale\"` or `\"rent\"`\n- `price_range`: price interval boundaries\n- `date_range`: date range for the active listing period\n- `exclude_outliers`: optional flag to exclude statistical outliers\n\n## Returns\n```json\n[\n  {\n    \"lower_bound\": 100000,\n    \"upper_bound\": 199999,\n    \"days_on_market\": 45,\n    \"months_on_market\": 1.5,\n    \"properties_count\": 120\n  }\n]\n```\n\n| Field | Type | Description |\n|---------------|-------|------------|\n| `lower_bound` | `int` | Lower price limit |\n| `upper_bound` | `int` | Upper price limit |\n| `days_on_market` | `int` | Average number of active days |\n| `months_on_market` | `float` | Average duration in months |\n| `properties_count` | `int` | Number of listings in the group |\n\n## Example Request\n```json\n{\n  \"custom_location_boundary\": {\n    \"circle\": {\n      \"target_point\": {\"latitude\": 41.3851, \"longitude\": 2.1734},\n      \"distance\": 20000\n    }\n  },\n  \"type_group\": \"apartment\",\n  \"business_type\": \"sale\",\n  \"price_range\": {\"min\": 100000, \"max\": 1000000},\n  \"date_range\": {\"min\": \"2024-01-01\", \"max\": \"2024-12-31\"},\n  \"exclude_outliers\": true\n}\n```",
          "inputSchema": {
            "additionalProperties": false,
            "properties": {
              "request_data": {
                "properties": {
                  "type_group": {
                    "description": "Estate type group.",
                    "enum": [
                      "apartment",
                      "house"
                    ],
                    "type": "string"
                  },
                  "business_type": {
                    "enum": [
                      "sale",
                      "rent"
                    ],
                    "type": "string",
                    "description": "Operation type for which the property is available."
                  },
                  "price_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "price_per_sqm_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "rooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "bedrooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "bathrooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "total_area_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "plot_area_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "construction_year_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 3000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 3000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "characteristics": {
                    "anyOf": [
                      {
                        "properties": {
                          "must_have": {
                            "description": "Include only properties that have all these characteristics.",
                            "items": {
                              "enum": [
                                "balcony",
                                "elevator",
                                "no_elevator",
                                "garage",
                                "garden",
                                "parking",
                                "storage",
                                "swimming_pool",
                                "terrace",
                                "rental_license",
                                "furniture",
                                "rented_out",
                                "life_annuity"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "exclude": {
                            "description": "Exclude properties that contain any of these characteristics.",
                            "items": {
                              "enum": [
                                "balcony",
                                "elevator",
                                "no_elevator",
                                "garage",
                                "garden",
                                "parking",
                                "storage",
                                "swimming_pool",
                                "terrace",
                                "rental_license",
                                "furniture",
                                "rented_out",
                                "life_annuity"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "conditions": {
                    "default": null,
                    "description": "Property conditions: any of `used`, `ruin`, `very-good`, `new`, `other`.",
                    "items": {
                      "enum": [
                        "used",
                        "ruin",
                        "very-good",
                        "new",
                        "other"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "private": {
                    "default": null,
                    "description": "Whether the property is listed by a private individual, as opposed to an agent or a professional.",
                    "type": "boolean"
                  },
                  "bank": {
                    "default": null,
                    "description": "Whether the property is owned by the bank.",
                    "type": "boolean"
                  },
                  "auction": {
                    "default": false,
                    "description": "Whether the property is the subject of an auction.",
                    "type": "boolean"
                  },
                  "exclude_outliers": {
                    "default": true,
                    "description": "Exclude properties that are significantly underpriced or overpriced compared to similar properties.",
                    "type": "boolean"
                  },
                  "custom_location_boundary": {
                    "properties": {
                      "location_ids": {
                        "default": null,
                        "description": "List of location IDs.",
                        "items": {
                          "maximum": 2147483647,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "maxItems": 10,
                        "minItems": 1,
                        "type": "array"
                      },
                      "circle": {
                        "properties": {
                          "distance": {
                            "description": "Maximum distance in meters from the requested `target_point` to the properties.",
                            "maximum": 50000,
                            "minimum": 50,
                            "type": "integer"
                          },
                          "target_point": {
                            "properties": {
                              "latitude": {
                                "maximum": 90,
                                "minimum": -90,
                                "type": "number"
                              },
                              "longitude": {
                                "maximum": 180,
                                "minimum": -180,
                                "type": "number"
                              }
                            },
                            "required": [
                              "latitude",
                              "longitude"
                            ],
                            "type": "object",
                            "description": "Target point coordinates to search around."
                          }
                        },
                        "required": [
                          "distance",
                          "target_point"
                        ],
                        "type": "object",
                        "default": null,
                        "description": "Circle boundary to search within."
                      }
                    },
                    "type": "object"
                  },
                  "date_range": {
                    "properties": {
                      "min": {
                        "anyOf": [
                          {
                            "format": "date",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Start date in the format `YYYY-MM-DD`."
                      },
                      "max": {
                        "anyOf": [
                          {
                            "format": "date",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "End date in the format `YYYY-MM-DD`."
                      }
                    },
                    "required": [
                      "min"
                    ],
                    "type": "object",
                    "default": null,
                    "description": "Filter properties based on the start date of their last active period on the market."
                  }
                },
                "required": [
                  "type_group",
                  "business_type",
                  "custom_location_boundary"
                ],
                "type": "object"
              }
            },
            "required": [
              "request_data"
            ],
            "type": "object"
          },
          "outputSchema": {
            "properties": {
              "result": {
                "items": {
                  "properties": {
                    "lower_bound": {
                      "description": "The lower price bound of the distribution unit.",
                      "type": "integer"
                    },
                    "upper_bound": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The upper price bound of the distribution unit."
                    },
                    "days_on_market": {
                      "description": "The average days on the market.",
                      "type": "integer"
                    },
                    "months_on_market": {
                      "description": "The average months on the market.",
                      "type": "number"
                    },
                    "properties_count": {
                      "description": "The number of properties that participated in the distribution.",
                      "type": "integer"
                    }
                  },
                  "required": [
                    "lower_bound",
                    "upper_bound",
                    "days_on_market",
                    "months_on_market",
                    "properties_count"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "result"
            ],
            "type": "object",
            "x-fastmcp-wrap-result": true
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/area-insights/get_time_on_market_distribution"
        },
        {
          "name": "area-insights_get_heatmap",
          "backend_name": "get_heatmap",
          "title": "Get Heatmap",
          "description": "# Tool: `get_heatmap`\n\n## Description\nGenerate an **area insights heatmap** showing property distribution and price dynamics\nacross geographic areas.\n\nThis tool aggregates **active real estate listings** for the child locations of the given `location_id`\n(e.g., districts of a city), returning the selected `data_point` metric for each of them.\nIt supports a wide range of property filters, including estate type, price range,\nconstruction year, and location hierarchy.\n\n## Use Cases\nRetrieve geographic insights for real estate analytics:\n- Visualize market activity intensity across a city or region.\n- Identify hotspots of high property density or high average price.\n- Compare neighborhoods based on average price per sqm.\n- Analyze supply distribution and property trends over time.\n- Combine with time-series data to understand historical evolution by area.\n\n## Parameters\n| Name | Type | Required | Description |\n|------|------|-----------|--------------|\n| `request_data` | `MCPHeatMapRequestSchema` | Yes | Defines filters, metrics, and date range for heatmap generation. |\n\n## Important Notes\n- Only **ACTIVE** listings are included.\n- The tool automatically resolves **child locations** (e.g., neighborhoods within a city).\n- If no matching data is found, a `ToolError` will be raised.\n- Use returned data for **map visualization** or **spatial analytics dashboards**.\n\n## Returns\n```json\n[\n  {\n    \"location_id\": 12345,\n    \"location_name\": \"Lisbon\",\n    \"value\": 5200.5\n  }\n]\n```\nEach item represents one geographic unit with aggregated metric value.",
          "inputSchema": {
            "additionalProperties": false,
            "properties": {
              "request_data": {
                "properties": {
                  "type_group": {
                    "description": "Estate type group.",
                    "enum": [
                      "apartment",
                      "house"
                    ],
                    "type": "string"
                  },
                  "business_type": {
                    "enum": [
                      "sale",
                      "rent"
                    ],
                    "type": "string",
                    "description": "Operation type for which the property is available."
                  },
                  "price_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "price_per_sqm_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 2147483647,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "rooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "bedrooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "bathrooms_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 15000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "total_area_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "plot_area_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 1000000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "construction_year_range": {
                    "anyOf": [
                      {
                        "properties": {
                          "min": {
                            "anyOf": [
                              {
                                "maximum": 3000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          },
                          "max": {
                            "anyOf": [
                              {
                                "maximum": 3000,
                                "minimum": 1,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "default": null
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "characteristics": {
                    "anyOf": [
                      {
                        "properties": {
                          "must_have": {
                            "description": "Include only properties that have all these characteristics.",
                            "items": {
                              "enum": [
                                "balcony",
                                "elevator",
                                "no_elevator",
                                "garage",
                                "garden",
                                "parking",
                                "storage",
                                "swimming_pool",
                                "terrace",
                                "rental_license",
                                "furniture",
                                "rented_out",
                                "life_annuity"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "exclude": {
                            "description": "Exclude properties that contain any of these characteristics.",
                            "items": {
                              "enum": [
                                "balcony",
                                "elevator",
                                "no_elevator",
                                "garage",
                                "garden",
                                "parking",
                                "storage",
                                "swimming_pool",
                                "terrace",
                                "rental_license",
                                "furniture",
                                "rented_out",
                                "life_annuity"
                              ],
                              "type": "string"
                            },
                            "type": "array"
                          }
                        },
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "default": null
                  },
                  "conditions": {
                    "default": null,
                    "description": "Property conditions: any of `used`, `ruin`, `very-good`, `new`, `other`.",
                    "items": {
                      "enum": [
                        "used",
                        "ruin",
                        "very-good",
                        "new",
                        "other"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "private": {
                    "default": null,
                    "description": "Whether the property is listed by a private individual, as opposed to an agent or a professional.",
                    "type": "boolean"
                  },
                  "bank": {
                    "default": null,
                    "description": "Whether the property is owned by the bank.",
                    "type": "boolean"
                  },
                  "auction": {
                    "default": false,
                    "description": "Whether the property is the subject of an auction.",
                    "type": "boolean"
                  },
                  "exclude_outliers": {
                    "default": true,
                    "description": "Exclude properties that are significantly underpriced or overpriced compared to similar properties.",
                    "type": "boolean"
                  },
                  "location_id": {
                    "maximum": 2147483647,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "data_point": {
                    "enum": [
                      "avg_price",
                      "avg_price_psqm",
                      "available_on_market",
                      "new",
                      "sold_or_rented",
                      "price_up",
                      "price_down"
                    ],
                    "type": "string",
                    "description": "Specifies the type of real estate data to retrieve for a given period."
                  },
                  "date_range": {
                    "properties": {
                      "min": {
                        "anyOf": [
                          {
                            "format": "date",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Start date in the format `YYYY-MM-DD`. If the specified date is not Monday - the closest previous Monday will be selected"
                      },
                      "max": {
                        "anyOf": [
                          {
                            "format": "date",
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "End date in the format `YYYY-MM-DD`. If the specified date is not Sunday - the closest previous Sunday will be selected"
                      }
                    },
                    "required": [
                      "min"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "type_group",
                  "business_type",
                  "location_id",
                  "data_point",
                  "date_range"
                ],
                "type": "object"
              }
            },
            "required": [
              "request_data"
            ],
            "type": "object"
          },
          "outputSchema": {
            "properties": {
              "result": {
                "items": {
                  "properties": {
                    "location_id": {
                      "type": "integer"
                    },
                    "location_name": {
                      "type": "string"
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "location_id",
                    "location_name",
                    "value"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "result"
            ],
            "type": "object",
            "x-fastmcp-wrap-result": true
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/area-insights/get_heatmap"
        },
        {
          "name": "area-insights_get_sales_time_series",
          "backend_name": "get_sales_time_series",
          "title": "Registered sale price trend in an area",
          "description": "How registered sale prices moved in an area of Spain, France, Italy, Poland or Portugal: weekly average sale price and average price per square metre, plus total_properties, the number of registered sales in the period. Give country, location_boundary and sold_at_range with both dates. Every week in the range is returned; a week with no sales has value 0, which means nothing sold that week, not a price of 0. Spain: notary deeds; France: DVF, the public register of property sales; Italy: registered sales from Agenzia delle Entrate; Poland: RCN, Poland's official register of property prices. Sale prices, not asking prices: for asking prices use the other Area Insights tools.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "country": {
                "type": "string",
                "enum": [
                  "ES",
                  "FR",
                  "IT",
                  "PL",
                  "PT",
                  "AT"
                ],
                "description": "ES (Spain), FR (France), IT (Italy), PL (Poland) or PT (Portugal: INE's official median per m² by municipality and quarter; area as location_ids, a circle or a polygon, only types and sold_at_range as filters, no counts) or AT (Austria: yearly open-data prices per m² by municipality, district or state; location_ids only; no counts; not available until Casafari names its source)."
              },
              "location_boundary": {
                "type": "object",
                "description": "The area: exactly one of location_ids (from Location Lookup), circle or polygon.",
                "properties": {
                  "location_ids": {
                    "type": "array",
                    "description": "Location ids from Location Lookup (locations_search), all in the request's country.",
                    "items": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "minItems": 1,
                    "maxItems": 100
                  },
                  "circle": {
                    "type": "object",
                    "description": "A circle: its centre and radius in metres (1 to 50 000).",
                    "properties": {
                      "coordinates": {
                        "type": "object",
                        "properties": {
                          "lat": {
                            "type": "number",
                            "minimum": -90,
                            "maximum": 90
                          },
                          "lon": {
                            "type": "number",
                            "minimum": -180,
                            "maximum": 180
                          }
                        },
                        "required": [
                          "lat",
                          "lon"
                        ],
                        "additionalProperties": false
                      },
                      "radius_in_meters": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 50000
                      }
                    },
                    "required": [
                      "coordinates",
                      "radius_in_meters"
                    ],
                    "additionalProperties": false
                  },
                  "polygon": {
                    "type": "array",
                    "description": "A closed polygon: at least 4 points, the last equal to the first.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "minimum": -90,
                          "maximum": 90
                        },
                        "lon": {
                          "type": "number",
                          "minimum": -180,
                          "maximum": 180
                        }
                      },
                      "required": [
                        "lat",
                        "lon"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 4,
                    "maxItems": 1000
                  }
                },
                "additionalProperties": false,
                "minProperties": 1,
                "maxProperties": 1
              },
              "sold_at_range": {
                "type": "object",
                "description": "Sale dates, YYYY-MM-DD, both bounds required: {\"gte\": \"2024-01-01\", \"lte\": \"2025-12-31\"} (or gt / lt).",
                "properties": {
                  "gte": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "gt": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "lte": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "lt": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "types": {
                "type": "array",
                "description": "Property types, lower case, e.g. [\"apartment\", \"penthouse\"] or [\"house\", \"villa\"].",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z][a-z_]*$",
                  "maxLength": 40
                },
                "minItems": 1,
                "maxItems": 40
              },
              "conditions": {
                "type": "array",
                "description": "Spain, Italy and Poland only: property condition, any of used, ruin, very-good, new, other.",
                "items": {
                  "type": "string",
                  "enum": [
                    "used",
                    "ruin",
                    "very-good",
                    "new",
                    "other"
                  ]
                },
                "minItems": 1,
                "maxItems": 5
              },
              "with_mortgage": {
                "type": "boolean",
                "description": "Spain only: true for sales financed with a mortgage, false for sales without one."
              },
              "price_range": {
                "type": "object",
                "description": "Registered sale price in euros: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "price_per_sqm_range": {
                "type": "object",
                "description": "Registered sale price per square metre in euros: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "total_area_range": {
                "type": "object",
                "description": "Built area in square metres: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "plot_area_range": {
                "type": "object",
                "description": "France and Poland only: plot area in square metres: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "bedrooms_range": {
                "type": "object",
                "description": "France only: bedrooms: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              }
            },
            "required": [
              "country",
              "location_boundary",
              "sold_at_range"
            ],
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/area-insights/get_sales_time_series"
        },
        {
          "name": "area-insights_get_sales_average_prices",
          "backend_name": "get_sales_average_prices",
          "title": "Average registered sale prices by location",
          "description": "Average registered sale price and average price per square metre in Spain, France, Italy, Poland or Portugal, one row per location inside the area: with location_ids, the locations beneath each one, each row naming its parent_location_id. Use it to compare districts or neighbourhoods. Give country and location_boundary; sold_at_range, types and price filters narrow the sales counted. A large area can return many rows. Portugal answers INE's latest median per square metre for each municipality in a circle or polygon. Sale prices, not asking prices: for asking prices use the other Area Insights tools.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "country": {
                "type": "string",
                "enum": [
                  "ES",
                  "FR",
                  "IT",
                  "PL",
                  "PT",
                  "AT"
                ],
                "description": "ES (Spain), FR (France), IT (Italy), PL (Poland) or PT (Portugal: INE's official median per m² by municipality and quarter; area as location_ids, a circle or a polygon, only types and sold_at_range as filters, no counts) or AT (Austria: yearly open-data prices per m² by municipality, district or state; location_ids only; no counts; not available until Casafari names its source)."
              },
              "location_boundary": {
                "type": "object",
                "description": "The area: exactly one of location_ids (from Location Lookup), circle or polygon.",
                "properties": {
                  "location_ids": {
                    "type": "array",
                    "description": "Location ids from Location Lookup (locations_search), all in the request's country.",
                    "items": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "minItems": 1,
                    "maxItems": 100
                  },
                  "circle": {
                    "type": "object",
                    "description": "A circle: its centre and radius in metres (1 to 50 000).",
                    "properties": {
                      "coordinates": {
                        "type": "object",
                        "properties": {
                          "lat": {
                            "type": "number",
                            "minimum": -90,
                            "maximum": 90
                          },
                          "lon": {
                            "type": "number",
                            "minimum": -180,
                            "maximum": 180
                          }
                        },
                        "required": [
                          "lat",
                          "lon"
                        ],
                        "additionalProperties": false
                      },
                      "radius_in_meters": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 50000
                      }
                    },
                    "required": [
                      "coordinates",
                      "radius_in_meters"
                    ],
                    "additionalProperties": false
                  },
                  "polygon": {
                    "type": "array",
                    "description": "A closed polygon: at least 4 points, the last equal to the first.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "minimum": -90,
                          "maximum": 90
                        },
                        "lon": {
                          "type": "number",
                          "minimum": -180,
                          "maximum": 180
                        }
                      },
                      "required": [
                        "lat",
                        "lon"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 4,
                    "maxItems": 1000
                  }
                },
                "additionalProperties": false,
                "minProperties": 1,
                "maxProperties": 1
              },
              "sold_at_range": {
                "type": "object",
                "description": "Sale dates, YYYY-MM-DD: {\"gte\": \"2024-01-01\"}, an upper bound with lte, or both (or gt / lt).",
                "properties": {
                  "gte": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "gt": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "lte": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "lt": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "types": {
                "type": "array",
                "description": "Property types, lower case, e.g. [\"apartment\", \"penthouse\"] or [\"house\", \"villa\"].",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z][a-z_]*$",
                  "maxLength": 40
                },
                "minItems": 1,
                "maxItems": 40
              },
              "conditions": {
                "type": "array",
                "description": "Spain, Italy and Poland only: property condition, any of used, ruin, very-good, new, other.",
                "items": {
                  "type": "string",
                  "enum": [
                    "used",
                    "ruin",
                    "very-good",
                    "new",
                    "other"
                  ]
                },
                "minItems": 1,
                "maxItems": 5
              },
              "with_mortgage": {
                "type": "boolean",
                "description": "Spain only: true for sales financed with a mortgage, false for sales without one."
              },
              "price_range": {
                "type": "object",
                "description": "Registered sale price in euros: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "price_per_sqm_range": {
                "type": "object",
                "description": "Registered sale price per square metre in euros: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              }
            },
            "required": [
              "country",
              "location_boundary"
            ],
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/area-insights/get_sales_average_prices"
        },
        {
          "name": "area-insights_count_sales_by_type",
          "backend_name": "count_sales_by_type",
          "title": "Number of registered sales by property type",
          "description": "How many registered sales an area of Spain, France, Italy or Poland had (Portugal has no sales counts), by property type: what kind of properties actually sell there. empty_type_count counts sales whose property type the source does not give. Give country and location_boundary; sold_at_range and the other filters narrow the sales counted. Sale prices, not asking prices: for asking prices use the other Area Insights tools.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "country": {
                "type": "string",
                "enum": [
                  "ES",
                  "FR",
                  "IT",
                  "PL",
                  "PT",
                  "AT"
                ],
                "description": "ES (Spain), FR (France), IT (Italy), PL (Poland) or PT (Portugal: INE's official median per m² by municipality and quarter; area as location_ids, a circle or a polygon, only types and sold_at_range as filters, no counts) or AT (Austria: yearly open-data prices per m² by municipality, district or state; location_ids only; no counts; not available until Casafari names its source)."
              },
              "location_boundary": {
                "type": "object",
                "description": "The area: exactly one of location_ids (from Location Lookup), circle or polygon.",
                "properties": {
                  "location_ids": {
                    "type": "array",
                    "description": "Location ids from Location Lookup (locations_search), all in the request's country.",
                    "items": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "minItems": 1,
                    "maxItems": 100
                  },
                  "circle": {
                    "type": "object",
                    "description": "A circle: its centre and radius in metres (1 to 50 000).",
                    "properties": {
                      "coordinates": {
                        "type": "object",
                        "properties": {
                          "lat": {
                            "type": "number",
                            "minimum": -90,
                            "maximum": 90
                          },
                          "lon": {
                            "type": "number",
                            "minimum": -180,
                            "maximum": 180
                          }
                        },
                        "required": [
                          "lat",
                          "lon"
                        ],
                        "additionalProperties": false
                      },
                      "radius_in_meters": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 50000
                      }
                    },
                    "required": [
                      "coordinates",
                      "radius_in_meters"
                    ],
                    "additionalProperties": false
                  },
                  "polygon": {
                    "type": "array",
                    "description": "A closed polygon: at least 4 points, the last equal to the first.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "minimum": -90,
                          "maximum": 90
                        },
                        "lon": {
                          "type": "number",
                          "minimum": -180,
                          "maximum": 180
                        }
                      },
                      "required": [
                        "lat",
                        "lon"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 4,
                    "maxItems": 1000
                  }
                },
                "additionalProperties": false,
                "minProperties": 1,
                "maxProperties": 1
              },
              "sold_at_range": {
                "type": "object",
                "description": "Sale dates, YYYY-MM-DD: {\"gte\": \"2024-01-01\"}, an upper bound with lte, or both (or gt / lt).",
                "properties": {
                  "gte": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "gt": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "lte": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  "lt": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "types": {
                "type": "array",
                "description": "Property types, lower case, e.g. [\"apartment\", \"penthouse\"] or [\"house\", \"villa\"].",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z][a-z_]*$",
                  "maxLength": 40
                },
                "minItems": 1,
                "maxItems": 40
              },
              "type_groups": {
                "type": "array",
                "description": "Property type groups, e.g. [\"apartment\", \"house\"].",
                "items": {
                  "type": "string",
                  "enum": [
                    "apartment",
                    "house",
                    "room",
                    "building",
                    "investment",
                    "plot",
                    "other"
                  ]
                },
                "minItems": 1,
                "maxItems": 7
              },
              "conditions": {
                "type": "array",
                "description": "Spain, Italy and Poland only: property condition, any of used, ruin, very-good, new, other.",
                "items": {
                  "type": "string",
                  "enum": [
                    "used",
                    "ruin",
                    "very-good",
                    "new",
                    "other"
                  ]
                },
                "minItems": 1,
                "maxItems": 5
              },
              "with_mortgage": {
                "type": "boolean",
                "description": "Spain only: true for sales financed with a mortgage, false for sales without one."
              },
              "price_range": {
                "type": "object",
                "description": "Registered sale price in euros: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "price_per_sqm_range": {
                "type": "object",
                "description": "Registered sale price per square metre in euros: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "total_area_range": {
                "type": "object",
                "description": "Built area in square metres: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "plot_area_range": {
                "type": "object",
                "description": "France and Poland only: plot area in square metres: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "number",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              },
              "bedrooms_range": {
                "type": "object",
                "description": "France only: bedrooms: {\"gte\": n, \"lte\": n} (or gt / lt); at least one bound.",
                "properties": {
                  "gte": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "gt": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "lte": {
                    "type": "integer",
                    "minimum": 0
                  },
                  "lt": {
                    "type": "integer",
                    "minimum": 0
                  }
                },
                "additionalProperties": false,
                "minProperties": 1
              }
            },
            "required": [
              "country",
              "location_boundary"
            ],
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/area-insights/count_sales_by_type"
        }
      ]
    },
    {
      "namespace": "cadastre",
      "name": "Cadastre",
      "docs": "/docs/cadastre",
      "endpoint": "https://platform.casafari.com/mcp/cadastre",
      "tools": [
        {
          "name": "cadastre_find",
          "backend_name": "find",
          "title": "Find",
          "description": "Find cadastral candidates for ONE locator: ref, address, or lat+lng. Returns ranked candidates (unit ref,\nparcel ref, address, use, surface, match method, confidence). Several plausible matches come back as\nseveral candidates with ambiguous=true; pick one yourself or ask the user.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "ref": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Cadastral reference: 20 chars = unit, 14 chars = parcel."
              },
              "address": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Free text, e.g. 'Carrer Creueta 31, Sitges'."
              },
              "lat": {
                "anyOf": [
                  {
                    "maximum": 90,
                    "minimum": -90,
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "lng": {
                "anyOf": [
                  {
                    "maximum": 180,
                    "minimum": -180,
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "municipality": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Narrow an address search to this municipality."
              },
              "limit": {
                "default": 5,
                "maximum": 20,
                "minimum": 1,
                "type": "integer"
              }
            }
          },
          "outputSchema": {
            "additionalProperties": true,
            "type": "object"
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/cadastre/find"
        },
        {
          "name": "cadastre_get_property",
          "backend_name": "get_property",
          "title": "Get Property",
          "description": "Registry record of a unit (use, built and living m2, year, floor, door) with its parcel (plot m2, unit\nsummary) and point. A 14-char reference answers at parcel level and says so.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "ref": {
                "description": "20-char unit or 14-char parcel reference.",
                "type": "string"
              },
              "include": {
                "anyOf": [
                  {
                    "items": {
                      "const": "geometry",
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Add \"geometry\" for the parcel polygon."
              }
            },
            "required": [
              "ref"
            ]
          },
          "outputSchema": {
            "additionalProperties": true,
            "type": "object"
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/cadastre/get_property"
        },
        {
          "name": "cadastre_reference_value",
          "backend_name": "reference_value",
          "title": "Reference Value",
          "description": "Value of the zone reference home where the locator falls: zone code, reference home, EUR and EUR/m2 per year\nheld and the year-on-year change. label=zone_reference_value: this is NOT the property's official valor de\nreferencia.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "ref": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Cadastral reference: 20 chars = unit, 14 chars = parcel."
              },
              "address": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Free text, e.g. 'Carrer Creueta 31, Sitges'."
              },
              "lat": {
                "anyOf": [
                  {
                    "maximum": 90,
                    "minimum": -90,
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "lng": {
                "anyOf": [
                  {
                    "maximum": 180,
                    "minimum": -180,
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "municipality": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "type": {
                "anyOf": [
                  {
                    "enum": [
                      "flat",
                      "house",
                      "garage"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Needed for coordinates/parcels."
              },
              "year": {
                "anyOf": [
                  {
                    "maximum": 2100,
                    "minimum": 2000,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              }
            }
          },
          "outputSchema": {
            "additionalProperties": true,
            "type": "object"
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/cadastre/reference_value"
        },
        {
          "name": "cadastre_area_values",
          "backend_name": "area_values",
          "title": "Area Values",
          "description": "Every zone's reference home and value in a municipality, with min/median/max per year (EUR/m2 for flat and\nhouse, EUR for garage). Geometry only when asked.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "municipality": {
                "description": "Municipality name or 5-digit Catastro (DGC) code.",
                "type": "string"
              },
              "type": {
                "enum": [
                  "flat",
                  "house",
                  "garage"
                ],
                "type": "string"
              },
              "year": {
                "anyOf": [
                  {
                    "maximum": 2100,
                    "minimum": 2000,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null
              },
              "include": {
                "anyOf": [
                  {
                    "items": {
                      "const": "geometry",
                      "type": "string"
                    },
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "description": "Add \"geometry\" for zone polygons."
              }
            },
            "required": [
              "municipality",
              "type"
            ]
          },
          "outputSchema": {
            "additionalProperties": true,
            "type": "object"
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/cadastre/area_values"
        },
        {
          "name": "cadastre_zone_quotation",
          "backend_name": "zone_quotation",
          "title": "Italian OMI zone quotation",
          "description": "Italy only: for a point (lat, lng) and a type (flat or house, default flat), the OMI residential quotation ranges of the zone it lies in: minimum and maximum euros per square metre for sale and for rent, per property type and condition, for the latest half-year. A range for the zone (omi_quotation_range), not a home's value. Source: Agenzia delle Entrate – OMI, CC BY 4.0. A point outside Italy returns not_covered.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "lat": {
                "maximum": 90,
                "minimum": -90,
                "type": "number"
              },
              "lng": {
                "maximum": 180,
                "minimum": -180,
                "type": "number"
              },
              "type": {
                "default": "flat",
                "description": "flat = abitazioni civili and economico; house = ville e villini.",
                "enum": [
                  "flat",
                  "house"
                ],
                "type": "string"
              },
              "country": {
                "default": "IT",
                "description": "Italy only (Agenzia delle Entrate OMI).",
                "enum": [
                  "IT"
                ],
                "type": "string"
              }
            },
            "required": [
              "lat",
              "lng"
            ]
          },
          "outputSchema": {
            "additionalProperties": true,
            "type": "object"
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/cadastre/zone_quotation"
        }
      ]
    },
    {
      "namespace": "parcel-zoning",
      "name": "Parcel Zoning",
      "docs": "/docs/parcel-zoning",
      "endpoint": "https://platform.casafari.com/mcp/parcel-zoning",
      "tools": [
        {
          "name": "parcel-zoning_lookup",
          "backend_name": "lookup",
          "title": "Zoning and buildable area of a parcel",
          "description": "Zoning and buildable area for one land parcel in Spain (Bizkaia and Catalonia) or Germany (Hamburg and North Rhine-Westphalia), for now: give a cadastral reference (cadastral_ref: a Catastro reference such as 9872023DF2897S, Bizkaia's 48.085.1022.07019 with optional dots, or a German Flurstückskennzeichen such as 020101___01396______) or coordinates (lat and lon), not both; the country follows the reference or the point. Returns the parcel's area, whether it is built, its land class, its zone and the plan it comes from, the plan's building rules (m²/m², site coverage, storeys, minimum plot, uses) and the buildable area when the zone and its density are known. In Spain, when the zone is unknown, candidate_rules say what each possible zone of the municipality would allow (say \"if the parcel is in Area 7 ...\", never state one as fact). In Germany, flags say when no plan applies (fits_surroundings, §34 BauGB) the plan sets no GFZ (density_not_set), or its figures exist only in the plan PDF (plan_not_digitised, with the link). Every figure carries its source (dataset, or plan and date); show the sources' attribution. A figure the sources do not give is null, never 0. A reference or point outside the coverage answers not_found.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "cadastral_ref": {
                "type": "string",
                "description": "The parcel's cadastral reference: a Catastro reference such as 9872023DF2897S (14 characters, or 20 for a property in it), Bizkaia's form 48.085.1022.07019 (the dots are optional), or a German Flurstückskennzeichen with its underscores, such as 020101___01396______ (Hamburg). Leave out lat and lon when you give it.",
                "maxLength": 40
              },
              "lat": {
                "type": "number",
                "description": "Latitude of a point on the parcel, decimal degrees (WGS 84). Give it with lon, instead of cadastral_ref.",
                "minimum": -90,
                "maximum": 90
              },
              "lon": {
                "type": "number",
                "description": "Longitude of a point on the parcel, decimal degrees (WGS 84). Give it with lat, instead of cadastral_ref.",
                "minimum": -180,
                "maximum": 180
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/parcel-zoning/lookup"
        },
        {
          "name": "parcel-zoning_coverage",
          "backend_name": "coverage",
          "title": "Parcel Zoning coverage",
          "description": "The countries and regions Parcel Zoning covers, with the number of parcels, how many have zoning rules and the date of each region's data.",
          "inputSchema": {
            "type": "object",
            "properties": {},
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/parcel-zoning/coverage"
        }
      ]
    },
    {
      "namespace": "claro",
      "name": "Claro AI",
      "docs": "/docs/claro",
      "endpoint": "https://platform.casafari.com/mcp/claro",
      "tools": [
        {
          "name": "search_premises",
          "backend_name": "search_premises",
          "title": "Search commercial premises",
          "description": "Find shops, restaurant premises, offices, warehouses and other commercial premises for rent or sale anywhere in Spain or Germany (one country per search; Spain unless Germany is asked). Describe the site in plain words in any language (brief), send criteria as data, or both (criteria override the brief). Returns exact counts (matching, all criteria stated, some not stated), the criteria as understood, and the best results: each with its data, what was met and what its text does not state, the sentence that matched, its coordinates (exact, or snapped to the centre of a ~500 m cell and marked approximate when the agency hides the address; none when it has no pin), a fit verdict read from its text (`fit`: good, partial or poor, a reason, the quote it rests on; `data_conflict` when its text names another district, city or property type than its own data, with the text's words and a note to check the agency's ad: the data decides the verdict, an exact pin over any place the text names), location figures when your account has location access (footfall, residents, nearby places, and in `location` the footfall split by weekday/weekend, time of day and where the activity comes from live, plus residents by age, households by income and spending power, each null when not stated or unknown, never 0 for unknown; `location_sources` gives each figure's unit, source and vintage, and when it was computed), and the agency (`agency.name`) with its own listing page as `agency.listing_url`, null when the agency has no page of its own (always the agency's own page, never a property portal's). Our fit verdict is one input: every raw figure is there for your own scoring. Up to 200 results a page (50 with a publishable key). `next_cursor` gets the next page: send it as `cursor` (alone, with `limit` if you like); the order is fixed when the search runs and stays the same for its 24 hours, so pages never repeat or skip a premises. `page` gives offset, limit and the total ranked. The read-through (`check`) runs only for pages of up to 50. `stated_only: true` pages through only the matches that state every criterion (those with a point not stated or not met are left out; `counts` still gives both totals, `page.total` the set being paged); send it with the first search, or with `search_id` to page a stored search's stated matches without searching again, and its `next_cursor` keeps it. `search_id` with `offset` (and no brief, criteria or change) returns that search's page from that place. `pins_only: true` with `search_id` (or a cursor) returns just each match's pin, `pins` (id, lat, lon, precision, plus type, district, rent and sale price, size and the day it was first listed, `listed_since`, each null when not stated), up to 2000 a page, for a map. Keep search_id to refine. Keywords only, no model: send just criteria.keywords and/or exclude_keywords (plus any data criteria) with no brief and check: false, e.g. {\"criteria\": {\"operation\": \"rent\", \"cities\": [\"madrid\"], \"keywords\": [[\"salida de humos\", \"sortida de fums\"], [\"esquina\", \"chaflán\"]], \"exclude_keywords\": [\"se traspasa\"]}, \"check\": false}; each keyword group met carries the sentence that matched (evidence) and the phrase it holds (matched).",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "brief": {
                "type": "string",
                "description": "The site brief in plain words, e.g. \"burger restaurant, corner unit 120-250 m², smoke outlet, busy street, Madrid, rent under 8,000 a month\"."
              },
              "criteria": {
                "type": "object",
                "additionalProperties": false,
                "description": "Criteria as data. Hard criteria (operation, cities, types, price, area) exclude properties outside them; the rest exclude only properties that state the opposite, and each result says which were met and which the property does not state.",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "rent",
                      "sale",
                      "either"
                    ]
                  },
                  "country": {
                    "type": "string",
                    "enum": [
                      "es",
                      "de"
                    ],
                    "description": "The one country the search is in: es (Spain, the default) or de (Germany). Cities and provinces are that country's; counts never mix countries."
                  },
                  "cities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Towns or cities in the search's country by name or slug (\"valencia\", \"Palma\"; with country de: \"München\", \"koln\"). Leave out for the whole country."
                  },
                  "provinces": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "a-coruna",
                        "alava",
                        "albacete",
                        "alicante",
                        "almeria",
                        "asturias",
                        "avila",
                        "badajoz",
                        "barcelona",
                        "burgos",
                        "caceres",
                        "cadiz",
                        "cantabria",
                        "castellon",
                        "ceuta",
                        "ciudad-real",
                        "cordoba",
                        "cuenca",
                        "girona",
                        "granada",
                        "guadalajara",
                        "guipuzcoa",
                        "huelva",
                        "huesca",
                        "islas-baleares",
                        "jaen",
                        "la-rioja",
                        "las-palmas",
                        "leon",
                        "lleida",
                        "lugo",
                        "madrid",
                        "malaga",
                        "melilla",
                        "murcia",
                        "navarra",
                        "ourense",
                        "palencia",
                        "pontevedra",
                        "salamanca",
                        "santa-cruz-de-tenerife",
                        "segovia",
                        "sevilla",
                        "soria",
                        "tarragona",
                        "teruel",
                        "toledo",
                        "valencia",
                        "valladolid",
                        "vizcaya",
                        "zamora",
                        "zaragoza",
                        "baden-wurttemberg",
                        "bayern",
                        "berlin",
                        "brandenburg",
                        "bremen",
                        "hamburg",
                        "hessen",
                        "mecklenburg-vorpommern",
                        "niedersachsen",
                        "nordrhein-westfalen",
                        "rheinland-pfalz",
                        "saarland",
                        "sachsen",
                        "sachsen-anhalt",
                        "schleswig-holstein",
                        "thuringen"
                      ]
                    },
                    "description": "Provinces in Spain, or Länder with country de (\"bayern\", \"nordrhein-westfalen\"); a property must be in one of them."
                  },
                  "districts": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Named districts or neighbourhoods in the cities (Centro, Malasaña, Chamberí, Eixample, Gràcia, Poblenou...). A property outside them is out; one that does not state its district stays, marked not stated."
                  },
                  "types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "hotel",
                        "retail",
                        "warehouse",
                        "industrial",
                        "office",
                        "other_commercial"
                      ]
                    }
                  },
                  "area_min": {
                    "type": "number"
                  },
                  "area_max": {
                    "type": "number"
                  },
                  "price_min": {
                    "type": "number",
                    "description": "EUR: a month for rent, the total for a sale; applies to each operation without its own rent_/sale_ limit."
                  },
                  "price_max": {
                    "type": "number"
                  },
                  "rent_price_min": {
                    "type": "number",
                    "description": "EUR a month; compared only with rents."
                  },
                  "rent_price_max": {
                    "type": "number",
                    "description": "EUR a month; compared only with rents. With sale_price_max, operation \"either\" keeps a property whose rent or sale price fits its own limit."
                  },
                  "sale_price_min": {
                    "type": "number",
                    "description": "EUR total; compared only with sale prices."
                  },
                  "sale_price_max": {
                    "type": "number"
                  },
                  "price_m2_min": {
                    "type": "number",
                    "description": "EUR per m² of the property's area (a month for rent); a property with no stated area is \"not stated\"."
                  },
                  "price_m2_max": {
                    "type": "number"
                  },
                  "rent_price_m2_min": {
                    "type": "number"
                  },
                  "rent_price_m2_max": {
                    "type": "number"
                  },
                  "sale_price_m2_min": {
                    "type": "number"
                  },
                  "sale_price_m2_max": {
                    "type": "number"
                  },
                  "street_level": {
                    "type": "boolean"
                  },
                  "frontage_min_m": {
                    "type": "number",
                    "description": "Facade length (fachada) in metres."
                  },
                  "frontage_max_m": {
                    "type": "number"
                  },
                  "floors_min": {
                    "type": "number",
                    "description": "Number of floors (plantas) the premises has."
                  },
                  "floors_max": {
                    "type": "number"
                  },
                  "ceiling_min_m": {
                    "type": "number"
                  },
                  "smoke_extraction": {
                    "type": "boolean"
                  },
                  "corner": {
                    "type": "boolean"
                  },
                  "shop_window": {
                    "type": "boolean"
                  },
                  "open_plan": {
                    "type": "boolean"
                  },
                  "step_free": {
                    "type": "boolean"
                  },
                  "loading_access": {
                    "type": "boolean"
                  },
                  "licence": {
                    "type": "string",
                    "enum": [
                      "food_service",
                      "retail",
                      "office",
                      "gym",
                      "none"
                    ]
                  },
                  "licence_activities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Activities its licence sentence must name, in Spanish or Catalan: cafetería, panadería, restaurante..."
                  },
                  "transfer_price_min": {
                    "type": "number",
                    "description": "Transfer fee (traspaso) in EUR; met when its stated range overlaps."
                  },
                  "transfer_price_max": {
                    "type": "number"
                  },
                  "business_transfer": {
                    "type": "boolean",
                    "description": "true: only business transfers (traspasos); false: none."
                  },
                  "business_types": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Uses its text says it suits, in English: restaurant, cafe, gym..."
                  },
                  "keywords": {
                    "type": "array",
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "description": "Groups of phrases; a property meets a group when its text holds any phrase. Write phrases as Spanish agencies do."
                  },
                  "exclude_keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Leave out properties whose text holds any of these."
                  },
                  "footfall_min": {
                    "type": "number",
                    "description": "Minimum footfall index within a 5-minute walk (an index of pedestrian activity that compares places; not a head count). Needs location data access."
                  },
                  "pop_walk10_min": {
                    "type": "number",
                    "description": "Residents within a 10-minute walk. Needs location data access."
                  },
                  "pop_drive10_min": {
                    "type": "number",
                    "description": "Residents within a 10-minute drive. Needs location data access."
                  },
                  "transit_min": {
                    "type": "number",
                    "description": "Stations and stops within a 5-minute walk. Needs location data access."
                  },
                  "competitors_max": {
                    "type": "array",
                    "description": "At most this many places of a kind within a 5-minute walk (gyms: 10). Needs location data access.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "restaurants",
                            "fast_food",
                            "cafes",
                            "shops",
                            "supermarkets",
                            "gyms"
                          ]
                        },
                        "max": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "kind",
                        "max"
                      ]
                    }
                  },
                  "own_stores_away_m": {
                    "type": "number",
                    "description": "No store from your own list (upload it with PUT /v1/stores) within this many metres of the premises, straight-line, 1-1,000. Needs an exact pin."
                  },
                  "competitors_near_max": {
                    "type": "array",
                    "description": "At most `max` businesses of a segment (or of the named `chains`) within `within_m` straight-line metres (1-1,000), from Overture Maps places. A property with an approximate pin gets no verdict.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "segment": {
                          "type": "string",
                          "enum": [
                            "gym",
                            "burger",
                            "fast_food",
                            "coffee",
                            "bakery",
                            "pharmacy",
                            "supermarket",
                            "fashion",
                            "pizza"
                          ]
                        },
                        "within_m": {
                          "type": "number"
                        },
                        "max": {
                          "type": "number"
                        },
                        "chains": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Only these brands count (rivals or your own), e.g. Burger King, Basic-Fit. Matched on Overture brand and name."
                        }
                      },
                      "required": [
                        "segment",
                        "within_m",
                        "max"
                      ]
                    }
                  },
                  "spending_per_resident_min": {
                    "type": "number",
                    "description": "Spending power a resident a year (EUR) within a 10-minute walk. Needs location data access."
                  },
                  "high_income_share_min": {
                    "type": "number",
                    "description": "% of households within a 10-minute walk with net income above 40,162 EUR a year. Needs location data access."
                  },
                  "age_shares_min": {
                    "type": "array",
                    "description": "Minimum % of residents within a 10-minute walk in an age band. Needs location data access.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "band": {
                          "type": "string",
                          "enum": [
                            "0_14",
                            "15_29",
                            "30_44",
                            "45_59",
                            "60p"
                          ]
                        },
                        "min_pct": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "band",
                        "min_pct"
                      ]
                    }
                  },
                  "meaning": {
                    "type": "string",
                    "description": "A wish no field holds, in any language; ranks results, never filters."
                  },
                  "sort": {
                    "type": "string",
                    "enum": [
                      "best",
                      "price_asc",
                      "price_desc",
                      "area_desc",
                      "footfall_desc",
                      "supply_gap"
                    ],
                    "description": "supply_gap ranks where residents per similar place is highest (residents within a 10-minute walk / (places within gap_radius_m, 600 m by default, + 1)); needs gap_segment or one competitors_near_max segment. Needs location data access; unscored properties go last."
                  },
                  "gap_segment": {
                    "type": "string",
                    "enum": [
                      "gym",
                      "burger",
                      "fast_food",
                      "coffee",
                      "bakery",
                      "pharmacy",
                      "supermarket",
                      "fashion",
                      "pizza"
                    ],
                    "description": "The business kind the supply_gap sort counts."
                  },
                  "gap_radius_m": {
                    "type": "integer",
                    "enum": [
                      300,
                      600
                    ],
                    "description": "Radius in metres in which the supply_gap sort counts similar places: 600 (default) or 300 (about a 5-minute walk). Only with sort supply_gap."
                  }
                }
              },
              "search_id": {
                "type": "string",
                "description": "A search_id from an earlier answer, with offset, stated_only or pins_only (and no brief, criteria or change): pages that search's stored matches. To change the criteria use refine_search."
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 200,
                "default": 10,
                "description": "Results a page, up to 200; above 50 check is off. With pins_only, pins a page, up to 2000 (default 10: send a limit)."
              },
              "cursor": {
                "type": "string",
                "description": "next_cursor from an earlier answer: returns that search's next page, same criteria and order. Send without brief, criteria or change."
              },
              "stated_only": {
                "type": "boolean",
                "description": "Only the matches that state every criterion (met). Matches with a criterion not stated or not met are left out of results and of page.total; counts keeps both totals. With search_id and no brief/criteria/change: pages that stored search."
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "description": "With search_id (no brief, criteria or change): the page of that stored search starting at this place in its ranked matches. Same order as its cursors."
              },
              "pins_only": {
                "type": "boolean",
                "default": false,
                "description": "With search_id or cursor: no results, only `pins` (id, lat, lon, precision, type, district, prices, area_m2) for up to 2000 matches a page, to draw a map. Needs no read-through and costs no results."
              },
              "check": {
                "type": "boolean",
                "default": true,
                "description": "Read the top results' text against the brief (adds a few seconds). Off above 50 results a page and on later pages."
              },
              "insights": {
                "type": "boolean",
                "default": false,
                "description": "Add `insights`, charts as data over every match, each with a one-sentence answer, its count, scope, source and date: per criterion how many matches meet it, leave it unsaid or contradict it (and how many would state everything without it); with one price limit, what it reaches among premises of this kind and place before the limit, else what the matches ask per m²; and where the matches are by district or town. Asking prices; each unit counted once."
              },
              "lang": {
                "type": "string",
                "enum": [
                  "en",
                  "de"
                ],
                "default": "en",
                "description": "Language of the text the answer writes (titles, notes, labels, reasons, error messages): en (default) or de (German). Place names, agency names, property titles and quotes from a property's own text stay as written."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/claro/search_premises"
        },
        {
          "name": "refine_search",
          "backend_name": "refine_search",
          "title": "Refine a search",
          "description": "Change part of an earlier search in plain words (\"bigger, at least 200 m²\", \"Barcelona too\", \"drop the corner\") and run it again, as a new search with its own search_id and pages. Uses the search_id from search_premises; searches are kept 24 hours. Results as search_premises gives them, location figures with `location_sources`. Up to 200 results a page (50 with a publishable key). `next_cursor` gets the next page: send it as `cursor` (alone, with `limit` if you like); the order is fixed when the search runs and stays the same for its 24 hours, so pages never repeat or skip a premises. `page` gives offset, limit and the total ranked. The read-through (`check`) runs only for pages of up to 50. `stated_only: true` pages through only the matches that state every criterion (those with a point not stated or not met are left out; `counts` still gives both totals, `page.total` the set being paged); send it with the first search, or with `search_id` to page a stored search's stated matches without searching again, and its `next_cursor` keeps it. `search_id` with `offset` (and no brief, criteria or change) returns that search's page from that place. `pins_only: true` with `search_id` (or a cursor) returns just each match's pin, `pins` (id, lat, lon, precision, plus type, district, rent and sale price, size and the day it was first listed, `listed_since`, each null when not stated), up to 2000 a page, for a map.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "search_id"
            ],
            "properties": {
              "search_id": {
                "type": "string",
                "description": "The search_id from search_premises or an earlier refine_search (kept 24 hours)."
              },
              "change": {
                "type": "string",
                "description": "What to change, in plain words. Required unless cursor is sent."
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 200,
                "default": 10,
                "description": "Results a page, up to 200; above 50 check is off."
              },
              "cursor": {
                "type": "string",
                "description": "next_cursor from an earlier answer: returns that search's next page, same criteria and order. Send without brief, criteria or change."
              },
              "stated_only": {
                "type": "boolean",
                "description": "Only the matches that state every criterion (met). Matches with a criterion not stated or not met are left out of results and of page.total; counts keeps both totals. With search_id and no brief/criteria/change: pages that stored search."
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "description": "With search_id (no brief, criteria or change): the page of that stored search starting at this place in its ranked matches. Same order as its cursors."
              },
              "check": {
                "type": "boolean",
                "default": true,
                "description": "Read the top results' text against the criteria for a fit verdict (adds a few seconds). Off above 50 results a page and on later pages."
              },
              "insights": {
                "type": "boolean",
                "default": false,
                "description": "Add `insights`, charts as data over every match, each with a one-sentence answer, its count, scope, source and date: per criterion how many matches meet it, leave it unsaid or contradict it (and how many would state everything without it); with one price limit, what it reaches among premises of this kind and place before the limit, else what the matches ask per m²; and where the matches are by district or town. Asking prices; each unit counted once."
              },
              "lang": {
                "type": "string",
                "enum": [
                  "en",
                  "de"
                ],
                "default": "en",
                "description": "Language of the text the answer writes (titles, notes, labels, reasons, error messages): en (default) or de (German). Place names, agency names, property titles and quotes from a property's own text stay as written."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/claro/refine_search"
        },
        {
          "name": "get_premises",
          "backend_name": "get_premises",
          "title": "Get one premises",
          "description": "One premises in full by the id a search returned: its data, facts read from its text with the sentence each came from (fact_sources), its coordinates (exact, or approximate: snapped to a ~500 m cell), location figures (with location access), an excerpt, up to 8 photos (`photos`: Casafari thumbnail URLs; search results carry the first 4, and `photo_source` names the advertiser and page they come from), and the agency (`agency.name`) with its own listing page as `agency.listing_url`, null when the agency has no page of its own (`agency_links` lists every agency's own page for the premises, earliest first; none is a property portal's). `energy` is the energy certificate as the ad advertises it, unverified: not checked against the official register (rating and emissions rating A to G, kWh/m² and kg CO2/m² a year, each null when not stated; null until read); `energy.official` is the regional register's certificate, only when it is matched on this unit and declares commercial use, with the register and the attribution its licence asks for (else null). `status` says whether it is still on the market. `timeline` gives when it was first listed (`listed_since`, `days_listed`) and, per live operation, the first and current asking price, the number of price cuts, the change in percent and the asking-price periods (`history`); null fields are not stated.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "A premises id (pm_...) from a search result."
              },
              "insights": {
                "type": "boolean",
                "default": false,
                "description": "Add `insights`, charts as data, each with a one-sentence answer, its count, scope, source and date: its asking price per m² against comparable premises nearby (same type, operation and district, half to twice its size), footfall by part of the day and where its location figures rank in the city (location access only), straight-line distances to businesses of each kind within 1 km (Overture Maps), other premises on the market within 500 m, and the monthly average asking price per m² of its type in its town over three years with the change in a year (Casafari Area Insights); `prices_here`, what active properties of its type ask per m² for rent and for sale in its district (then town, then province: the first with 10 priced units), quartiles from 10 and medians from 5, the town's rows beside it and medians by size band; `supply_flow`, from Claro's nightly count (`market_daily`, since 8 Oct 2026): units of its type and operation on the market in its town (or province) on the latest day, properties that came on and left over 30 days, and the median asking price per m² at both ends, with a note when fewer than 7 days are recorded; and `time_on_market`, the average days on the market by asking price band of properties of its type within 1 km (Casafari Area Insights; the ~500 m cell's centre when the address is hidden); and `similar`: up to six other active premises of the same type and operation, half to twice its size, within 1.5 km (from the ~500 m cell's centre for a hidden address), else its district, else its town, nearest first then closest in asking price per m², each with its id, one Casafari thumbnail and the agency's own listing page only (never a portal or a private seller). Asking prices, not agreed ones; each unit counted once. Also adds `nearby`, the map's layers: businesses of the tracked kinds within 500 m (Overture Maps; exact addresses only) and other premises on the market within 500 m as points, nearest first (a hidden address as the centre of its ~500 m cell), and the area a 5-minute walk reaches as GeoJSON MultiPolygon coordinates (location access and an exact address only). With location access and an exact address, `location_detail`: figures in groups (reach, residents, visitors, health_education, transport_parking, offices_hotels, retail_food), each with a stable key, label, value, unit, scope, source, date and a percentile in the city for figures stored for every property; the 10 nearest named places per kind with walking minutes (OpenStreetMap through Location Intelligence); and the 10-minute walk. A figure Location Intelligence does not have for the point is left out, never 0. With location access, `scorecard`: every location figure held for the premises (the stored location row, `location_detail`, `footfall_detail` and `access`), grouped as `location_detail` is, each with its scope, source and date and, for figures stored for every property, its percentile among premises of its type in the city (`city`) and in its district when 50 or more are measured there (`district`): the share with a lower figure, each unit once. Live figures carry no percentile and a note saying so; a 0 footfall or population is unknown and never ranked. `strongest` and `weakest` name the five row keys with the highest and lowest city percentiles."
              },
              "segments": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "gym",
                    "burger",
                    "fast_food",
                    "coffee",
                    "bakery",
                    "pharmacy",
                    "supermarket",
                    "fashion",
                    "pizza"
                  ]
                },
                "description": "Optional, with insights: the business kinds whose distances come first in the distances chart, usually the brief's competitors (for a coffee shop: coffee and bakery). Without it the chart keeps its default order."
              },
              "assessment": {
                "type": "boolean",
                "default": false,
                "description": "With insights: add `site_assessment` first, a site assessment written by Gemini from this premises' own figures only (its data, its facts with their quotes, the market and competition charts, and with location access the location figures and ranks): 3 to 5 summary sentences, strengths and watch-outs, and a verdict (strong, fair, weak, not_assessable) for quick-service restaurants, coffee and bakery, clinic and pharmacy, fitness, fashion and retail, and supermarket and convenience, each reason with the keys of the figures it rests on. Every number is checked against those figures and a sentence that fails is dropped (counted in `notes`); a missing figure is not stated, never a weakness. `scope` is with_location or listing_only. Stored per premises and inputs; the first request for new inputs waits for the model."
              },
              "lang": {
                "type": "string",
                "enum": [
                  "en",
                  "de"
                ],
                "default": "en",
                "description": "Language of the text the answer writes (titles, notes, labels, reasons, error messages): en (default) or de (German). Place names, agency names, property titles and quotes from a property's own text stay as written."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/claro/get_premises"
        },
        {
          "name": "compare_premises",
          "backend_name": "compare_premises",
          "title": "Compare premises",
          "description": "2 to 5 premises side by side, by the ids a search returned. Pass exactly the properties the user named or picked, no more: if they say \"compare the top ones\" without a number, pass the first 3 results.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "ids"
            ],
            "properties": {
              "ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "minItems": 2,
                "maxItems": 5,
                "description": "2 to 5 premises ids (pm_...) from search results: exactly those the user asked to compare (the top 3 when they give no number)."
              },
              "lang": {
                "type": "string",
                "enum": [
                  "en",
                  "de"
                ],
                "default": "en",
                "description": "Language of the text the answer writes (titles, notes, labels, reasons, error messages): en (default) or de (German). Place names, agency names, property titles and quotes from a property's own text stay as written."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/claro/compare_premises"
        },
        {
          "name": "market_snapshot",
          "backend_name": "market_snapshot",
          "title": "What premises ask in a place",
          "description": "What commercial premises of a kind ask in a place anywhere in Spain or Germany (one country per search; Spain unless Germany is asked), from every active property of that kind and place (each unit counted once): the asking price per m² as a distribution with its median and middle half, by size band, by district or town, and for one town or province the monthly average over three years with the change in a year, the properties on the market and their days on the market (Casafari Area Insights). Ask in plain words (question: \"what does retail rent for in Chamberí?\") or send criteria as data (place, types, operation, optional size range); other criteria are ignored. Asking prices, not agreed ones; at least 10 properties or no figures. Returns the criteria as understood and `insights`: charts as data, each with a one-sentence answer, its count, scope, source and date.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "question": {
                "type": "string",
                "description": "The question in plain words, any language: \"what do offices rent for in Valencia?\""
              },
              "criteria": {
                "type": "object",
                "additionalProperties": false,
                "description": "Criteria as data. Hard criteria (operation, cities, types, price, area) exclude properties outside them; the rest exclude only properties that state the opposite, and each result says which were met and which the property does not state.",
                "properties": {
                  "operation": {
                    "type": "string",
                    "enum": [
                      "rent",
                      "sale",
                      "either"
                    ]
                  },
                  "country": {
                    "type": "string",
                    "enum": [
                      "es",
                      "de"
                    ],
                    "description": "The one country the search is in: es (Spain, the default) or de (Germany). Cities and provinces are that country's; counts never mix countries."
                  },
                  "cities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Towns or cities in the search's country by name or slug (\"valencia\", \"Palma\"; with country de: \"München\", \"koln\"). Leave out for the whole country."
                  },
                  "provinces": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "a-coruna",
                        "alava",
                        "albacete",
                        "alicante",
                        "almeria",
                        "asturias",
                        "avila",
                        "badajoz",
                        "barcelona",
                        "burgos",
                        "caceres",
                        "cadiz",
                        "cantabria",
                        "castellon",
                        "ceuta",
                        "ciudad-real",
                        "cordoba",
                        "cuenca",
                        "girona",
                        "granada",
                        "guadalajara",
                        "guipuzcoa",
                        "huelva",
                        "huesca",
                        "islas-baleares",
                        "jaen",
                        "la-rioja",
                        "las-palmas",
                        "leon",
                        "lleida",
                        "lugo",
                        "madrid",
                        "malaga",
                        "melilla",
                        "murcia",
                        "navarra",
                        "ourense",
                        "palencia",
                        "pontevedra",
                        "salamanca",
                        "santa-cruz-de-tenerife",
                        "segovia",
                        "sevilla",
                        "soria",
                        "tarragona",
                        "teruel",
                        "toledo",
                        "valencia",
                        "valladolid",
                        "vizcaya",
                        "zamora",
                        "zaragoza",
                        "baden-wurttemberg",
                        "bayern",
                        "berlin",
                        "brandenburg",
                        "bremen",
                        "hamburg",
                        "hessen",
                        "mecklenburg-vorpommern",
                        "niedersachsen",
                        "nordrhein-westfalen",
                        "rheinland-pfalz",
                        "saarland",
                        "sachsen",
                        "sachsen-anhalt",
                        "schleswig-holstein",
                        "thuringen"
                      ]
                    },
                    "description": "Provinces in Spain, or Länder with country de (\"bayern\", \"nordrhein-westfalen\"); a property must be in one of them."
                  },
                  "districts": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Named districts or neighbourhoods in the cities (Centro, Malasaña, Chamberí, Eixample, Gràcia, Poblenou...). A property outside them is out; one that does not state its district stays, marked not stated."
                  },
                  "types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "hotel",
                        "retail",
                        "warehouse",
                        "industrial",
                        "office",
                        "other_commercial"
                      ]
                    }
                  },
                  "area_min": {
                    "type": "number"
                  },
                  "area_max": {
                    "type": "number"
                  },
                  "price_min": {
                    "type": "number",
                    "description": "EUR: a month for rent, the total for a sale; applies to each operation without its own rent_/sale_ limit."
                  },
                  "price_max": {
                    "type": "number"
                  },
                  "rent_price_min": {
                    "type": "number",
                    "description": "EUR a month; compared only with rents."
                  },
                  "rent_price_max": {
                    "type": "number",
                    "description": "EUR a month; compared only with rents. With sale_price_max, operation \"either\" keeps a property whose rent or sale price fits its own limit."
                  },
                  "sale_price_min": {
                    "type": "number",
                    "description": "EUR total; compared only with sale prices."
                  },
                  "sale_price_max": {
                    "type": "number"
                  },
                  "price_m2_min": {
                    "type": "number",
                    "description": "EUR per m² of the property's area (a month for rent); a property with no stated area is \"not stated\"."
                  },
                  "price_m2_max": {
                    "type": "number"
                  },
                  "rent_price_m2_min": {
                    "type": "number"
                  },
                  "rent_price_m2_max": {
                    "type": "number"
                  },
                  "sale_price_m2_min": {
                    "type": "number"
                  },
                  "sale_price_m2_max": {
                    "type": "number"
                  },
                  "street_level": {
                    "type": "boolean"
                  },
                  "frontage_min_m": {
                    "type": "number",
                    "description": "Facade length (fachada) in metres."
                  },
                  "frontage_max_m": {
                    "type": "number"
                  },
                  "floors_min": {
                    "type": "number",
                    "description": "Number of floors (plantas) the premises has."
                  },
                  "floors_max": {
                    "type": "number"
                  },
                  "ceiling_min_m": {
                    "type": "number"
                  },
                  "smoke_extraction": {
                    "type": "boolean"
                  },
                  "corner": {
                    "type": "boolean"
                  },
                  "shop_window": {
                    "type": "boolean"
                  },
                  "open_plan": {
                    "type": "boolean"
                  },
                  "step_free": {
                    "type": "boolean"
                  },
                  "loading_access": {
                    "type": "boolean"
                  },
                  "licence": {
                    "type": "string",
                    "enum": [
                      "food_service",
                      "retail",
                      "office",
                      "gym",
                      "none"
                    ]
                  },
                  "licence_activities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Activities its licence sentence must name, in Spanish or Catalan: cafetería, panadería, restaurante..."
                  },
                  "transfer_price_min": {
                    "type": "number",
                    "description": "Transfer fee (traspaso) in EUR; met when its stated range overlaps."
                  },
                  "transfer_price_max": {
                    "type": "number"
                  },
                  "business_transfer": {
                    "type": "boolean",
                    "description": "true: only business transfers (traspasos); false: none."
                  },
                  "business_types": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Uses its text says it suits, in English: restaurant, cafe, gym..."
                  },
                  "keywords": {
                    "type": "array",
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "description": "Groups of phrases; a property meets a group when its text holds any phrase. Write phrases as Spanish agencies do."
                  },
                  "exclude_keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Leave out properties whose text holds any of these."
                  },
                  "footfall_min": {
                    "type": "number",
                    "description": "Minimum footfall index within a 5-minute walk (an index of pedestrian activity that compares places; not a head count). Needs location data access."
                  },
                  "pop_walk10_min": {
                    "type": "number",
                    "description": "Residents within a 10-minute walk. Needs location data access."
                  },
                  "pop_drive10_min": {
                    "type": "number",
                    "description": "Residents within a 10-minute drive. Needs location data access."
                  },
                  "transit_min": {
                    "type": "number",
                    "description": "Stations and stops within a 5-minute walk. Needs location data access."
                  },
                  "competitors_max": {
                    "type": "array",
                    "description": "At most this many places of a kind within a 5-minute walk (gyms: 10). Needs location data access.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "restaurants",
                            "fast_food",
                            "cafes",
                            "shops",
                            "supermarkets",
                            "gyms"
                          ]
                        },
                        "max": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "kind",
                        "max"
                      ]
                    }
                  },
                  "own_stores_away_m": {
                    "type": "number",
                    "description": "No store from your own list (upload it with PUT /v1/stores) within this many metres of the premises, straight-line, 1-1,000. Needs an exact pin."
                  },
                  "competitors_near_max": {
                    "type": "array",
                    "description": "At most `max` businesses of a segment (or of the named `chains`) within `within_m` straight-line metres (1-1,000), from Overture Maps places. A property with an approximate pin gets no verdict.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "segment": {
                          "type": "string",
                          "enum": [
                            "gym",
                            "burger",
                            "fast_food",
                            "coffee",
                            "bakery",
                            "pharmacy",
                            "supermarket",
                            "fashion",
                            "pizza"
                          ]
                        },
                        "within_m": {
                          "type": "number"
                        },
                        "max": {
                          "type": "number"
                        },
                        "chains": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Only these brands count (rivals or your own), e.g. Burger King, Basic-Fit. Matched on Overture brand and name."
                        }
                      },
                      "required": [
                        "segment",
                        "within_m",
                        "max"
                      ]
                    }
                  },
                  "spending_per_resident_min": {
                    "type": "number",
                    "description": "Spending power a resident a year (EUR) within a 10-minute walk. Needs location data access."
                  },
                  "high_income_share_min": {
                    "type": "number",
                    "description": "% of households within a 10-minute walk with net income above 40,162 EUR a year. Needs location data access."
                  },
                  "age_shares_min": {
                    "type": "array",
                    "description": "Minimum % of residents within a 10-minute walk in an age band. Needs location data access.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "band": {
                          "type": "string",
                          "enum": [
                            "0_14",
                            "15_29",
                            "30_44",
                            "45_59",
                            "60p"
                          ]
                        },
                        "min_pct": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "band",
                        "min_pct"
                      ]
                    }
                  },
                  "meaning": {
                    "type": "string",
                    "description": "A wish no field holds, in any language; ranks results, never filters."
                  },
                  "sort": {
                    "type": "string",
                    "enum": [
                      "best",
                      "price_asc",
                      "price_desc",
                      "area_desc",
                      "footfall_desc",
                      "supply_gap"
                    ],
                    "description": "supply_gap ranks where residents per similar place is highest (residents within a 10-minute walk / (places within gap_radius_m, 600 m by default, + 1)); needs gap_segment or one competitors_near_max segment. Needs location data access; unscored properties go last."
                  },
                  "gap_segment": {
                    "type": "string",
                    "enum": [
                      "gym",
                      "burger",
                      "fast_food",
                      "coffee",
                      "bakery",
                      "pharmacy",
                      "supermarket",
                      "fashion",
                      "pizza"
                    ],
                    "description": "The business kind the supply_gap sort counts."
                  },
                  "gap_radius_m": {
                    "type": "integer",
                    "enum": [
                      300,
                      600
                    ],
                    "description": "Radius in metres in which the supply_gap sort counts similar places: 600 (default) or 300 (about a 5-minute walk). Only with sort supply_gap."
                  }
                }
              },
              "lang": {
                "type": "string",
                "enum": [
                  "en",
                  "de"
                ],
                "default": "en",
                "description": "Language of the text the answer writes (titles, notes, labels, reasons, error messages): en (default) or de (German). Place names, agency names, property titles and quotes from a property's own text stay as written."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/claro/market_snapshot"
        },
        {
          "name": "explain_location",
          "backend_name": "explain_location",
          "title": "Location figures",
          "description": "Footfall index (an index of pedestrian activity within a 5-minute walk that compares places with each other; not a head count, never people or visitors a day; split into weekday and weekend averages, morning/lunch/afternoon/evening and local/commuter/tourist shares of the index), residents within a 10-minute walk and drive (by age band 0-14, 15-29, 30-44, 45-59, 60+, with households, households per net income quintile and total spending power within a 10-minute walk), and nearby restaurants, fast food, cafes, shops, supermarkets, gyms and transit stops, for a premises id or any point (lat, lon) in Spain. Needs location data access on your account; a point that is not a premises is a live call on your account's location key (about 31 Location Intelligence operations per point). Returns `location` and `location_sources`: the same public field names, units and source notes as search_premises and get_premises (a 0 footfall or population is unknown, so null). `figures` is deprecated: same values as `location` under stored names; will be removed in a future version. A figure Location Intelligence has no data for is null, never 0.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "string",
                "description": "A premises id (pm_...) from a search; returns its stored figures, or measures its point when none are stored. Send id, or lat and lon."
              },
              "lat": {
                "type": "number",
                "description": "Latitude in degrees of a point in Spain; send with lon instead of id."
              },
              "lon": {
                "type": "number",
                "description": "Longitude in degrees of a point in Spain; send with lat instead of id."
              },
              "lang": {
                "type": "string",
                "enum": [
                  "en",
                  "de"
                ],
                "default": "en",
                "description": "Language of the text the answer writes (titles, notes, labels, reasons, error messages): en (default) or de (German). Place names, agency names, property titles and quotes from a property's own text stay as written."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/claro/explain_location"
        },
        {
          "name": "brief_from_file",
          "backend_name": "brief_from_file",
          "title": "Read a brief from a file",
          "description": "The premises requirements a file states (a site brief, a location profile, a requirements sheet): a PDF, a photo or scan (JPG, PNG, WebP, HEIC), a Word, Excel or PowerPoint file (or OpenDocument), or text, sent as base64 in `content_base64` with its `media_type` and, best, its `filename`. Up to 10 MB. Accepted: .pdf,.jpg,.jpeg,.png,.webp,.heic,.heif,.txt,.md,.csv,.tsv,.html,.htm,.rtf,.json,.xml,.docx,.xlsx,.pptx,.odt,.ods,.odp. Returns `brief` (the requirements in plain words), `requirements` (each with the file's own words as `quote`) and `quotes_checked` (true for Office and text files, where a requirement whose quote is not in the text is dropped; false for PDFs and images). It only reads the file: nothing is searched. The file is not stored.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "content_base64",
              "media_type"
            ],
            "properties": {
              "content_base64": {
                "type": "string",
                "description": "The file's bytes, base64."
              },
              "media_type": {
                "type": "string",
                "description": "The file's media type, e.g. application/pdf, image/jpeg, text/plain, application/vnd.openxmlformats-officedocument.wordprocessingml.document."
              },
              "filename": {
                "type": "string",
                "description": "The file's name with its extension, e.g. perfil.docx."
              }
            }
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/claro/brief_from_file"
        },
        {
          "name": "search_plots",
          "backend_name": "search_plots",
          "title": "Search commercial plots (Germany)",
          "description": "Find plots of land for sale or rent in Germany for a commercial building, from Casafari's property graph. Plots only, never premises: counts and results come from a separate set, one result per plot however many agencies advertise it (the others in also_listed_by). Criteria are data: Länder (regions), municipalities, postcodes, plot type, operation, plot area, sale price and price per m², keywords in the property's own words, and `commercial_use`, how far the property's own text says a commercial building can go on the plot. Levels: zoned_commercial (GE, GI, MK, MU stated), zoned_mixed_or_special (MI, SO, MD stated: check the plan), commercial_use_stated (commercial use stated as allowed or suitable, no class: read the quote), building_land_use_not_stated, residential_only_stated, zoned_leisure_special (SO for recreation), not_building_land_stated, not_stated. The default is the first three; send \"all\" or any list to widen it. Each result gives its level with the quote it rests on and, for a stated class, zoning_source (a Flächennutzungsplan is not binding), the facts read from the text (zoning class, serviced, B-Plan, §34/§35, building permit, GRZ, GFZ), an excerpt and the agency (`agency.name`) with its own page as `agency.listing_url`, null when it has none (never a property portal's page). Keywords are read in each plot's own text: a plot matches only where a sentence states the words without denying them (\"KEIN Erbbaurecht!\" is no match for Erbbaurecht), and each result gives that sentence per keyword in keyword_matches (evidence, and the words as written in matched); exclude_keywords leaves out a plot that states any of its words, never one that only denies them. The level is what the property's text says, not a zoning check; coordinates are approximate.",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "criteria": {
                "type": "object",
                "additionalProperties": false,
                "description": "Criteria as data, every field optional (leave out or send {} for all plots): regions, municipalities, zipcodes, plot_types, operation, plot_area_min, plot_area_max, sale_price_min, sale_price_max, sale_price_m2_max, commercial_use, serviced, keywords, exclude_keywords.",
                "properties": {
                  "regions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Länder by name or slug: \"Bayern\", \"nordrhein-westfalen\"."
                  },
                  "municipalities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Towns or cities as the property's data names them: \"München\", \"Leipzig\"."
                  },
                  "zipcodes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Postcodes or their first digits: \"80331\", \"04\"."
                  },
                  "plot_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "building_plot",
                        "rural_plot"
                      ]
                    },
                    "description": "building_plot (Grundstück) or rural_plot (agricultural, forest and other land)."
                  },
                  "operation": {
                    "type": "string",
                    "enum": [
                      "sale",
                      "rent",
                      "either"
                    ],
                    "description": "For sale, for rent, or either (default either)."
                  },
                  "plot_area_min": {
                    "type": "number",
                    "description": "m²; a plot that states no area is out."
                  },
                  "plot_area_max": {
                    "type": "number",
                    "description": "m²; largest plot area."
                  },
                  "sale_price_min": {
                    "type": "number",
                    "description": "EUR total."
                  },
                  "sale_price_max": {
                    "type": "number",
                    "description": "EUR total; a plot that states no price is out."
                  },
                  "sale_price_m2_max": {
                    "type": "number",
                    "description": "EUR per m² of plot area."
                  },
                  "commercial_use": {
                    "oneOf": [
                      {
                        "type": "string",
                        "enum": [
                          "all"
                        ]
                      },
                      {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "zoned_commercial",
                            "zoned_mixed_or_special",
                            "commercial_use_stated",
                            "building_land_use_not_stated",
                            "residential_only_stated",
                            "zoned_leisure_special",
                            "not_building_land_stated",
                            "not_stated"
                          ]
                        }
                      }
                    ],
                    "description": "Levels to keep; default zoned_commercial, zoned_mixed_or_special, commercial_use_stated."
                  },
                  "serviced": {
                    "type": "boolean",
                    "description": "true: drop plots whose text says they are not serviced (unerschlossen); plots that do not say stay."
                  },
                  "keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Words or phrases the property's text must state, all of them, as whole words: \"Gleisanschluss\", \"Erbbaurecht\". A mention the text denies (kein, keine, nicht, ohne, nie, weder before it; nicht, nie, nein, ausgeschlossen right after) does not count; the sentence that states each is in keyword_matches."
                  },
                  "exclude_keywords": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Leave out plots whose text states any of these. A plot that only denies one stays: exclude \"Erbbaurecht\" keeps a plot saying \"kein Erbbaurecht\"."
                  }
                }
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50,
                "default": 20,
                "description": "Results per page."
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "default": 0,
                "description": "Results to skip, for the next page."
              },
              "sort": {
                "type": "string",
                "enum": [
                  "commercial_use",
                  "newest",
                  "price_asc",
                  "area_desc",
                  "price_m2_asc"
                ],
                "default": "commercial_use",
                "description": "commercial_use: strongest commercial-use level first; newest: latest on the market; price_asc: lowest sale price; area_desc: largest plot; price_m2_asc: lowest sale price per m²."
              },
              "lang": {
                "type": "string",
                "enum": [
                  "en",
                  "de"
                ],
                "default": "en",
                "description": "Language of the text the answer writes (titles, notes, labels, reasons, error messages): en (default) or de (German). Place names, agency names, property titles and quotes from a property's own text stay as written."
              }
            }
          },
          "scope": "Germany, commercial plots",
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/claro/search_plots"
        },
        {
          "name": "get_plot",
          "backend_name": "get_plot",
          "title": "Get one plot (Germany)",
          "description": "One plot in full by the id search_plots returned: its data, commercial-use level, the facts read from its text with the quote each came from (fact_sources), an excerpt, the agency's own page as `agency.listing_url` (null when it has none; never a property portal's page) and the other agencies advertising it (also_listed_by, each with its own page or null).",
          "inputSchema": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "A plot id (pm_...) from a search_plots result."
              },
              "lang": {
                "type": "string",
                "enum": [
                  "en",
                  "de"
                ],
                "default": "en",
                "description": "Language of the text the answer writes (titles, notes, labels, reasons, error messages): en (default) or de (German). Place names, agency names, property titles and quotes from a property's own text stay as written."
              }
            }
          },
          "scope": "Germany, commercial plots",
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false
          },
          "docs": "/docs/claro/get_plot"
        }
      ]
    }
  ]
}