{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "flatin.pt",
    "site": "flatin.pt",
    "addresses": [
      {
        "address": "172.67.177.133",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "104.21.59.130",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "prefix": "104.21.32.0/19",
          "country": "US",
          "name": "CLOUDFLARENET - Cloudflare, Inc."
        }
      },
      {
        "address": "2606:4700:3036::ac43:b185",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      },
      {
        "address": "2606:4700:3032::6815:3b82",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "172.67.177.133",
          "104.21.59.130",
          "2606:4700:3036::ac43:b185",
          "2606:4700:3032::6815:3b82"
        ],
        "first_seen": "2026-11-23T22:42:00.907Z",
        "last_seen": "2026-11-23T22:42:00.907Z",
        "checks": 1
      },
      {
        "addresses": [
          "104.21.59.130",
          "172.67.177.133",
          "2606:4700:3032::6815:3b82",
          "2606:4700:3036::ac43:b185"
        ],
        "first_seen": "2026-11-21T19:25:03.945Z",
        "last_seen": "2026-11-22T22:41:01.574Z",
        "checks": 2
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "flatin-pt",
      "version": "3.0.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare",
      "strict-transport-security": "max-age=15552000",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 0,
      "sample": []
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "pt.flatin",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://gitlab.com/flatin-pt-group/mcp",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "45747",
    "server_name": "pt.flatin/property-taxes",
    "url": "https://flatin.pt/mcp",
    "host": "flatin.pt",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T22:42:00.907Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "94e673fe4accb6c3d607805e804ac3b672dcbb6b7ec65685c7f8493890d6679a",
    "first_listed_at": "2026-11-21T19:25:03.945Z",
    "created_at": "2026-11-21T13:15:04.148Z",
    "resolved_addresses": [
      "172.67.177.133",
      "104.21.59.130",
      "2606:4700:3036::ac43:b185",
      "2606:4700:3032::6815:3b82"
    ]
  },
  "server": {
    "name": "pt.flatin/property-taxes",
    "title": "flatin.pt — Portuguese homes: new-builds, places, taxes",
    "description": "Portugal home buying: new-build search, where-to-live guides, municipality data, IMT/IMI taxes",
    "version": "3.0.0",
    "registry_status": "active",
    "repository_url": "https://gitlab.com/flatin-pt-group/mcp",
    "website_url": "https://flatin.pt/en/tools/api-and-data/",
    "published_at": "2026-11-08T12:42:13.274Z",
    "updated_at": "2026-11-08T12:42:13.274Z",
    "first_seen": "2026-11-21T13:15:03.052Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:56:12.088Z"
  },
  "operator": {
    "key": "flatin.pt",
    "name": "flatin.pt",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 993,
    "first_check_in_window": "2026-11-21T19:25:03.945Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "94e673fe4accb6c3d607805e804ac3b672dcbb6b7ec65685c7f8493890d6679a",
    "tools": 15,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-21T19:25:04.977Z",
    "tool_names": [
      "imt_calculate",
      "required_income",
      "imi_rate",
      "imi_annual_cost",
      "request_consultation",
      "submit_consultation",
      "subscribe_digest",
      "where_to_live",
      "municipality_stats",
      "compare_municipalities",
      "construction_barometer",
      "municipality_housing_pipeline",
      "glossary_lookup",
      "search_newbuilds",
      "get_newbuild"
    ],
    "declared": {
      "tools": [
        {
          "name": "imt_calculate",
          "title": "Calculate IMT and stamp duty on a home purchase",
          "description": "Use this when asked what a home purchase in Portugal costs on top of the price: IMT, stamp duty and Casa Pronta registration, by the 2026 tables. Do not use it for the yearly property tax (`imi_annual_cost`) or to define a term such as VPT (`glossary_lookup`). Both taxes are charged on the higher of `value` and `vpt`: pass the VPT when known. `tax_haven_company` takes precedence over `non_resident`. `buyer_is_young` applies only when `primary_home` is true. For a non-resident buyer the answer says what the Tax Authority annuls later on request.",
          "inputSchema": {
            "type": "object",
            "required": [
              "value"
            ],
            "properties": {
              "vpt": {
                "type": "string",
                "examples": [
                  "180000"
                ],
                "description": "Optional. The VPT (valor patrimonial tributário) from the caderneta predial, in euros. IMT and stamp duty are charged on the higher of the price and the VPT (CIMT art. 12.º n.º 1), so pass it when it is known"
              },
              "value": {
                "type": "string",
                "examples": [
                  "250000",
                  "250000.50",
                  "250.000"
                ],
                "description": "Purchase price as written in the contract, in euros; a dot or a space may group thousands (250.000)"
              },
              "territory": {
                "enum": [
                  "continente",
                  "regioes_autonomas"
                ],
                "type": "string",
                "default": "continente",
                "description": "Mainland Portugal (continente) or the Azores and Madeira (regioes_autonomas), which have their own IMT tables"
              },
              "non_resident": {
                "type": "boolean",
                "default": false,
                "description": "The buyer is not and has never been tax resident in Portugal. IMT is then a flat rate with no exemption or reduction — no zero band, no young buyers' table, no stamp duty deduction (CIMT art. 17.º n.º 10); the result says what the Tax Authority annuls on request if the buyer becomes tax resident or lets the home at a moderate rent. A buyer who has already been treated as tax resident pays by the tables: leave it false"
              },
              "primary_home": {
                "type": "boolean",
                "default": true,
                "description": "The buyer's own permanent home (habitação própria e permanente); false for a second home or an investment, which has no zero band"
              },
              "buyer_is_young": {
                "type": "boolean",
                "default": false,
                "description": "The buyer is 35 or under on the date of the deed, is buying their first own permanent home, is not an IRS dependant and has owned no residential property in the previous three years. Applies the reduced IMT table and the stamp duty deduction (art. 7.º-A Código do Imposto do Selo; not applied above the second band of the young buyers' table). Only applies when primary_home is true; with primary_home false it is ignored"
              },
              "tax_haven_company": {
                "type": "boolean",
                "default": false,
                "description": "The buyer is a company or other entity with its tax domicile in a country, territory or region on the Portuguese list of more favourable tax regimes, or controlled directly or indirectly by such an entity. IMT is then 10 % with no exemption or reduction (CIMT art. 17.º n.º 4), whether or not it is resident, and it overrides non_resident. Never true for an individual (n.º 7)"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "input",
                  "imt_regime",
                  "annullable",
                  "taxable_value_cents",
                  "taxable_base",
                  "imt_cents",
                  "stamp_duty_cents",
                  "stamp_duty_relief_cents",
                  "notary_estimate_cents",
                  "total_cents",
                  "formatted",
                  "notes",
                  "attribution",
                  "deed_source"
                ],
                "properties": {
                  "input": {
                    "type": "object"
                  },
                  "notes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "formatted": {
                    "type": "object"
                  },
                  "imt_cents": {
                    "type": "integer",
                    "description": "Euro cents (integer)"
                  },
                  "annullable": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "imt_regime": {
                    "type": "string",
                    "description": "Which IMT rule was applied"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "deed_source": {
                    "type": "object"
                  },
                  "total_cents": {
                    "type": "integer",
                    "description": "Euro cents on top of the price"
                  },
                  "taxable_base": {
                    "type": "string"
                  },
                  "stamp_duty_cents": {
                    "type": "integer",
                    "description": "Euro cents, after relief"
                  },
                  "taxable_value_cents": {
                    "type": "integer",
                    "description": "Euro cents: the higher of price and VPT"
                  },
                  "notary_estimate_cents": {
                    "type": "integer",
                    "description": "Euro cents: Casa Pronta registration price"
                  },
                  "stamp_duty_relief_cents": {
                    "type": "integer",
                    "description": "Euro cents (integer)"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "field": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "message": {
                    "type": "string"
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Calculate IMT and stamp duty on a home purchase",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "required_income",
          "title": "Income and savings needed to buy a home at a price",
          "description": "Use this when asked what net monthly income and savings it takes to buy a home in Portugal at a given price, under the Banco de Portugal rules. Do not use it for the purchase taxes alone (`imt_calculate`).",
          "inputSchema": {
            "type": "object",
            "required": [
              "price"
            ],
            "properties": {
              "price": {
                "type": "string",
                "examples": [
                  "250000",
                  "385000.50"
                ],
                "description": "Price of the home in euros; a dot or a space may group thousands (250.000). Fixed scenario: buyer aged 30, own permanent home, 40-year loan, 10 % deposit, IMT Jovem, market rate"
              },
              "territory": {
                "enum": [
                  "continente",
                  "regioes_autonomas"
                ],
                "type": "string",
                "default": "continente",
                "description": "Mainland Portugal (continente) or the Azores and Madeira (regioes_autonomas), which have their own IMT tables"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "price_cents",
                  "territory",
                  "min_net_monthly_income_cents",
                  "savings_needed_cents",
                  "monthly_cents",
                  "scenario",
                  "rate",
                  "rules_provenance",
                  "formatted",
                  "attribution"
                ],
                "properties": {
                  "rate": {
                    "type": "object"
                  },
                  "scenario": {
                    "type": "object"
                  },
                  "formatted": {
                    "type": "object"
                  },
                  "territory": {
                    "type": "string"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "price_cents": {
                    "type": "integer",
                    "description": "Euro cents (integer)"
                  },
                  "monthly_cents": {
                    "type": "integer",
                    "description": "Euro cents: monthly payment"
                  },
                  "rules_provenance": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "savings_needed_cents": {
                    "type": "integer",
                    "description": "Euro cents: deposit, taxes, registration, loan stamp"
                  },
                  "min_net_monthly_income_cents": {
                    "type": "integer",
                    "description": "Euro cents: minimum NET monthly income of the borrowers"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "field": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "message": {
                    "type": "string"
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Income and savings needed to buy a home at a price",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "imi_rate",
          "title": "Look up the IMI rate of a municipality",
          "description": "Use this when only the yearly IMI (municipal property tax) rate of one Portuguese municipality is needed, by name or code, with its history by year. Do not use it for the yearly amount on a VPT (`imi_annual_cost`) or for several municipalities side by side (`compare_municipalities`). Rates: Autoridade Tributária portal, all 308 municipalities. Where the rate is set per parish, the answer says so instead of giving a number.",
          "inputSchema": {
            "type": "object",
            "required": [
              "municipality"
            ],
            "properties": {
              "municipality": {
                "type": "string",
                "examples": [
                  "Porto",
                  "Lisbon",
                  "1312"
                ],
                "description": "Municipality name (Porto, Lisboa or Lisbon, Vila Nova de Gaia) or its four-digit code (1312)"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "codigo",
                  "municipality",
                  "distrito",
                  "urban",
                  "rural",
                  "year",
                  "history",
                  "attribution"
                ],
                "properties": {
                  "year": {
                    "type": "integer"
                  },
                  "rural": {
                    "type": "object"
                  },
                  "urban": {
                    "type": "object"
                  },
                  "codigo": {
                    "type": "string",
                    "description": "Four-digit Tax Authority code"
                  },
                  "history": {
                    "type": "object"
                  },
                  "distrito": {
                    "type": "string"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "municipality": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "description": "Refusal (isError: true). `error` is a machine code (not_found, bad_*, tool_failed…), `message` says what to fix."
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Look up the IMI rate of a municipality",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "imi_annual_cost",
          "title": "Calculate the yearly IMI from the taxable value",
          "description": "Use this when the yearly IMI amount on an urban property (prédio urbano) is needed, from its taxable value (VPT) and its municipality's urban rate. Do not use it for the rate alone (`imi_rate`) or for the one-off purchase taxes (`imt_calculate`). The VPT is the Tax Authority's valuation on the caderneta predial, not the price: ask the user for it. Only the urban rate is applied; rural property, AIMI and surcharges on vacant homes are not calculated. A municipality whose rate is set per parish is refused (rate_by_freguesia).",
          "inputSchema": {
            "type": "object",
            "required": [
              "municipality",
              "vpt"
            ],
            "properties": {
              "vpt": {
                "type": "string",
                "examples": [
                  "150000",
                  "92.540,37"
                ],
                "description": "Valor Patrimonial Tributário — the taxable value of the property in euros, from the caderneta predial. Not the purchase price"
              },
              "municipality": {
                "type": "string",
                "examples": [
                  "Porto",
                  "Lisbon",
                  "1312"
                ],
                "description": "Municipality name (Porto, Lisboa or Lisbon, Vila Nova de Gaia) or its four-digit code (1312)"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "codigo",
                  "municipality",
                  "distrito",
                  "urban",
                  "rural",
                  "year",
                  "history",
                  "attribution",
                  "vpt_cents",
                  "annual_cents"
                ],
                "properties": {
                  "year": {
                    "type": "integer"
                  },
                  "rural": {
                    "type": "object"
                  },
                  "urban": {
                    "type": "object"
                  },
                  "codigo": {
                    "type": "string",
                    "description": "Four-digit Tax Authority code"
                  },
                  "history": {
                    "type": "object"
                  },
                  "distrito": {
                    "type": "string"
                  },
                  "vpt_cents": {
                    "type": "integer",
                    "description": "Euro cents: the VPT given"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "annual_cents": {
                    "type": "integer",
                    "description": "Euro cents: yearly IMI"
                  },
                  "municipality": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "codigo",
                  "municipality",
                  "distrito",
                  "urban",
                  "rural",
                  "year",
                  "history",
                  "attribution",
                  "error"
                ],
                "properties": {
                  "year": {
                    "type": "integer"
                  },
                  "error": {
                    "type": "string"
                  },
                  "rural": {
                    "type": "object"
                  },
                  "urban": {
                    "type": "object"
                  },
                  "codigo": {
                    "type": "string",
                    "description": "Four-digit Tax Authority code"
                  },
                  "history": {
                    "type": "object"
                  },
                  "distrito": {
                    "type": "string"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "municipality": {
                    "type": "string"
                  }
                },
                "description": "Refusal rate_by_freguesia: the municipality's rate row, no yearly sum."
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "description": "Refusal (isError: true). `error` is a machine code (not_found, bad_*, tool_failed…), `message` says what to fix."
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Calculate the yearly IMI from the taxable value",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "request_consultation",
          "title": "Prepare a request to flatin.pt, a licensed estate agency",
          "description": "Use this when the person wants flatin.pt (licensed estate agency, AMI 28163) to contact them about buying a new-build apartment in Portugal. Do not use it to send the request (`submit_consultation`) or for emails about new projects (`subscribe_digest`). mode=link returns the form link and the consent text; mode=prepare checks the details and returns a summary, the GDPR (RGPD) consent text and a confirmation_token. Nothing is sent.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "city": {
                "type": "string",
                "examples": [
                  "Porto"
                ],
                "description": "Older name for places: one place. Merged with places, city first"
              },
              "mode": {
                "enum": [
                  "link",
                  "prepare"
                ],
                "type": "string",
                "default": "link",
                "description": "link: only the form link and the consent text. prepare: check the details, get a summary, the consent text and a confirmation_token for submit_consultation; nothing is sent"
              },
              "name": {
                "type": "string",
                "examples": [
                  "Maria Silva"
                ],
                "maxLength": 120,
                "description": "The person's name"
              },
              "email": {
                "type": "string",
                "format": "email",
                "examples": [
                  "maria@example.com"
                ],
                "description": "Only if the person gives no phone"
              },
              "phone": {
                "type": "string",
                "examples": [
                  "+351 912 345 678"
                ],
                "description": "Phone in international format. Preferred over email"
              },
              "budget": {
                "type": "integer",
                "deprecated": true,
                "description": "Deprecated: use budget_max. Read as budget_max when budget_min and budget_max are both empty"
              },
              "client": {
                "type": "string",
                "examples": [
                  "claude.ai",
                  "chatgpt.com"
                ],
                "description": "Optional. Your app's host or name: recorded as the request's source"
              },
              "intent": {
                "enum": [
                  "info",
                  "callback",
                  "visit",
                  "reserve",
                  "notify"
                ],
                "type": "string",
                "description": "Optional. visit and reserve only with a project on sale, notify only with a project not yet on sale"
              },
              "places": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "examples": [
                  [
                    "Porto",
                    "Matosinhos"
                  ]
                ],
                "maxItems": 20,
                "description": "Where the person wants to buy: municipalities in Portugal (Lisboa or Lisbon) or districts, most important first. At least one place, unless project is given (the project's municipality comes first then)"
              },
              "channel": {
                "enum": [
                  "whatsapp",
                  "telegram",
                  "call"
                ],
                "type": "string",
                "description": "How the person wants to be contacted on that phone"
              },
              "message": {
                "type": "string",
                "examples": [
                  "Close to the metro, with a balcony"
                ],
                "maxLength": 2000,
                "description": "Optional. The person's own words"
              },
              "project": {
                "type": "string",
                "description": "Optional. Slug of the development the request is about: the slug field of search_newbuilds"
              },
              "language": {
                "enum": [
                  "pt",
                  "en",
                  "ru",
                  "ua",
                  "de",
                  "fr",
                  "nl",
                  "uk"
                ],
                "type": "string",
                "default": "en",
                "description": "The person's language: the consent text, the emails and the page links come in it. Another value is refused, except in mode=link, which falls back to English. uk is accepted as ua."
              },
              "typology": {
                "type": "array",
                "items": {
                  "enum": [
                    "T0",
                    "T1",
                    "T2",
                    "T3",
                    "T4+"
                  ],
                  "type": "string"
                },
                "description": "Optional. Bedroom counts wanted (T2 = two bedrooms)"
              },
              "deal_type": {
                "type": "string",
                "examples": [
                  "buy"
                ],
                "deprecated": true,
                "description": "Deprecated and ignored: every request is to buy"
              },
              "budget_max": {
                "type": "integer",
                "examples": [
                  400000
                ],
                "description": "Optional. Upper end of the budget in whole euros; if lower than budget_min, the two are swapped"
              },
              "budget_min": {
                "type": "integer",
                "examples": [
                  250000
                ],
                "description": "Optional. Lower end of the budget in whole euros"
              },
              "budget_band": {
                "type": "string",
                "examples": [
                  "250-400k"
                ],
                "deprecated": true,
                "description": "Deprecated: use budget_min and budget_max. An old band (0-250k, 250-400k, 400-600k, 600k+), read as its range when both are empty"
              },
              "property_type": {
                "type": "string",
                "examples": [
                  "apartment"
                ],
                "deprecated": true,
                "description": "Deprecated and ignored: every request is for a new-build apartment"
              },
              "preferred_time": {
                "type": "string",
                "examples": [
                  "weekday mornings"
                ],
                "maxLength": 120,
                "description": "Optional, with intent=visit: when suits the person"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "mode",
                  "form_url",
                  "consent_text",
                  "consent_text_version",
                  "consent_language",
                  "consent_version",
                  "what_happens_next",
                  "language",
                  "attribution"
                ],
                "properties": {
                  "mode": {
                    "type": "string"
                  },
                  "form_url": {
                    "type": "string",
                    "description": "Absolute URL"
                  },
                  "language": {
                    "type": "string"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "consent_text": {
                    "type": "string"
                  },
                  "consent_version": {
                    "type": "string",
                    "description": "Same as consent_text_version"
                  },
                  "consent_language": {
                    "type": "string"
                  },
                  "what_happens_next": {
                    "type": "string"
                  },
                  "consent_text_version": {
                    "type": "string"
                  }
                },
                "description": "mode=link: the form link and the consent text; nothing is sent."
              },
              {
                "type": "object",
                "required": [
                  "mode",
                  "summary",
                  "consent_text",
                  "consent_text_version",
                  "consent_language",
                  "confirmation_token",
                  "expires_in_seconds",
                  "what_happens_next"
                ],
                "properties": {
                  "mode": {
                    "type": "string"
                  },
                  "summary": {
                    "type": "object"
                  },
                  "consent_text": {
                    "type": "string"
                  },
                  "consent_language": {
                    "type": "string"
                  },
                  "what_happens_next": {
                    "type": "string"
                  },
                  "confirmation_token": {
                    "type": "string"
                  },
                  "expires_in_seconds": {
                    "type": "integer"
                  },
                  "consent_text_version": {
                    "type": "string"
                  }
                },
                "description": "mode=prepare: summary, consent text and token; nothing is sent."
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "field": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "message": {
                    "type": "string"
                  },
                  "problems": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "consent_text": {
                    "type": "string"
                  },
                  "consent_language": {
                    "type": "string"
                  },
                  "retry_after_seconds": {
                    "type": "integer"
                  },
                  "consent_text_version": {
                    "type": "string"
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Prepare a request to flatin.pt, a licensed estate agency",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "submit_consultation",
          "title": "Send a prepared request to flatin.pt",
          "description": "Use this when the person has read the summary and consent text from `request_consultation` mode=prepare and explicitly agreed to send the request. Do not use it before that (`request_consultation`). Pass the same details, the token, consent=true and consent_text_version; never set consent=true on your own. Changed details, a token under 5 seconds or over 30 minutes old, or an outdated consent version are refused.",
          "inputSchema": {
            "type": "object",
            "required": [
              "confirmation_token",
              "consent",
              "consent_text_version"
            ],
            "properties": {
              "city": {
                "type": "string",
                "description": "As in prepare"
              },
              "name": {
                "type": "string",
                "description": "As in prepare"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "As in prepare"
              },
              "phone": {
                "type": "string",
                "description": "As in prepare"
              },
              "budget": {
                "type": "integer",
                "deprecated": true,
                "description": "As in prepare"
              },
              "client": {
                "type": "string",
                "description": "As in prepare"
              },
              "intent": {
                "enum": [
                  "info",
                  "callback",
                  "visit",
                  "reserve",
                  "notify"
                ],
                "type": "string",
                "description": "As in prepare"
              },
              "places": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "As in prepare"
              },
              "channel": {
                "enum": [
                  "whatsapp",
                  "telegram",
                  "call"
                ],
                "type": "string",
                "description": "As in prepare"
              },
              "consent": {
                "type": "boolean",
                "description": "true once the person has read the consent text returned by mode=prepare and explicitly agreed"
              },
              "message": {
                "type": "string",
                "description": "As in prepare"
              },
              "project": {
                "type": "string",
                "description": "As in prepare"
              },
              "language": {
                "enum": [
                  "pt",
                  "en",
                  "ru",
                  "ua",
                  "de",
                  "fr",
                  "nl",
                  "uk"
                ],
                "type": "string",
                "default": "en",
                "description": "As in prepare"
              },
              "typology": {
                "type": "array",
                "items": {
                  "enum": [
                    "T0",
                    "T1",
                    "T2",
                    "T3",
                    "T4+"
                  ],
                  "type": "string"
                },
                "description": "As in prepare"
              },
              "deal_type": {
                "type": "string",
                "deprecated": true,
                "description": "As in prepare"
              },
              "budget_max": {
                "type": "integer",
                "description": "As in prepare"
              },
              "budget_min": {
                "type": "integer",
                "description": "As in prepare"
              },
              "budget_band": {
                "type": "string",
                "deprecated": true,
                "description": "As in prepare"
              },
              "property_type": {
                "type": "string",
                "deprecated": true,
                "description": "As in prepare"
              },
              "preferred_time": {
                "type": "string",
                "description": "As in prepare"
              },
              "confirmation_token": {
                "type": "string",
                "description": "The token returned by request_consultation mode=prepare"
              },
              "consent_text_version": {
                "type": "string",
                "description": "consent_text_version returned by mode=prepare"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "mode",
                  "status",
                  "what_happens_next",
                  "privacy_policy"
                ],
                "properties": {
                  "mode": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "privacy_policy": {
                    "type": "string",
                    "description": "Absolute URL"
                  },
                  "what_happens_next": {
                    "type": "string"
                  }
                },
                "description": "submit_consultation: the request was received; flatin.pt answers it."
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "field": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "message": {
                    "type": "string"
                  },
                  "problems": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "consent_text": {
                    "type": "string"
                  },
                  "consent_language": {
                    "type": "string"
                  },
                  "retry_after_seconds": {
                    "type": "integer"
                  },
                  "consent_text_version": {
                    "type": "string"
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Send a prepared request to flatin.pt",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": true
          }
        },
        {
          "name": "subscribe_digest",
          "title": "Subscribe an email to new developments or construction",
          "description": "Use this when the person asks to be emailed about new-build projects matching a filter (daily) or new construction licensed in one municipality (weekly). Do not use it to have flatin.pt contact them (`request_consultation`) or to see what is on sale now (`search_newbuilds`). Ask the person first; nothing is active until they click the confirmation email. `city` is required for construction and `parish` works only there; `typology`, the prices and `on_sale` work only with new_developments. The answer is the same whether or not the address was already subscribed: never say it was.",
          "inputSchema": {
            "type": "object",
            "required": [
              "email"
            ],
            "properties": {
              "city": {
                "type": "string",
                "examples": [
                  "Porto",
                  "Vila Nova de Gaia"
                ],
                "description": "Municipality (Lisboa or Lisbon). Required for construction; empty means all of Portugal for new_developments"
              },
              "what": {
                "enum": [
                  "new_developments",
                  "construction"
                ],
                "type": "string",
                "default": "new_developments",
                "description": "new_developments: new-build developments matching the filter, daily email when something new appears. construction: newly licensed construction in a municipality (\"what is being built\"), weekly"
              },
              "email": {
                "type": "string",
                "format": "email",
                "examples": [
                  "maria@example.com"
                ],
                "description": "The person's email address"
              },
              "client": {
                "type": "string",
                "examples": [
                  "claude.ai",
                  "chatgpt.com"
                ],
                "description": "Optional. Your app's host or name: recorded as the request's source"
              },
              "parish": {
                "type": "string",
                "examples": [
                  "Paranhos"
                ],
                "description": "Optional, construction only: a parish (freguesia) of that municipality"
              },
              "on_sale": {
                "type": "boolean",
                "description": "Optional, new_developments: only developments on sale"
              },
              "language": {
                "enum": [
                  "pt",
                  "en",
                  "ru",
                  "ua",
                  "de",
                  "fr",
                  "nl",
                  "uk"
                ],
                "type": "string",
                "default": "en",
                "description": "The person's language: the consent text and the emails come in it. uk is accepted as ua."
              },
              "typology": {
                "type": "array",
                "items": {
                  "enum": [
                    "T0",
                    "T1",
                    "T2",
                    "T3",
                    "T4+"
                  ],
                  "type": "string"
                },
                "description": "Optional. Bedroom counts wanted (T2 = two bedrooms)"
              },
              "price_max": {
                "type": "integer",
                "description": "Optional, new_developments: maximum price in euros"
              },
              "price_min": {
                "type": "integer",
                "description": "Optional, new_developments: minimum price in euros"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "status",
                  "what",
                  "scope",
                  "frequency",
                  "confirm_within_days",
                  "consent_text",
                  "consent_text_version",
                  "language"
                ],
                "properties": {
                  "what": {
                    "type": "string"
                  },
                  "scope": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string"
                  },
                  "frequency": {
                    "type": "string"
                  },
                  "consent_text": {
                    "type": "string"
                  },
                  "confirm_within_days": {
                    "type": "integer"
                  },
                  "consent_text_version": {
                    "type": "string"
                  }
                },
                "description": "Always the same, whatever the address's state: a confirmation email was requested; nothing is active until the person clicks it."
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "field": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "message": {
                    "type": "string"
                  },
                  "problems": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "retry_after_seconds": {
                    "type": "integer"
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Subscribe an email to new developments or construction",
            "readOnlyHint": false,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "where_to_live",
          "title": "Where to live in a Portuguese city, area by area",
          "description": "Use this when the person is choosing a neighbourhood: a flatin.pt city guide's verdict area by area, with the reason, who each area suits and the sources. Do not use it for one municipality's figures (`municipality_stats`) or for new homes there (`search_newbuilds`). Without `city` it lists the cities and regions that have a guide. `profile` narrows the areas but never hides the ones we advise against. Noise and safety come as dated, sourced facts: a place's reputation, never a claim about its people. Show the guide's link to the user.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "city": {
                "type": "string",
                "examples": [
                  "Porto",
                  "Lisbon",
                  "Gaia"
                ],
                "description": "City or region with a guide, in any site language (Porto, Lisbon, Lisboa, Greater Porto, Algarve, Coimbra) or a municipality inside a guide (Gaia, Cascais, Faro). Omit to list the guides"
              },
              "include": {
                "type": "array",
                "items": {
                  "enum": [
                    "areas",
                    "noise",
                    "safety",
                    "prices",
                    "municipal_housing",
                    "checks",
                    "climate",
                    "transport",
                    "other",
                    "all"
                  ],
                  "type": "string"
                },
                "default": [
                  "areas",
                  "noise",
                  "safety"
                ],
                "description": "Parts of the guide to return; all returns every section"
              },
              "profile": {
                "enum": [
                  "family",
                  "car_free",
                  "retirees",
                  "remote",
                  "budget",
                  "nightlife"
                ],
                "type": "string",
                "description": "Keep the areas that suit this profile; profile never removes the areas we advise against"
              },
              "verdict": {
                "enum": [
                  "live",
                  "depends",
                  "avoid"
                ],
                "type": "string",
                "description": "Keep only areas with this verdict: live (good to live), depends (depends on you), avoid (we advise against)"
              },
              "language": {
                "enum": [
                  "pt",
                  "en",
                  "ru",
                  "ua",
                  "de",
                  "fr",
                  "nl",
                  "uk"
                ],
                "type": "string",
                "default": "en",
                "description": "Language of the answer: the guide or the definition, the text summary and the page links. Field names stay English. uk is accepted as ua."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "language",
                  "guides",
                  "profiles",
                  "url",
                  "attribution"
                ],
                "properties": {
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "guides": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "language": {
                    "type": "string"
                  },
                  "profiles": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "attribution": {
                    "type": "object"
                  }
                },
                "description": "Without city: the guides that exist."
              },
              {
                "type": "object",
                "required": [
                  "guide",
                  "language",
                  "language_requested",
                  "title",
                  "lede",
                  "filters",
                  "verdict_scale",
                  "areas",
                  "sections",
                  "url",
                  "hub_url",
                  "published_on",
                  "updated_on",
                  "sources",
                  "attribution"
                ],
                "properties": {
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "lede": {
                    "type": "string"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "guide": {
                    "type": "object"
                  },
                  "title": {
                    "type": "string"
                  },
                  "filters": {
                    "type": "object"
                  },
                  "hub_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "language": {
                    "type": "string"
                  },
                  "sections": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "updated_on": {
                    "type": "string",
                    "description": "Date, YYYY-MM-DD"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "published_on": {
                    "type": "string",
                    "description": "Date, YYYY-MM-DD"
                  },
                  "verdict_scale": {
                    "type": "object"
                  },
                  "language_requested": {
                    "type": "string"
                  }
                },
                "description": "With city: one guide's verdict area by area."
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "guides": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "message": {
                    "type": "string"
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Where to live in a Portuguese city, area by area",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "municipality_stats",
          "title": "Key figures for one Portuguese municipality",
          "description": "Use this when the key figures of one of Portugal's 308 municipalities are needed, each with its source and date. They are the IMI rate and history, INE sale price per m² (actual sales), purchasing power, population, licensed dwellings, building cases, new builds. Do not use it to compare places (`compare_municipalities`), inside a city (`where_to_live`) or for monthly building (`construction_barometer`). A figure that is not published is null, not estimated. A name matching two municipalities is refused with candidates.",
          "inputSchema": {
            "type": "object",
            "required": [
              "municipality"
            ],
            "properties": {
              "language": {
                "enum": [
                  "pt",
                  "en",
                  "ru",
                  "ua",
                  "de",
                  "fr",
                  "nl",
                  "uk"
                ],
                "type": "string",
                "default": "en",
                "description": "Language of the page links and labels; the text summary and field names stay English. uk is accepted as ua."
              },
              "municipality": {
                "type": "string",
                "examples": [
                  "Porto",
                  "Vila Nova de Gaia",
                  "1312"
                ],
                "description": "Municipality name in any case, accents optional (Porto, Lisboa, Vila Nova de Gaia, Matosinhos; Lisbon and Oporto are accepted) or its four-digit code (1312). Close spellings are found; two matches return an `ambiguous` error with candidates"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "municipality",
                  "url",
                  "imi",
                  "sale_prices",
                  "purchasing_power",
                  "population",
                  "licensed_new_dwellings",
                  "licensed_new_buildings",
                  "licensed_buildings_all_works",
                  "municipal_cases",
                  "construction_barometer",
                  "new_builds",
                  "where_to_live",
                  "attribution",
                  "language"
                ],
                "properties": {
                  "imi": {
                    "type": "object"
                  },
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "language": {
                    "type": "string"
                  },
                  "new_builds": {
                    "type": "object"
                  },
                  "population": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "sale_prices": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "municipality": {
                    "type": "object"
                  },
                  "affordability": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "where_to_live": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "municipal_cases": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "purchasing_power": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "Index, Portugal = 100"
                  },
                  "construction_barometer": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "licensed_new_buildings": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "licensed_new_dwellings": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "licensed_buildings_all_works": {
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "suggestions": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Key figures for one Portuguese municipality",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "compare_municipalities",
          "title": "Compare 2 to 5 Portuguese municipalities",
          "description": "Use this when the person is choosing between two to five Portuguese municipalities, with the same figures for each as `municipality_stats`. Do not use it for a single municipality (`municipality_stats`) or for the areas inside one city (`where_to_live`). Names that point at the same municipality count once, and fewer than two distinct ones are refused (bad_count). One unknown or ambiguous name refuses the whole comparison.",
          "inputSchema": {
            "type": "object",
            "required": [
              "municipalities"
            ],
            "properties": {
              "language": {
                "enum": [
                  "pt",
                  "en",
                  "ru",
                  "ua",
                  "de",
                  "fr",
                  "nl",
                  "uk"
                ],
                "type": "string",
                "default": "en",
                "description": "Language of the page links and labels; the text summary and field names stay English. uk is accepted as ua."
              },
              "municipalities": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "examples": [
                  [
                    "Porto",
                    "Matosinhos",
                    "Vila Nova de Gaia"
                  ]
                ],
                "maxItems": 5,
                "minItems": 2,
                "description": "Two to five municipality names or codes"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "language",
                  "municipalities",
                  "url",
                  "attribution"
                ],
                "properties": {
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "language": {
                    "type": "string"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "municipalities": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "suggestions": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Compare 2 to 5 Portuguese municipalities",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "construction_barometer",
          "title": "Construction activity by municipality (barometer)",
          "description": "Use this when the question is how much is being built in Portuguese municipalities. It gives our monthly count of building-works cases entering licensing, where we collect them, and INE's yearly licensed buildings and new dwellings for all 308. Do not use it for other figures (`municipality_stats`). Without `municipality` it returns every municipality we collect and the panel index. `measure` and `granularity` change only our own series. A case is not a granted licence or a building.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "measure": {
                "enum": [
                  "total_works",
                  "new_build",
                  "alter_extend"
                ],
                "type": "string",
                "default": "total_works",
                "description": "Kind of works counted in our own series: all works, new buildings, or alterations and extensions"
              },
              "language": {
                "enum": [
                  "pt",
                  "en",
                  "ru",
                  "ua",
                  "de",
                  "fr",
                  "nl",
                  "uk"
                ],
                "type": "string",
                "default": "en",
                "description": "Language of the page links and labels; the text summary and field names stay English. uk is accepted as ua."
              },
              "granularity": {
                "enum": [
                  "month",
                  "year"
                ],
                "type": "string",
                "default": "month",
                "description": "Period of our own series; the INE series is yearly either way"
              },
              "municipality": {
                "type": "string",
                "examples": [
                  "Porto",
                  "Vila Nova de Gaia",
                  "1312"
                ],
                "description": "Optional. Municipality name in any case, accents optional (Porto, Lisboa, Vila Nova de Gaia, Matosinhos; Lisbon and Oporto are accepted) or its four-digit code (1312). Close spellings are found; two matches return an `ambiguous` error with candidates. Omit for the summary of every municipality we collect"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "language",
                  "measure",
                  "snapshot",
                  "window",
                  "municipalities",
                  "panel_index",
                  "caveat",
                  "url",
                  "method_url",
                  "attribution"
                ],
                "properties": {
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "caveat": {
                    "type": "string"
                  },
                  "window": {
                    "type": "object"
                  },
                  "measure": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string"
                  },
                  "snapshot": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Date, YYYY-MM-DD, or null"
                  },
                  "method_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "panel_index": {
                    "type": "object"
                  },
                  "municipalities": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  }
                },
                "description": "Without municipality: every municipality we collect, and the index."
              },
              {
                "type": "object",
                "required": [
                  "language",
                  "municipality",
                  "measure",
                  "granularity",
                  "snapshot",
                  "in_own_series",
                  "own_series",
                  "summary",
                  "ine_official",
                  "covered_municipalities",
                  "caveat",
                  "url",
                  "method_url",
                  "municipality_url",
                  "attribution"
                ],
                "properties": {
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "caveat": {
                    "type": "string"
                  },
                  "measure": {
                    "type": "string"
                  },
                  "summary": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "language": {
                    "type": "string"
                  },
                  "snapshot": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Date, YYYY-MM-DD, or null"
                  },
                  "method_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "own_series": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "granularity": {
                    "type": "string"
                  },
                  "ine_official": {
                    "type": "object"
                  },
                  "municipality": {
                    "type": "object"
                  },
                  "in_own_series": {
                    "type": "boolean"
                  },
                  "municipality_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "covered_municipalities": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  }
                },
                "description": "With municipality: our series (if collected) and INE's yearly series."
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "suggestions": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Construction activity by municipality (barometer)",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "municipality_housing_pipeline",
          "title": "Housing pipeline of one municipality: cases to completions",
          "description": "Use this when one municipality's housing pipeline from licence to completion is needed: cases, INE licences and completions, units for sale. Do not use it for monthly building activity (`construction_barometer`). Periods differ by stage; unknown is null, not 0.",
          "inputSchema": {
            "type": "object",
            "required": [
              "municipality"
            ],
            "properties": {
              "language": {
                "enum": [
                  "pt",
                  "en",
                  "ru",
                  "ua",
                  "de",
                  "fr",
                  "nl",
                  "uk"
                ],
                "type": "string",
                "default": "en",
                "description": "Language of the page links and labels; the text summary and field names stay English. uk is accepted as ua."
              },
              "municipality": {
                "type": "string",
                "examples": [
                  "Porto",
                  "Vila Nova de Gaia",
                  "1312"
                ],
                "description": "Municipality name in any case, accents optional (Porto, Lisboa, Vila Nova de Gaia, Matosinhos; Lisbon and Oporto are accepted) or its four-digit code (1312). Close spellings are found; two matches return an `ambiguous` error with candidates"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "language",
                  "municipality",
                  "coverage",
                  "stages",
                  "ratio_completed_licensed",
                  "durations",
                  "caveat",
                  "url",
                  "method_url",
                  "municipality_url",
                  "attribution"
                ],
                "properties": {
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "caveat": {
                    "type": "string"
                  },
                  "stages": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "coverage": {
                    "type": "object"
                  },
                  "language": {
                    "type": "string"
                  },
                  "durations": {
                    "type": "object",
                    "description": "Age of licensing cases in progress (an age, not a processing time)."
                  },
                  "method_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "municipality": {
                    "type": "object"
                  },
                  "municipality_url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "ratio_completed_licensed": {
                    "type": "object"
                  }
                },
                "description": "One municipality: every stage with its own period and source."
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "suggestions": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Housing pipeline of one municipality: cases to completions",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "glossary_lookup",
          "title": "Explain a Portuguese home-buying term",
          "description": "Use this when asked what a Portuguese home-buying or tax term means (CPCV, escritura, VPT…), with where it comes up and the article of law with a link. Do not use it to calculate anything: purchase taxes are `imt_calculate`, the yearly tax `imi_annual_cost`. Without `term` it lists all terms. A term without a translation comes in English; an unknown one is refused with close spellings, if any.",
          "inputSchema": {
            "type": "object",
            "properties": {
              "term": {
                "type": "string",
                "examples": [
                  "CPCV",
                  "caderneta predial",
                  "escritura"
                ],
                "description": "The term: Portuguese or English name, a name in any site language or an abbreviation (CPCV, IMT, VPT, caderneta predial, escritura). Omit to list all terms"
              },
              "language": {
                "enum": [
                  "pt",
                  "en",
                  "ru",
                  "ua",
                  "de",
                  "fr",
                  "nl",
                  "uk"
                ],
                "type": "string",
                "default": "en",
                "description": "Language of the answer: the guide or the definition, the text summary and the page links. Field names stay English. uk is accepted as ua."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "language",
                  "count",
                  "terms",
                  "url",
                  "attribution"
                ],
                "properties": {
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "count": {
                    "type": "integer"
                  },
                  "terms": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "language": {
                    "type": "string"
                  },
                  "attribution": {
                    "type": "object"
                  }
                },
                "description": "Without term: every term."
              },
              {
                "type": "object",
                "required": [
                  "key",
                  "name",
                  "pt_name",
                  "en_name",
                  "abbreviation",
                  "url",
                  "language",
                  "language_requested",
                  "definition",
                  "in_practice",
                  "questions",
                  "legal_refs",
                  "see_also",
                  "updated_on",
                  "checked_on",
                  "sources",
                  "attribution"
                ],
                "properties": {
                  "key": {
                    "type": "string"
                  },
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "name": {
                    "type": "string"
                  },
                  "en_name": {
                    "type": "string"
                  },
                  "pt_name": {
                    "type": "string"
                  },
                  "sources": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "language": {
                    "type": "string"
                  },
                  "see_also": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "questions": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "checked_on": {
                    "type": "string",
                    "description": "Date, YYYY-MM-DD"
                  },
                  "definition": {
                    "type": "string"
                  },
                  "legal_refs": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "updated_on": {
                    "type": "string",
                    "description": "Date, YYYY-MM-DD"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "in_practice": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "abbreviation": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "language_requested": {
                    "type": "string"
                  }
                },
                "description": "With term: the definition and the law."
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "suggestions": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Explain a Portuguese home-buying term",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "search_newbuilds",
          "title": "Search new-build projects in Portugal",
          "description": "Use this when the person wants to find published new-build projects (empreendimentos) in Portugal on flatin.pt. Do not use it for one project's details (`get_newbuild` with its slug) or for how much is being built (`construction_barometer`). With `typology`, the budget applies to those typologies' prices; projects without a published price drop out when a budget is given. Pass next_offset as `offset` for the next page. A misspelt filter is refused, not ignored. Prices are as checked on developers' pages or agency listings, dated.",
          "inputSchema": {
            "type": "object",
            "examples": [
              {
                "typology": [
                  "T2"
                ],
                "price_max": 400000,
                "municipality": "Porto"
              },
              {
                "stage": [
                  "building"
                ],
                "language": "pt",
                "municipality": "Lisboa"
              }
            ],
            "properties": {
              "sort": {
                "enum": [
                  "price",
                  "name",
                  "delivery",
                  "new"
                ],
                "type": "string",
                "default": "price",
                "description": "price: cheapest first; delivery: soonest first; new: recently added first. Projects with a price always come before those without"
              },
              "limit": {
                "type": "integer",
                "default": 10,
                "maximum": 50,
                "minimum": 1,
                "description": "Results per call"
              },
              "stage": {
                "type": "array",
                "items": {
                  "enum": [
                    "planned",
                    "licensed",
                    "building",
                    "selling",
                    "delivered"
                  ],
                  "type": "string"
                },
                "description": "Construction stage: planned, licensed, building (under construction), selling (on sale), delivered (completed)"
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 5000,
                "minimum": 0,
                "description": "Skip this many results: pass next_offset from the previous answer"
              },
              "parish": {
                "type": "string",
                "examples": [
                  "Paranhos"
                ],
                "description": "Parish (freguesia) name. Exact name, accents optional"
              },
              "on_sale": {
                "type": "boolean",
                "default": false,
                "description": "Only projects with a published price"
              },
              "language": {
                "enum": [
                  "pt",
                  "en",
                  "ru",
                  "ua",
                  "de",
                  "fr",
                  "nl",
                  "uk"
                ],
                "type": "string",
                "default": "en",
                "description": "Language of the page URLs and of the labels (stage, typology, nearby places); the text summary shows the typology labels in it. Field names stay English. uk is accepted as ua."
              },
              "typology": {
                "type": "array",
                "items": {
                  "enum": [
                    "T0",
                    "T1",
                    "T2",
                    "T3",
                    "T4",
                    "T5"
                  ],
                  "type": "string"
                },
                "description": "Bedrooms: T0 studio … T5 (five or more). Any of the listed matches"
              },
              "price_max": {
                "type": "integer",
                "maximum": 999999999,
                "minimum": 0,
                "description": "Budget upper bound in euros, e.g. 350000. With typology, the budget applies to those typologies' prices. Projects with no published price are left out when a budget is given"
              },
              "price_min": {
                "type": "integer",
                "maximum": 999999999,
                "minimum": 0,
                "description": "Budget lower bound in euros"
              },
              "delivery_by": {
                "type": "integer",
                "maximum": 2100,
                "description": "Completed, or promised for this year or earlier (overdue promises included), e.g. 2027; at most five years back. Projects with no announced date are left out"
              },
              "energy_class": {
                "type": "array",
                "items": {
                  "enum": [
                    "A+",
                    "A",
                    "B",
                    "B-",
                    "C",
                    "D",
                    "E",
                    "F"
                  ],
                  "type": "string"
                },
                "description": "Energy certificate class of at least one unit, as stated by the source. Often not published: filter only when asked"
              },
              "municipality": {
                "type": "string",
                "examples": [
                  "Porto",
                  "Vila Nova de Gaia",
                  "1312"
                ],
                "description": "City / municipality (concelho): name, slug or four-digit code, e.g. Porto, Lisboa, Vila Nova de Gaia, Matosinhos, 1312. English names (Lisbon) and accents-free spelling are understood; an ambiguous name (Lagoa) is refused with candidates"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "total",
                  "offset",
                  "limit",
                  "next_offset",
                  "language",
                  "catalog_url",
                  "results",
                  "attribution"
                ],
                "properties": {
                  "limit": {
                    "type": "integer"
                  },
                  "total": {
                    "type": "integer"
                  },
                  "offset": {
                    "type": "integer"
                  },
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "language": {
                    "type": "string"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "catalog_url": {
                    "type": "string",
                    "description": "Absolute URL"
                  },
                  "next_offset": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "description": "Pass as offset for the next page; null = last"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "field": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "message": {
                    "type": "string"
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "suggestions": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Search new-build projects in Portugal",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_newbuild",
          "title": "Get one new-build project: prices, cost, nearby",
          "description": "Use this when one new-build project in Portugal is needed in detail, by slug (from `search_newbuilds`) or page URL. It gives units and prices per typology, price history, delivery promises and how often they moved, building permits, the developer, the purchase cost and what is nearby. Do not use it to search (`search_newbuilds`) or for taxes at another price or for a non-resident (`imt_calculate`). The purchase cost is at the cheapest available unit or the developer's from-price, for a buyer tax resident in Portugal. `primary_home` and `buyer_is_young` change only the purchase cost. An unknown slug is refused (not_found). Cite the page URL, given in all seven site languages.",
          "inputSchema": {
            "type": "object",
            "required": [
              "slug"
            ],
            "properties": {
              "slug": {
                "type": "string",
                "minLength": 1,
                "description": "The project's slug from search_newbuilds (field slug), or its flatin.pt page URL"
              },
              "language": {
                "enum": [
                  "pt",
                  "en",
                  "ru",
                  "ua",
                  "de",
                  "fr",
                  "nl",
                  "uk"
                ],
                "type": "string",
                "default": "en",
                "description": "Language of the page URLs and of the labels (stage, typology, nearby places); the text summary shows the typology labels in it. Field names stay English. uk is accepted as ua."
              },
              "primary_home": {
                "type": "boolean",
                "default": true,
                "description": "For the purchase cost only: the buyer's own permanent home (habitação própria e permanente)"
              },
              "buyer_is_young": {
                "type": "boolean",
                "default": false,
                "description": "For the purchase cost only: buyer aged 35 or under, first own home (reduced IMT and stamp duty relief); applies only with primary_home"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "slug",
                  "name",
                  "url",
                  "urls",
                  "language",
                  "summary",
                  "developer",
                  "municipality",
                  "parish",
                  "stage",
                  "delivery",
                  "price",
                  "typologies",
                  "purchase_cost",
                  "permits",
                  "location",
                  "location_precision",
                  "area",
                  "nearby",
                  "image",
                  "checked_on",
                  "updated_on",
                  "attribution"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Absolute URL"
                  },
                  "area": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "name": {
                    "type": "string"
                  },
                  "slug": {
                    "type": "string"
                  },
                  "urls": {
                    "type": "object"
                  },
                  "image": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Absolute URL or null"
                  },
                  "price": {
                    "type": "object"
                  },
                  "stage": {
                    "type": "object"
                  },
                  "nearby": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "parish": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "permits": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "summary": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "delivery": {
                    "type": "object"
                  },
                  "language": {
                    "type": "string"
                  },
                  "location": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "developer": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "null when the developer is not confirmed"
                  },
                  "checked_on": {
                    "type": "string",
                    "description": "Date, YYYY-MM-DD"
                  },
                  "typologies": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    }
                  },
                  "updated_on": {
                    "type": "string",
                    "description": "Date, YYYY-MM-DD"
                  },
                  "attribution": {
                    "type": "object"
                  },
                  "municipality": {
                    "type": "object"
                  },
                  "purchase_cost": {
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "location_precision": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "error",
                  "message"
                ],
                "properties": {
                  "error": {
                    "type": "string"
                  },
                  "field": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "message": {
                    "type": "string"
                  }
                }
              }
            ],
            "description": "Success, or a refusal with an error code. Units: *_cents euro cents, *_eur euros, *_eur_m2 euros per m², *_pct and percent in percent."
          },
          "annotations": {
            "title": "Get one new-build project: prices, cost, nearby",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": "flatin.pt is a Portuguese home-buying platform: a catalogue of new-build developments (prices and delivery dates from developers' and listing agencies' pages, building permits from town halls), where-to-live city guides, open data per municipality (INE, Autoridade Tributária) and the taxes of buying and owning a home. flatin.pt is also a licensed estate agency (AMI licence no. 28163) and answers buyers' requests itself.\n\nWhich tool:\n- Purchase costs: imt_calculate (IMT, stamp duty, registration); required_income (net income and savings to buy at a price). Yearly tax: imi_rate; imi_annual_cost needs the VPT (tax valuation), not the price.\n- Choosing a place: where_to_live (a city guide's verdict area by area), municipality_stats (one municipality's figures), compare_municipalities (two to five side by side), construction_barometer (building activity), municipality_housing_pipeline (licensed to completed homes).\n- New homes: search_newbuilds (municipality, typology, budget, stage, delivery), then get_newbuild for one project.\n- Terms (CPCV, escritura, VPT...): glossary_lookup.\nMunicipalities: Portuguese or English name (Lisboa or Lisbon), slug or four-digit code. Pass the person's language (pt, en, ru, ua, de, fr, nl): it sets the language of guide verdicts, definitions, the consent text, emails and page links; field names and summaries stay English.\n\nWrites need the person's explicit consent, never the assistant's initiative. A request to flatin.pt, which answers it, takes two tools. request_consultation sends nothing: mode=link (default) returns the form; mode=prepare returns a summary, the consent text and a confirmation_token. Show the person that text word for word; only after they agree, call submit_consultation with the same details, the token, consent=true and consent_text_version. subscribe_digest only sends a confirmation email: nothing is active until the person clicks it.\n\nCite: link the canonical flatin.pt URL from the answer and show the attribution (source, date) next to the numbers; numbers without a source cannot be checked. A null field means unknown: do not fill it in."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}