{
  "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": "www.expatliving.it",
    "site": "expatliving.it",
    "addresses": [
      {
        "address": "216.150.1.193",
        "endpoints": 689,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "216.150.1.0/24",
          "country": "US"
        }
      },
      {
        "address": "216.150.16.193",
        "endpoints": 670,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "216.150.16.0/24",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "216.150.1.193",
          "216.150.16.193"
        ],
        "first_seen": "2026-11-22T21:51:02.230Z",
        "last_seen": "2026-11-22T21:51:02.230Z",
        "checks": 1
      },
      {
        "addresses": [
          "216.150.1.1",
          "216.150.16.1"
        ],
        "first_seen": "2026-11-21T18:14:02.910Z",
        "last_seen": "2026-11-21T18:14:02.910Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Vercel",
        "evidence": "Server header \"Vercel\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "expatliving-data",
      "version": "1.3.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "Vercel",
      "strict-transport-security": "max-age=63072000",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 874,
      "sample": [
        {
          "id": "248",
          "url": "https://app.aqta.ai/api/mcp",
          "server_name": "ai.aqta/seal",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:35:04.710Z"
        },
        {
          "id": "278",
          "url": "https://asrm.ai/mcp",
          "server_name": "ai.asrm/asrm",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:37:02.462Z"
        },
        {
          "id": "300",
          "url": "https://app.augenix.ai/api/mcp/public",
          "server_name": "ai.augenix/build",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:38:02.093Z"
        },
        {
          "id": "368",
          "url": "https://beexcellent.ai/api/mcp/public",
          "server_name": "ai.beexcellent/reference",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:40:04.155Z"
        },
        {
          "id": "375",
          "url": "https://api.betslipdoctor.ai/api/mcp",
          "server_name": "ai.betslipdoctor/mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:40:02.459Z"
        },
        {
          "id": "390",
          "url": "https://blinibot.ai/api/agents/mcp",
          "server_name": "ai.blinibot/agent-lounge",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:40:03.345Z"
        },
        {
          "id": "395",
          "url": "https://property.bluebed.ai/mcp",
          "server_name": "ai.bluebed.property/new-launches",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:41:00.904Z"
        },
        {
          "id": "416",
          "url": "https://www.bordet.ai/api/mcp/mcp",
          "server_name": "ai.bordet/bordet",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:40:03.564Z"
        },
        {
          "id": "430",
          "url": "https://www.budgetseo.ai/api/mcp",
          "server_name": "ai.budgetseo/budget-seo-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:42:01.174Z"
        },
        {
          "id": "461",
          "url": "https://callmcp.ai/mcp",
          "server_name": "ai.callmcp/server",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:42:02.318Z"
        },
        {
          "id": "754",
          "url": "https://www.edgechat.ai/mcp",
          "server_name": "ai.edgechat/edgepedia",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:48:12.743Z"
        },
        {
          "id": "868",
          "url": "https://www.flamel.ai/mcp",
          "server_name": "ai.flamel/public-content",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:52:12.172Z"
        },
        {
          "id": "906",
          "url": "https://www.frontierdesk.ai/mcp",
          "server_name": "ai.frontierdesk/desk",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:52:12.420Z"
        },
        {
          "id": "908",
          "url": "https://mcp.fudge.ai/mcp",
          "server_name": "ai.fudge/fudge",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:52:12.385Z"
        },
        {
          "id": "1078",
          "url": "https://api.gosummer.ai/mcp",
          "server_name": "ai.gosummer/summer",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T04:54:01.422Z"
        },
        {
          "id": "1330",
          "url": "https://app.kolect.ai/mcp",
          "server_name": "ai.kolect.app/creator-search",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T05:00:10.243Z"
        },
        {
          "id": "1571",
          "url": "https://moonlings.ai/api/mcp",
          "server_name": "ai.moonlings/moonlings",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T06:44:02.063Z"
        },
        {
          "id": "1574",
          "url": "https://www.mosaya.ai/api/mcp",
          "server_name": "ai.mosaya/practice",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T06:44:02.169Z"
        },
        {
          "id": "1603",
          "url": "https://www.natalchart.ai/mcp",
          "server_name": "ai.natalchart/astrology",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T06:44:02.691Z"
        },
        {
          "id": "1616",
          "url": "https://nerdnoir.ai/api/mcp",
          "server_name": "ai.nerdnoir/nerdy",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T06:45:02.905Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "it.expatliving",
      "total": 0,
      "sample": []
    },
    "same_repository": null,
    "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": "43313",
    "server_name": "it.expatliving/data",
    "url": "https://www.expatliving.it/api/v1/mcp",
    "host": "www.expatliving.it",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T21:51:02.230Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "6d26738e418974698a88f6bdbbb27b7fe6d22be014a0b7d6db0f8310e1a20f87",
    "first_listed_at": "2026-11-21T18:14:02.910Z",
    "created_at": "2026-11-21T12:45:15.965Z",
    "resolved_addresses": [
      "216.150.1.193",
      "216.150.16.193"
    ]
  },
  "server": {
    "name": "it.expatliving/data",
    "title": "Expat Living Italy",
    "description": "Sourced data on Italy's ~7,900 comuni for people relocating or retiring there.",
    "version": "1.3.0",
    "registry_status": "active",
    "repository_url": null,
    "website_url": "https://www.expatliving.it/data/ask-your-ai",
    "published_at": "2026-11-03T05:00:14.896Z",
    "updated_at": "2026-11-03T05:00:14.896Z",
    "first_seen": "2026-11-21T12:45:15.285Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:57:10.155Z"
  },
  "operator": {
    "key": "expatliving.it",
    "name": "expatliving.it",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 527,
    "first_check_in_window": "2026-11-21T18:14:02.910Z",
    "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"
      }
    ]
  },
  "tool_list": {
    "sha256": "6d26738e418974698a88f6bdbbb27b7fe6d22be014a0b7d6db0f8310e1a20f87",
    "tools": 12,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-21T18:14:03.404Z",
    "tool_names": [
      "get_comune",
      "search_comuni",
      "find_comuni",
      "get_province",
      "get_region",
      "get_nationality",
      "get_coverage",
      "list_datasets",
      "list_tax_regimes",
      "check_tax_eligibility",
      "list_articles",
      "get_article"
    ],
    "declared": {
      "tools": [
        {
          "name": "get_comune",
          "title": "Get one comune's profile",
          "description": "One Italian comune's population, foreign residents by citizenship, property purchase/rent price, price-to-rent, verified tax-regime eligibility, its province's rollup, `seismicZone` (the official zona sismica 1-4: a legal classification, not a forecast and not a verdict on any building; quote it with its label and say so — a comune that straddles zones has no single zone, never round it; the zone has nothing to do with tax eligibility, and is not the 7% regime’s “seismic” routes, which depend on the 2009 and 2016-17 earthquake areas), `oneEuroScheme` (the comune’s own one-euro house scheme, read from its own act: there is NO national list, so a null means we have not read one, NEVER that the comune has no scheme; the act’s price may be free or a bid from 1 euro, not a fixed euro, and the buyer’s deed costs, guarantee and renovation deadlines always go with it; not advice on buying), `layers` (climate, air quality, crime, healthcare quality, age, population change and every other Italy-map layer) and `provinceWellbeing` (ISTAT BES indicators, polarity-aware percentiles) — looked up by 6-digit ISTAT code. Each layer's `grain` and `measuredFor` say whose number it is: a province or region value is not a measurement of this comune — say so when you quote it. Every field is wrapped in a provenance envelope (source, vintage, extractedOn, license); repeat the vintage when you state the number, and if a value is null, say why rather than treating it as zero.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "istatCode"
            ],
            "properties": {
              "istatCode": {
                "type": "string",
                "pattern": "^\\d{6}$",
                "description": "6-digit ISTAT comune code, e.g. 075029."
              }
            }
          },
          "outputSchema": {
            "truncated": true,
            "chars": 25634
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "search_comuni",
          "title": "Find a comune by name",
          "description": "Look up Italian comuni by name (case- and accent-insensitive, partial names work) and get each one's 6-digit ISTAT code, province and region — the code get_comune needs. Returns identifiers only, no figures. Several comuni share a name; check the province before choosing.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "q"
            ],
            "properties": {
              "q": {
                "type": "string",
                "maxLength": 80,
                "minLength": 2,
                "description": "A comune name or part of one, accents optional — e.g. \"Introdacqua\" or \"reggio\"."
              },
              "limit": {
                "type": "integer",
                "default": 10,
                "maximum": 25,
                "minimum": 1,
                "description": "How many matches to return, 1–25. Default 10."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "query",
              "results",
              "truncated",
              "attribution"
            ],
            "properties": {
              "query": {
                "type": "string"
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "istatCode",
                    "name",
                    "province",
                    "provinceCode",
                    "region",
                    "page"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "description": "The comune's profile page on expatliving.it."
                    },
                    "region": {
                      "type": "string"
                    },
                    "province": {
                      "type": "string"
                    },
                    "istatCode": {
                      "type": "string",
                      "description": "6-digit ISTAT comune code — pass this to GET /comuni/{istatCode} or get_comune."
                    },
                    "provinceCode": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 25,
                "description": "Best matches first: exact name, then names starting with the query, then names containing it. Several Italian comuni share a name — check the province before picking one."
              },
              "truncated": {
                "type": "boolean",
                "description": "True when more comuni matched than `limit` allowed — narrow the query."
              },
              "attribution": {
                "type": "object",
                "required": [
                  "publisher",
                  "url",
                  "citeAs",
                  "request",
                  "license"
                ],
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "The expatliving.it page these figures come from — link it when you quote them."
                  },
                  "citeAs": {
                    "type": "string",
                    "description": "A ready-made citation line."
                  },
                  "license": {
                    "type": "object",
                    "required": [
                      "name",
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "description": "License of Expat Living Italy's own work only; upstream data keeps its own license, per dataset.",
                    "additionalProperties": false
                  },
                  "request": {
                    "type": "string"
                  },
                  "publisher": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "find_comuni",
          "title": "Find comuni by criteria",
          "description": "Which Italian comuni match: region, province, population range, purchase-price and rent ranges (OMI), population change 2019–2025, the eight shortlist filters (January low, days above 30 C, regional hospital-care score, all three care scores at 60, tourist beds per resident, outside seismic zone 1, road time to a hospital with inpatient beds, road time to an airport) and/or the verified comuni of a tax regime. Paged (max 100) and sortable. Healthcare scores are region grain (autonomous-province grain for Bolzano and Trento): every town in the region shares the score. A comune with no price, rent, population-change, climate, healthcare, tourism, seismic or drive-time figure is left out of the filter on it and COUNTED in `missingData` — never treated as cheap, free or stable; say how many were left out. The taxRegime filter lists only comuni on the regime's verified routes: a comune missing from it is NOT a 'no' (the response says so in `taxRegime.note`). Rows carry plain numbers; their source and vintage are in `figures`. Use search_comuni to turn a town name into a code, get_comune for one town's full profile.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "q": {
                "type": "string",
                "maxLength": 80,
                "minLength": 2,
                "description": "Only comuni whose name contains this (case- and accent-insensitive)."
              },
              "sort": {
                "enum": [
                  "population",
                  "name",
                  "purchasePrice",
                  "rent",
                  "populationChange",
                  "januaryLow",
                  "daysAbove30C",
                  "hospitalCareScore",
                  "bedsPerResident",
                  "seismicClass",
                  "hospitalDriveMinutes",
                  "emergencyDriveMinutes",
                  "deaDriveMinutes",
                  "airportDriveMinutes",
                  "supermarketDriveMinutes",
                  "pharmacyDriveMinutes",
                  "stationDriveMinutes"
                ],
                "type": "string",
                "default": "population",
                "description": "Sort key. A comune without a figure for the sort key always sorts last."
              },
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 100,
                "minimum": 1,
                "description": "Rows per page, 1–100. Default 25."
              },
              "order": {
                "enum": [
                  "asc",
                  "desc"
                ],
                "type": "string",
                "description": "Default: desc for population, populationChange, januaryLow and hospitalCareScore; asc for name, purchasePrice, rent, daysAbove30C, bedsPerResident, seismicClass, hospitalDriveMinutes, emergencyDriveMinutes, deaDriveMinutes, airportDriveMinutes, supermarketDriveMinutes, pharmacyDriveMinutes and stationDriveMinutes."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 10000,
                "minimum": 0,
                "description": "Rows to skip, for the next page."
              },
              "region": {
                "type": "string",
                "maxLength": 60,
                "minLength": 2,
                "description": "A region name or slug, e.g. \"Abruzzo\" or \"valle-d-aosta\"."
              },
              "province": {
                "type": "string",
                "maxLength": 60,
                "minLength": 2,
                "description": "A province's two-letter code (\"AQ\") or slug (\"l-aquila\")."
              },
              "taxRegime": {
                "type": "string",
                "maxLength": 80,
                "minLength": 1,
                "description": "A verified geographic regime slug from /tax/regimes. Lists only comuni on the regime's verified routes; a comune missing from the list is NOT a \"no\" (the rule may admit comuni by routes not yet encoded)."
              },
              "maxPopulation": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Residents, inclusive."
              },
              "minPopulation": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Residents, inclusive."
              },
              "minJanuaryLowC": {
                "type": "integer",
                "maximum": 12,
                "minimum": -10,
                "description": "[UI key jan] Average January daily minimum (ERA5-Land, 2015 to 2024) at least this many degrees C, whole numbers -10 to 12. Town grain. A comune with no figure is left out and counted in missingData."
              },
              "maxDaysAbove30C": {
                "type": "integer",
                "maximum": 120,
                "minimum": 0,
                "description": "[UI key heat] Average days a year above 30 C (ERA5-Land, 2015 to 2024) at most this many, 0 to 120. Town grain. No figure: left out and counted."
              },
              "emergencyDeaOnly": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "enum": [
                      "true",
                      "false"
                    ],
                    "type": "string"
                  }
                ],
                "description": "[UI key edlevel=dea] With maxEmergencyDriveMinutes: count only a DEA (level I or II), not a Pronto Soccorso. A DEA is a larger emergency department with more specialties on site. Ignored without maxEmergencyDriveMinutes."
              },
              "maxRentEurM2Month": {
                "type": "number",
                "minimum": 0,
                "description": "Rent in EUR/m2 per month, inclusive. A comune with no rent figure is left out."
              },
              "minRentEurM2Month": {
                "type": "number",
                "minimum": 0,
                "description": "Rent in EUR/m2 per month, inclusive. A comune with no rent figure is left out."
              },
              "maxBedsPerResident": {
                "type": "number",
                "description": "[UI key beds] Registered tourist beds per resident (ISTAT, 2024) at most this; one of 0.1, 0.5, 1. Town grain. A comune with no figure is left out and counted; a real zero is a figure."
              },
              "excludeSeismicZone1": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "enum": [
                      "true",
                      "false"
                    ],
                    "type": "string"
                  }
                ],
                "description": "[UI key seis] true: leave out comuni in official seismic zone 1, the highest hazard class (hazard class 4 in the map layer). A legal classification from the Dipartimento della Protezione Civile (31 May 2025), not a forecast. A comune with no single classification is left out and counted."
              },
              "minHospitalCareScore": {
                "type": "integer",
                "maximum": 100,
                "minimum": 50,
                "description": "[UI key hosp] Ministero della Salute NSG 2024 hospital-care score at least this, 50 to 100; 60 is the official sufficiency line. REGION grain: every comune in a region shares its region's score, except Bolzano-province and Trento-province comuni, which carry their own autonomous province's score. No figure: left out and counted."
              },
              "maxPurchasePriceEurM2": {
                "type": "number",
                "minimum": 0,
                "description": "Purchase price in EUR/m2, inclusive. A comune with no price is left out, never treated as cheap."
              },
              "minPurchasePriceEurM2": {
                "type": "number",
                "minimum": 0,
                "description": "Purchase price in EUR/m2, inclusive. A comune with no price is left out, never treated as cheap."
              },
              "allCareScoresAtLeast60": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "enum": [
                      "true",
                      "false"
                    ],
                    "type": "string"
                  }
                ],
                "description": "[UI key nsg60] true: the NSG prevention, community-care and hospital-care scores must all be at least 60. Region grain (autonomous-province grain for Bolzano and Trento). A comune missing any of the three is left out and counted."
              },
              "maxAirportDriveMinutes": {
                "type": "number",
                "description": "[UI key adrive] Minutes by road from the comune's main town to the nearest of the airports where ENAC recorded at least 4,000 passengers in 2025 (it leaves out Taranto-Grottaglie and Brescia-Montichiari, which carried almost none), at most this; one of 60, 90, 120, 180. Town grain, free-flow, approximate; says nothing about flights. No figure: left out and counted."
              },
              "maxPopulationChangePct": {
                "type": "number",
                "description": "Population change 2019 to 2025, in percent, inclusive."
              },
              "minPopulationChangePct": {
                "type": "number",
                "description": "Population change 2019 to 2025, in percent, inclusive. A negative value means decline."
              },
              "maxHospitalDriveMinutes": {
                "type": "number",
                "description": "[UI key hdrive] Minutes by road from the comune's main town to the nearest hospital with inpatient beds (Ministero della Salute 2023 list, OpenStreetMap roads) at most this; one of 15, 30, 45, 60. Town grain, free-flow, approximate. Not necessarily a hospital with an emergency department. A comune with no figure (for example a ferry-only island) is left out and counted."
              },
              "maxEmergencyDriveMinutes": {
                "type": "number",
                "description": "[UI key edrive] Minutes by road from the comune's main town to the nearest emergency department in the Ministero della Salute's emergency network (sites active at 31 December 2025: DEA level II, DEA level I or Pronto Soccorso; OpenStreetMap roads) at most this; one of 15, 30, 45, 60. Town grain, free-flow, approximate; not a service guarantee. Combine with emergencyDeaOnly to count only DEA level I or II. A comune with no figure is left out and counted."
              }
            }
          },
          "outputSchema": {
            "truncated": true,
            "chars": 28894
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "get_province",
          "title": "Get one province's profile",
          "description": "One Italian province (two-letter code such as AQ, or its slug — a comune's `provinceCode`): population, OMI prices, foreign residents by citizenship (citizenship, not birthplace), ALL ISTAT BES well-being indicators with polarity-aware percentiles among provinces (no composite score), every province- and region-grain map layer, `seismicZones` (how many of its comuni sit in each official seismic zone — a count of comuni, never an average, since a province has no zone of its own), and how much of the province meets each verified tax regime (places, not people). Sources use different province lists — Sardinia was reorganized in 2026 — so a section a source lacks is null with a reason and listed in `missingSections`: report it as missing, never substitute another province's figure.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9-]{1,59}$",
                "description": "A province's two-letter code, e.g. \"AQ\", or its slug, e.g. \"l-aquila\". Find it in a comune's `provinceCode`."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "province",
              "population",
              "prices",
              "foreignResidentsByCitizenship",
              "foreignResidentsAllCitizenships",
              "wellbeing",
              "seismicZones",
              "layers",
              "taxRegimes",
              "missingSections",
              "placesNotPeople",
              "attribution"
            ],
            "properties": {
              "layers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "value",
                    "unit",
                    "source",
                    "vintage",
                    "extractedOn",
                    "method",
                    "license",
                    "slug",
                    "label",
                    "grain",
                    "measuredFor",
                    "page",
                    "download"
                  ],
                  "properties": {
                    "note": {
                      "type": "string",
                      "description": "The source's own coverage caveat, where it has one."
                    },
                    "page": {
                      "type": "string",
                      "description": "The map page for this layer on expatliving.it — link readers here."
                    },
                    "slug": {
                      "type": "string",
                      "description": "The dataset slug, as in GET /datasets."
                    },
                    "unit": {
                      "type": "string"
                    },
                    "grain": {
                      "enum": [
                        "comune",
                        "province",
                        "autonomous_province",
                        "region"
                      ],
                      "type": "string",
                      "description": "The level this value is measured at. Only \"comune\" is a measurement of this comune itself. \"autonomous_province\" is Bolzano or Trento, which the source scores on their own rather than as one Trentino-Alto Adige region: the figure belongs to that autonomous province, not to the region."
                    },
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "method": {
                      "type": "string",
                      "description": "URL to the methodology page for this dataset."
                    },
                    "reason": {
                      "type": "string",
                      "description": "Present only when value is null: why this place has no figure."
                    },
                    "source": {
                      "type": "string"
                    },
                    "license": {
                      "type": "string"
                    },
                    "vintage": {
                      "type": "string",
                      "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                    },
                    "coverage": {
                      "type": "object",
                      "required": [
                        "in",
                        "of"
                      ],
                      "properties": {
                        "in": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991
                        },
                        "of": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991
                        }
                      },
                      "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                      "additionalProperties": false
                    },
                    "download": {
                      "type": "string",
                      "description": "The whole dataset, as published JSON (every place, with its meta block)."
                    },
                    "scaleNote": {
                      "type": "string",
                      "description": "Only on layers whose scale direction is easy to misread (the seismic hazard class): says which end is which."
                    },
                    "extractedOn": {
                      "type": "string",
                      "description": "ISO date this value was extracted from the source."
                    },
                    "measuredFor": {
                      "type": "string",
                      "description": "The place the value describes, e.g. \"L'Aquila (province)\"."
                    },
                    "officialZone": {
                      "type": "integer",
                      "maximum": 4,
                      "minimum": 1,
                      "description": "Only on the seismic hazard layer: the comune's official zona sismica (1 = highest hazard, 4 = lowest). NOTE this runs the opposite way to `value`, which is a hazard class (5 minus the zone). Omitted for comuni that straddle zones."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 100,
                "description": "Every province- and region-grain map layer for this province, each saying whose number it is."
              },
              "prices": {
                "type": "object",
                "required": [
                  "purchasePriceEurM2",
                  "rentPriceEurM2Month",
                  "comuniPriced"
                ],
                "properties": {
                  "comuniPriced": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "in",
                          "of"
                        ],
                        "properties": {
                          "in": {
                            "type": "integer",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991
                          },
                          "of": {
                            "type": "integer",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "How many of the province's comuni OMI priced; the province figure is population-weighted across them."
                  },
                  "purchasePriceEurM2": {
                    "type": "object",
                    "required": [
                      "value",
                      "unit",
                      "source",
                      "vintage",
                      "extractedOn",
                      "method",
                      "license"
                    ],
                    "properties": {
                      "unit": {
                        "type": "string"
                      },
                      "value": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "description": "URL to the methodology page for this dataset."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Present only when value is null: why this place has no figure."
                      },
                      "source": {
                        "type": "string"
                      },
                      "license": {
                        "type": "string"
                      },
                      "vintage": {
                        "type": "string",
                        "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                      },
                      "coverage": {
                        "type": "object",
                        "required": [
                          "in",
                          "of"
                        ],
                        "properties": {
                          "in": {
                            "type": "integer",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991
                          },
                          "of": {
                            "type": "integer",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991
                          }
                        },
                        "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                        "additionalProperties": false
                      },
                      "extractedOn": {
                        "type": "string",
                        "description": "ISO date this value was extracted from the source."
                      }
                    },
                    "description": "OMI is Agenzia delle Entrate's official range of market values per m2, built from recorded sales and appraisals. Asking prices on listing sites are what sellers hope for, and usually run higher.",
                    "additionalProperties": false
                  },
                  "rentPriceEurM2Month": {
                    "type": "object",
                    "required": [
                      "value",
                      "unit",
                      "source",
                      "vintage",
                      "extractedOn",
                      "method",
                      "license"
                    ],
                    "properties": {
                      "unit": {
                        "type": "string"
                      },
                      "value": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "description": "URL to the methodology page for this dataset."
                      },
                      "reason": {
                        "type": "string",
                        "description": "Present only when value is null: why this place has no figure."
                      },
                      "source": {
                        "type": "string"
                      },
                      "license": {
                        "type": "string"
                      },
                      "vintage": {
                        "type": "string",
                        "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                      },
                      "coverage": {
                        "type": "object",
                        "required": [
                          "in",
                          "of"
                        ],
                        "properties": {
                          "in": {
                            "type": "integer",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991
                          },
                          "of": {
                            "type": "integer",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991
                          }
                        },
                        "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                        "additionalProperties": false
                      },
                      "extractedOn": {
                        "type": "string",
                        "description": "ISO date this value was extracted from the source."
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "province": {
                "type": "object",
                "required": [
                  "code",
                  "slug",
                  "name",
                  "region",
                  "regionSlug",
                  "comuni",
                  "page",
                  "comuniQuery"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "This province's page on expatliving.it — link it when you quote any figure below."
                  },
                  "slug": {
                    "type": "string"
                  },
                  "comuni": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "How many comuni the province has in the comune list this site uses."
                  },
                  "region": {
                    "type": "string"
                  },
                  "regionSlug": {
                    "type": "string"
                  },
                  "comuniQuery": {
                    "type": "string",
                    "description": "Path to list its comuni with their figures: GET /comuni?province=."
                  }
                },
                "additionalProperties": false
              },
              "wellbeing": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license",
                  "grain",
                  "measuredFor",
                  "page"
                ],
                "properties": {
                  "page": {
                    "type": "string"
                  },
                  "unit": {
                    "type": "string"
                  },
                  "grain": {
                    "type": "string",
                    "const": "province"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "code",
                            "domain",
                            "label",
                            "unit",
                            "polarity",
                            "value",
                            "year",
                            "percentile",
                            "curated"
                          ],
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "unit": {
                              "type": "string"
                            },
                            "year": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "description": "The year this observation describes — indicators update on different cycles."
                            },
                            "label": {
                              "type": "string"
                            },
                            "value": {
                              "type": "number",
                              "description": "The raw indicator value."
                            },
                            "domain": {
                              "type": "string"
                            },
                            "curated": {
                              "type": "boolean",
                              "description": "True for the ~15 indicators shown by default on the site."
                            },
                            "polarity": {
                              "enum": [
                                "high",
                                "low"
                              ],
                              "type": "string",
                              "description": "\"high\": a higher raw value is better; \"low\": a lower one is."
                            },
                            "percentile": {
                              "type": "number",
                              "description": "0–100 rank among Italy's provinces, polarity-aware: higher is always better, whichever way the raw value runs."
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 80
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  },
                  "measuredFor": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "population": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "description": "Sum of the province's comuni.",
                "additionalProperties": false
              },
              "taxRegimes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "slug",
                    "label",
                    "href",
                    "qualifyingComuni",
                    "totalComuni",
                    "qualifyingPopulation",
                    "totalPopulation",
                    "ruleIsIncomplete"
                  ],
                  "properties": {
                    "href": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "totalComuni": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991
                    },
                    "totalPopulation": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991
                    },
                    "qualifyingComuni": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991
                    },
                    "ruleIsIncomplete": {
                      "type": "boolean"
                    },
                    "qualifyingPopulation": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 20,
                "description": "Verified regimes with at least one qualifying comune here: how much of the province meets the geographic criteria. Places, not people; a regime absent here is not a no."
              },
              "attribution": {
                "type": "object",
                "required": [
                  "publisher",
                  "url",
                  "citeAs",
                  "request",
                  "license"
                ],
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "The expatliving.it page these figures come from — link it when you quote them."
                  },
                  "citeAs": {
                    "type": "string",
                    "description": "A ready-made citation line."
                  },
                  "license": {
                    "type": "object",
                    "required": [
                      "name",
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "description": "License of Expat Living Italy's own work only; upstream data keeps its own license, per dataset.",
                    "additionalProperties": false
                  },
                  "request": {
                    "type": "string"
                  },
                  "publisher": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "seismicZones": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "comuniByOfficialZone",
                          "straddlingZones",
                          "comuniWithoutClassification",
                          "totalComuni",
                          "reading"
                        ],
                        "properties": {
                          "reading": {
                            "type": "string"
                          },
                          "totalComuni": {
                            "type": "integer",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991
                          },
                          "straddlingZones": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "name",
                                "label"
                              ],
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false
                            },
                            "description": "Comuni that straddle zones and so have no single zone; named, not rounded to one."
                          },
                          "comuniByOfficialZone": {
                            "type": "object",
                            "required": [
                              "zone1",
                              "zone2",
                              "zone3",
                              "zone4"
                            ],
                            "properties": {
                              "zone1": {
                                "type": "integer",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991
                              },
                              "zone2": {
                                "type": "integer",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991
                              },
                              "zone3": {
                                "type": "integer",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991
                              },
                              "zone4": {
                                "type": "integer",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991
                              }
                            },
                            "description": "Comuni in each official zone (zone1 is the highest hazard). Split comuni are not counted here.",
                            "additionalProperties": false
                          },
                          "comuniWithoutClassification": {
                            "type": "integer",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "description": "How this province's comuni are spread across the official seismic zones: a count per zone, never an average. A province has no zone of its own.",
                "additionalProperties": false
              },
              "missingSections": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "section",
                    "source",
                    "reason"
                  ],
                  "properties": {
                    "reason": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "section": {
                      "type": "string",
                      "description": "Which part of the profile is absent, e.g. \"wellbeing\" or \"layers.crime-rate-province-2024\"."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 120,
                "description": "Every part of this profile a source has no figure for, with why. Sources use different province lists (Sardinia was reorganized in 2026): a section a source lacks is listed here as missing, never filled in from another province."
              },
              "placesNotPeople": {
                "type": "boolean",
                "const": true
              },
              "foreignResidentsByCitizenship": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "code",
                            "count",
                            "shareOfPopulation"
                          ],
                          "properties": {
                            "code": {
                              "type": "string",
                              "description": "ISO-2 citizenship code."
                            },
                            "count": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991
                            },
                            "shareOfPopulation": {
                              "type": "number"
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "description": "Citizenship, not birthplace — excludes foreign-born Italian citizens — and only the citizenships this site tracks, so a floor on foreign residents. Summed over the comuni ISTAT has a row for: `coverage` says how many that is, and a comune with no row adds nothing rather than a zero.",
                "additionalProperties": false
              },
              "foreignResidentsAllCitizenships": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "description": "Residents holding any foreign citizenship: ISTAT's own total, not limited to the citizenships tracked in foreignResidentsByCitizenship. Citizenship, not birthplace. Summed over the comuni ISTAT has a total for: `coverage` says how many that is, and a comune with no total adds nothing rather than a zero.",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "get_region",
          "title": "Get one region's profile",
          "description": "One Italian region (slug such as abruzzo or friuli-venezia-giulia, or its name): population, foreign residents by citizenship (citizenship, not birthplace), `seismicZones` (a count of its comuni per official seismic zone, never an average), the region-grain map layers (healthcare scores), its provinces (look each up with get_province) and how much of the region meets each verified tax regime (places, not people). Trentino-Alto Adige/Südtirol is scored by autonomous province, so its regional healthcare value is null with a reason: use get_province for Bolzano and Trento. A section a source lacks is null and listed in `missingSections`: report it as missing.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "slug"
            ],
            "properties": {
              "slug": {
                "type": "string",
                "pattern": "^[A-Za-z][A-Za-z0-9 '-]{1,59}$",
                "description": "A region's slug, e.g. \"abruzzo\" or \"friuli-venezia-giulia\", or its name. Find it in a comune's `region` or a province's `regionSlug`."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "region",
              "population",
              "foreignResidentsByCitizenship",
              "foreignResidentsAllCitizenships",
              "seismicZones",
              "layers",
              "taxRegimes",
              "missingSections",
              "placesNotPeople",
              "attribution"
            ],
            "properties": {
              "layers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "value",
                    "unit",
                    "source",
                    "vintage",
                    "extractedOn",
                    "method",
                    "license",
                    "slug",
                    "label",
                    "grain",
                    "measuredFor",
                    "page",
                    "download"
                  ],
                  "properties": {
                    "note": {
                      "type": "string",
                      "description": "The source's own coverage caveat, where it has one."
                    },
                    "page": {
                      "type": "string",
                      "description": "The map page for this layer on expatliving.it — link readers here."
                    },
                    "slug": {
                      "type": "string",
                      "description": "The dataset slug, as in GET /datasets."
                    },
                    "unit": {
                      "type": "string"
                    },
                    "grain": {
                      "enum": [
                        "comune",
                        "province",
                        "autonomous_province",
                        "region"
                      ],
                      "type": "string",
                      "description": "The level this value is measured at. Only \"comune\" is a measurement of this comune itself. \"autonomous_province\" is Bolzano or Trento, which the source scores on their own rather than as one Trentino-Alto Adige region: the figure belongs to that autonomous province, not to the region."
                    },
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "method": {
                      "type": "string",
                      "description": "URL to the methodology page for this dataset."
                    },
                    "reason": {
                      "type": "string",
                      "description": "Present only when value is null: why this place has no figure."
                    },
                    "source": {
                      "type": "string"
                    },
                    "license": {
                      "type": "string"
                    },
                    "vintage": {
                      "type": "string",
                      "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                    },
                    "coverage": {
                      "type": "object",
                      "required": [
                        "in",
                        "of"
                      ],
                      "properties": {
                        "in": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991
                        },
                        "of": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991
                        }
                      },
                      "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                      "additionalProperties": false
                    },
                    "download": {
                      "type": "string",
                      "description": "The whole dataset, as published JSON (every place, with its meta block)."
                    },
                    "scaleNote": {
                      "type": "string",
                      "description": "Only on layers whose scale direction is easy to misread (the seismic hazard class): says which end is which."
                    },
                    "extractedOn": {
                      "type": "string",
                      "description": "ISO date this value was extracted from the source."
                    },
                    "measuredFor": {
                      "type": "string",
                      "description": "The place the value describes, e.g. \"L'Aquila (province)\"."
                    },
                    "officialZone": {
                      "type": "integer",
                      "maximum": 4,
                      "minimum": 1,
                      "description": "Only on the seismic hazard layer: the comune's official zona sismica (1 = highest hazard, 4 = lowest). NOTE this runs the opposite way to `value`, which is a hazard class (5 minus the zone). Omitted for comuni that straddle zones."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 100,
                "description": "Every region-grain map layer (healthcare scores) for this region. Trentino-Alto Adige/Südtirol is scored by autonomous province, so its regional value is null with a reason: look up Bolzano and Trento with GET /province/{code}. Province- and comune-grain layers are not rolled up here."
              },
              "region": {
                "type": "object",
                "required": [
                  "name",
                  "slug",
                  "provinces",
                  "comuni",
                  "page",
                  "comuniQuery"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "This region's page on expatliving.it — link it when you quote any figure below."
                  },
                  "slug": {
                    "type": "string"
                  },
                  "comuni": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "How many comuni the region has in the comune list this site uses."
                  },
                  "provinces": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "code",
                        "name",
                        "slug"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "slug": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 20,
                    "description": "The region's provinces on the list this site uses; look each up with GET /province/{code}."
                  },
                  "comuniQuery": {
                    "type": "string",
                    "description": "Path to list its comuni with their figures: GET /comuni?region=."
                  }
                },
                "additionalProperties": false
              },
              "population": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "description": "Sum of the region's comuni.",
                "additionalProperties": false
              },
              "taxRegimes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "slug",
                    "label",
                    "href",
                    "qualifyingComuni",
                    "totalComuni",
                    "qualifyingPopulation",
                    "totalPopulation",
                    "ruleIsIncomplete"
                  ],
                  "properties": {
                    "href": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "totalComuni": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991
                    },
                    "totalPopulation": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991
                    },
                    "qualifyingComuni": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991
                    },
                    "ruleIsIncomplete": {
                      "type": "boolean"
                    },
                    "qualifyingPopulation": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 20,
                "description": "Verified regimes with at least one qualifying comune here. Places, not people; a regime absent here is not a no."
              },
              "attribution": {
                "type": "object",
                "required": [
                  "publisher",
                  "url",
                  "citeAs",
                  "request",
                  "license"
                ],
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "The expatliving.it page these figures come from — link it when you quote them."
                  },
                  "citeAs": {
                    "type": "string",
                    "description": "A ready-made citation line."
                  },
                  "license": {
                    "type": "object",
                    "required": [
                      "name",
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "description": "License of Expat Living Italy's own work only; upstream data keeps its own license, per dataset.",
                    "additionalProperties": false
                  },
                  "request": {
                    "type": "string"
                  },
                  "publisher": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "seismicZones": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "comuniByOfficialZone",
                          "straddlingZones",
                          "comuniWithoutClassification",
                          "totalComuni",
                          "reading"
                        ],
                        "properties": {
                          "reading": {
                            "type": "string"
                          },
                          "totalComuni": {
                            "type": "integer",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991
                          },
                          "straddlingZones": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "name",
                                "label"
                              ],
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                }
                              },
                              "additionalProperties": false
                            },
                            "description": "Comuni that straddle zones and so have no single zone; named, not rounded to one."
                          },
                          "comuniByOfficialZone": {
                            "type": "object",
                            "required": [
                              "zone1",
                              "zone2",
                              "zone3",
                              "zone4"
                            ],
                            "properties": {
                              "zone1": {
                                "type": "integer",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991
                              },
                              "zone2": {
                                "type": "integer",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991
                              },
                              "zone3": {
                                "type": "integer",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991
                              },
                              "zone4": {
                                "type": "integer",
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991
                              }
                            },
                            "description": "Comuni in each official zone (zone1 is the highest hazard). Split comuni are not counted here.",
                            "additionalProperties": false
                          },
                          "comuniWithoutClassification": {
                            "type": "integer",
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "description": "How this region's comuni are spread across the official seismic zones: a count per zone, never an average.",
                "additionalProperties": false
              },
              "missingSections": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "section",
                    "source",
                    "reason"
                  ],
                  "properties": {
                    "reason": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "section": {
                      "type": "string",
                      "description": "Which part of the profile is absent, e.g. \"wellbeing\" or \"layers.crime-rate-province-2024\"."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 120,
                "description": "Every part of this profile a source has no figure for, with why."
              },
              "placesNotPeople": {
                "type": "boolean",
                "const": true
              },
              "foreignResidentsByCitizenship": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "code",
                            "count",
                            "shareOfPopulation"
                          ],
                          "properties": {
                            "code": {
                              "type": "string",
                              "description": "ISO-2 citizenship code."
                            },
                            "count": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991
                            },
                            "shareOfPopulation": {
                              "type": "number"
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "description": "Citizenship, not birthplace, and only the citizenships this site tracks, so a floor. Summed over the comuni ISTAT has a row for: `coverage` says how many that is, and a comune with no row adds nothing rather than a zero.",
                "additionalProperties": false
              },
              "foreignResidentsAllCitizenships": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "description": "ISTAT's own all-citizenship total (citizenship, not birthplace), summed over the comuni that have one; `coverage` says how many.",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "get_nationality",
          "title": "Where one nationality lives in Italy",
          "description": "For one tracked citizenship (ISO-2 code such as US, GB, DE): the comuni, provinces and regions where its holders concentrate, with counts and shares. It is CITIZENSHIP, not birthplace — foreign-born Italian citizens are not counted — and it carries small-number caveats: the comune ranking skips places under 1,000 residents by default and flags rows under 30 residents (`smallNumber`). A comune with no ISTAT row is left out, not counted as zero, so totals are floors. State those caveats when you quote a ranking; they are in the result's `caveats`. Province and comune lists are different levels of detail — say which.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "cc"
            ],
            "properties": {
              "cc": {
                "type": "string",
                "pattern": "^[A-Za-z]{2}$",
                "description": "ISO-2 citizenship code of one of the citizenships this site tracks, e.g. \"US\"."
              },
              "limit": {
                "type": "integer",
                "default": 10,
                "maximum": 50,
                "minimum": 1,
                "description": "How many comuni and provinces to list, 1–50. Default 10."
              },
              "rankBy": {
                "enum": [
                  "share",
                  "count"
                ],
                "type": "string",
                "default": "share",
                "description": "share: residents with this citizenship as a fraction of the comune's population. count: absolute numbers."
              },
              "minPopulation": {
                "type": "integer",
                "maximum": 100000,
                "minimum": 0,
                "description": "Smallest comune, in residents, that may appear in the comune ranking. Default 1,000: in a village of sixty, four foreign residents is not a finding. Lowering it lets tiny places top the ranking."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "nationality",
              "citizenshipNotBirthplace",
              "caveats",
              "nationalTotal",
              "topComuni",
              "topProvinces",
              "byRegion",
              "attribution"
            ],
            "properties": {
              "caveats": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Read these before quoting a number; they travel with the data."
              },
              "byRegion": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "region",
                            "population",
                            "count",
                            "shareOfPopulation"
                          ],
                          "properties": {
                            "count": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991
                            },
                            "region": {
                              "type": "string"
                            },
                            "population": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991
                            },
                            "shareOfPopulation": {
                              "type": "number"
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 25
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "additionalProperties": false
              },
              "topComuni": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license",
                  "rankedBy",
                  "populationFloor",
                  "comuniConsidered"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "rank",
                            "istatCode",
                            "name",
                            "province",
                            "provinceCode",
                            "region",
                            "population",
                            "count",
                            "shareOfPopulation",
                            "smallNumber",
                            "page"
                          ],
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "page": {
                              "type": "string"
                            },
                            "rank": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991
                            },
                            "count": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991
                            },
                            "region": {
                              "type": "string"
                            },
                            "province": {
                              "type": "string"
                            },
                            "istatCode": {
                              "type": "string"
                            },
                            "population": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991
                            },
                            "smallNumber": {
                              "type": "boolean",
                              "description": "True when fewer than 30 residents hold this citizenship here: the share rests on a handful of households."
                            },
                            "provinceCode": {
                              "type": "string"
                            },
                            "shareOfPopulation": {
                              "type": "number",
                              "description": "A fraction, 0–1."
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 50
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "rankedBy": {
                    "enum": [
                      "share",
                      "count"
                    ],
                    "type": "string"
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  },
                  "populationFloor": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991
                  },
                  "comuniConsidered": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "Comuni at or above the floor that have a citizenship row."
                  }
                },
                "additionalProperties": false
              },
              "attribution": {
                "type": "object",
                "required": [
                  "publisher",
                  "url",
                  "citeAs",
                  "request",
                  "license"
                ],
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "The expatliving.it page these figures come from — link it when you quote them."
                  },
                  "citeAs": {
                    "type": "string",
                    "description": "A ready-made citation line."
                  },
                  "license": {
                    "type": "object",
                    "required": [
                      "name",
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "description": "License of Expat Living Italy's own work only; upstream data keeps its own license, per dataset.",
                    "additionalProperties": false
                  },
                  "request": {
                    "type": "string"
                  },
                  "publisher": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "nationality": {
                "type": "object",
                "required": [
                  "code",
                  "country",
                  "demonym",
                  "page"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "Where this nationality lives, on expatliving.it — link it when you quote any figure below."
                  },
                  "country": {
                    "type": "string"
                  },
                  "demonym": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "topProvinces": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "required": [
                            "rank",
                            "code",
                            "name",
                            "region",
                            "population",
                            "count",
                            "shareOfPopulation",
                            "comuniWithData",
                            "page"
                          ],
                          "properties": {
                            "code": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "page": {
                              "type": "string"
                            },
                            "rank": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991
                            },
                            "count": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991
                            },
                            "region": {
                              "type": "string"
                            },
                            "population": {
                              "type": "integer",
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "description": "Residents of the comuni ISTAT has a citizenship row for — the denominator of the share."
                            },
                            "comuniWithData": {
                              "type": "object",
                              "required": [
                                "in",
                                "of"
                              ],
                              "properties": {
                                "in": {
                                  "type": "integer",
                                  "maximum": 9007199254740991,
                                  "minimum": -9007199254740991
                                },
                                "of": {
                                  "type": "integer",
                                  "maximum": 9007199254740991,
                                  "minimum": -9007199254740991
                                }
                              },
                              "additionalProperties": false
                            },
                            "shareOfPopulation": {
                              "type": "number",
                              "description": "A fraction, 0–1."
                            }
                          },
                          "additionalProperties": false
                        },
                        "maxItems": 50
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "description": "Province grain: a different level of detail from the comuni above. Sums only the comuni ISTAT has a row for.",
                "additionalProperties": false
              },
              "nationalTotal": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "description": "Residents with this citizenship in the comuni ISTAT reports on; `coverage` is how many comuni that is.",
                "additionalProperties": false
              },
              "citizenshipNotBirthplace": {
                "type": "boolean",
                "const": true,
                "description": "Every count here is by CITIZENSHIP, not country of birth: it leaves out foreign-born people who hold Italian citizenship."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "get_coverage",
          "title": "What is missing, by dataset",
          "description": "For every dataset: how many places it covers, out of how many at its grain, plus the source's own coverage caveat. Pass `dataset` (a slug from list_datasets) to list the places that dataset lacks, with the gaps by region. Use it before telling anyone data does not exist for a place, and to explain a null. Missing means no figure, never a zero. Keys a source publishes that match no current place (a superseded province code) are reported and never mapped onto a current place. Drafts are listed as not served, without counts.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 100,
                "minimum": 1,
                "description": "Missing places per page when dataset is given, 1–100. Default 50."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 10000,
                "minimum": 0,
                "description": "Missing places to skip, for the next page."
              },
              "dataset": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1,
                "description": "A dataset slug from /datasets. Omit it for the summary of every dataset; pass it to list the places that dataset lacks."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "datasets",
              "attribution"
            ],
            "properties": {
              "datasets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "slug",
                    "label",
                    "source",
                    "vintage",
                    "grain",
                    "servable",
                    "status",
                    "covered",
                    "of",
                    "missing"
                  ],
                  "properties": {
                    "of": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Places at this grain (comuni, provinces or regions). null when there is no fixed list."
                    },
                    "note": {
                      "type": "string",
                      "description": "The source's own coverage caveat, or why no count is given."
                    },
                    "page": {
                      "type": "string",
                      "description": "The human-readable page for this dataset on expatliving.it — link readers here."
                    },
                    "slug": {
                      "type": "string"
                    },
                    "grain": {
                      "enum": [
                        "comune",
                        "province",
                        "region",
                        "nuts2",
                        "nuts3",
                        "national"
                      ],
                      "type": "string",
                      "description": "The geographic level the source publishes at. NUTS 2 and NUTS 3 are Eurostat/OECD statistical regions — close to, but not the same as, Italy's regions and provinces. Never present a coarser-grain value as if it were measured for one comune."
                    },
                    "label": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string",
                      "description": "The institution to cite, e.g. \"ISTAT\" or \"Eurostat\"."
                    },
                    "status": {
                      "enum": [
                        "complete",
                        "partial",
                        "universe_not_fixed",
                        "not_served"
                      ],
                      "type": "string",
                      "description": "complete: every place at this grain. partial: some places missing. universe_not_fixed: NUTS or national data with no fixed list of places to count against. not_served: a draft dataset, whose figures and counts are not published."
                    },
                    "covered": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Places with a figure. null when not served."
                    },
                    "missing": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Places with no figure: of minus covered. Absent data, never a zero."
                    },
                    "vintage": {
                      "type": "string",
                      "description": "The period the data describes, e.g. \"2025H2\", \"2024\" or \"2015–2024\" — not when it was fetched."
                    },
                    "servable": {
                      "type": "boolean",
                      "description": "False while a hand-curated dataset is still \"draft\" (unverified against its legislation). A non-servable dataset returns no values anywhere in this API."
                    },
                    "missingPlacesQuery": {
                      "type": "string",
                      "description": "Path that lists the missing places: GET /meta/coverage?dataset=."
                    },
                    "keysOutsideCurrentList": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "maxItems": 20,
                      "description": "Keys the source publishes that match no place on the current list (e.g. a superseded province code). Never mapped onto a current place."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 150
              },
              "attribution": {
                "type": "object",
                "required": [
                  "publisher",
                  "url",
                  "citeAs",
                  "request",
                  "license"
                ],
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "The expatliving.it page these figures come from — link it when you quote them."
                  },
                  "citeAs": {
                    "type": "string",
                    "description": "A ready-made citation line."
                  },
                  "license": {
                    "type": "object",
                    "required": [
                      "name",
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "description": "License of Expat Living Italy's own work only; upstream data keeps its own license, per dataset.",
                    "additionalProperties": false
                  },
                  "request": {
                    "type": "string"
                  },
                  "publisher": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "missingPlaces": {
                "type": "object",
                "required": [
                  "dataset",
                  "total",
                  "returned",
                  "limit",
                  "offset",
                  "hasMore",
                  "nextOffset",
                  "byRegion",
                  "items"
                ],
                "properties": {
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "grain",
                        "code",
                        "name"
                      ],
                      "properties": {
                        "code": {
                          "type": "string",
                          "description": "ISTAT code for a comune, sigla for a province, name for a region."
                        },
                        "name": {
                          "type": "string"
                        },
                        "grain": {
                          "enum": [
                            "comune",
                            "province",
                            "region"
                          ],
                          "type": "string"
                        },
                        "region": {
                          "type": "string"
                        },
                        "province": {
                          "type": "string"
                        },
                        "provinceCode": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 100
                  },
                  "limit": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991
                  },
                  "total": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991
                  },
                  "offset": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991
                  },
                  "dataset": {
                    "type": "string"
                  },
                  "hasMore": {
                    "type": "boolean"
                  },
                  "byRegion": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "region",
                        "missing"
                      ],
                      "properties": {
                        "region": {
                          "type": "string"
                        },
                        "missing": {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 25,
                    "description": "Where the gaps are, region by region, over the whole list (not just this page)."
                  },
                  "returned": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991
                  },
                  "nextOffset": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "description": "Present only when `dataset` was given and it has missing places.",
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "list_datasets",
          "title": "List every dataset behind expatliving.it",
          "description": "The catalog: each dataset's source institution, vintage (the period it describes), geographic grain, license, the expatliving.it page that presents it, and whether it is servable (false = still an unverified draft; never quote its values). Use it to say what data exists and where a reader can see it.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "datasets",
              "attribution"
            ],
            "properties": {
              "datasets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "slug",
                    "label",
                    "source",
                    "sourceUrl",
                    "vintage",
                    "extractedOn",
                    "license",
                    "grain",
                    "servable"
                  ],
                  "properties": {
                    "page": {
                      "type": "string",
                      "description": "The human-readable page for this dataset on expatliving.it — link readers here."
                    },
                    "slug": {
                      "type": "string"
                    },
                    "grain": {
                      "enum": [
                        "comune",
                        "province",
                        "region",
                        "nuts2",
                        "nuts3",
                        "national"
                      ],
                      "type": "string",
                      "description": "The geographic level the source publishes at. NUTS 2 and NUTS 3 are Eurostat/OECD statistical regions — close to, but not the same as, Italy's regions and provinces. Never present a coarser-grain value as if it were measured for one comune."
                    },
                    "label": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string",
                      "description": "The institution to cite, e.g. \"ISTAT\" or \"Eurostat\"."
                    },
                    "license": {
                      "type": "string"
                    },
                    "vintage": {
                      "type": "string",
                      "description": "The period the data describes, e.g. \"2025H2\", \"2024\" or \"2015–2024\" — not when it was fetched."
                    },
                    "download": {
                      "type": "string",
                      "description": "The whole dataset as published JSON: a meta block (provenance, unit, grain) and every place's value."
                    },
                    "servable": {
                      "type": "boolean",
                      "description": "False while a hand-curated dataset is still \"draft\" (unverified against its legislation). A non-servable dataset returns no values anywhere in this API."
                    },
                    "sourceUrl": {
                      "type": "string",
                      "description": "Where this dataset was fetched from upstream."
                    },
                    "extractedOn": {
                      "type": "string",
                      "description": "ISO date this dataset was extracted from the source."
                    }
                  },
                  "additionalProperties": false
                }
              },
              "attribution": {
                "type": "object",
                "required": [
                  "publisher",
                  "url",
                  "citeAs",
                  "request",
                  "license"
                ],
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "The expatliving.it page these figures come from — link it when you quote them."
                  },
                  "citeAs": {
                    "type": "string",
                    "description": "A ready-made citation line."
                  },
                  "license": {
                    "type": "object",
                    "required": [
                      "name",
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "description": "License of Expat Living Italy's own work only; upstream data keeps its own license, per dataset.",
                    "additionalProperties": false
                  },
                  "request": {
                    "type": "string"
                  },
                  "publisher": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "list_tax_regimes",
          "title": "List the Italian tax regimes this site encodes",
          "description": "Each regime's status (verified or draft), whether it depends on place (geographic) or on the person, its legislation, population ceiling and how many comuni meet its verified criteria. Places, not people: not tax advice.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "regimes",
              "placesNotPeople",
              "disclaimer",
              "attribution"
            ],
            "properties": {
              "regimes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "slug",
                    "label",
                    "shortLabel",
                    "status",
                    "criteria",
                    "page",
                    "summary",
                    "validFrom",
                    "sourceLegislation",
                    "knownIncompleteness"
                  ],
                  "properties": {
                    "page": {
                      "type": "string",
                      "description": "The regime's page on expatliving.it."
                    },
                    "slug": {
                      "type": "string",
                      "description": "The regime's id, e.g. \"regime-7-percent-pensioners\"."
                    },
                    "label": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "verified",
                        "draft"
                      ],
                      "type": "string",
                      "description": "draft: encoded but not yet checked against the legislation. A draft regime's eligibility is never served."
                    },
                    "summary": {
                      "type": "string"
                    },
                    "criteria": {
                      "enum": [
                        "geographic",
                        "person"
                      ],
                      "type": "string",
                      "description": "geographic: some comuni qualify and others don't. person: turns on who you are, not where you live; no per-comune answer exists."
                    },
                    "validFrom": {
                      "type": "string"
                    },
                    "shortLabel": {
                      "type": "string"
                    },
                    "maxPopulation": {
                      "type": "number",
                      "description": "The population ceiling, for a geographic regime that has one."
                    },
                    "qualifyingComuni": {
                      "type": "integer",
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "description": "How many comuni meet the verified geographic criteria. Only for a verified geographic regime."
                    },
                    "sourceLegislation": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "cite",
                          "title",
                          "url"
                        ],
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "cite": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "knownIncompleteness": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Ways the encoded rule is narrower than the law. A comune missing from the set is not proof it doesn't qualify while this is non-empty."
                    }
                  },
                  "additionalProperties": false
                },
                "maxItems": 50
              },
              "disclaimer": {
                "type": "string"
              },
              "attribution": {
                "type": "object",
                "required": [
                  "publisher",
                  "url",
                  "citeAs",
                  "request",
                  "license"
                ],
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "The expatliving.it page these figures come from — link it when you quote them."
                  },
                  "citeAs": {
                    "type": "string",
                    "description": "A ready-made citation line."
                  },
                  "license": {
                    "type": "object",
                    "required": [
                      "name",
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "description": "License of Expat Living Italy's own work only; upstream data keeps its own license, per dataset.",
                    "additionalProperties": false
                  },
                  "request": {
                    "type": "string"
                  },
                  "publisher": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "placesNotPeople": {
                "type": "boolean",
                "const": true
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "check_tax_eligibility",
          "title": "Does a comune meet a regime's geographic criteria?",
          "description": "For one regime slug (from list_tax_regimes) and one 6-digit ISTAT code (from search_comuni): qualifies, does_not_qualify or not_assessable, with a one-sentence reason to quote. not_assessable is never a no. This is about the place only; say so, and never present it as whether a person qualifies or as tax advice.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "slug",
              "comune"
            ],
            "properties": {
              "slug": {
                "type": "string",
                "maxLength": 80,
                "minLength": 1,
                "description": "A regime slug from /tax/regimes, e.g. \"regime-7-percent-pensioners\"."
              },
              "comune": {
                "type": "string",
                "pattern": "^\\d{6}$",
                "description": "6-digit ISTAT comune code. Find it with /comuni?q=."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "regime",
              "place",
              "geographicEligibility",
              "reason",
              "population",
              "ruleIsIncomplete",
              "placesNotPeople",
              "disclaimer",
              "attribution"
            ],
            "properties": {
              "place": {
                "type": "object",
                "required": [
                  "istatCode",
                  "slug",
                  "name",
                  "province",
                  "provinceCode",
                  "provinceSlug",
                  "region",
                  "regionSlug",
                  "lat",
                  "lng",
                  "page"
                ],
                "properties": {
                  "lat": {
                    "type": "number"
                  },
                  "lng": {
                    "type": "number"
                  },
                  "name": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "This comune's profile page on expatliving.it — link it when you quote any figure below."
                  },
                  "slug": {
                    "type": "string",
                    "description": "Stable URL slug for /data/comune/{slug} — never changes, even if a comune merges."
                  },
                  "region": {
                    "type": "string"
                  },
                  "province": {
                    "type": "string"
                  },
                  "istatCode": {
                    "type": "string",
                    "description": "6-digit ISTAT comune code, e.g. 075029."
                  },
                  "regionSlug": {
                    "type": "string"
                  },
                  "provinceCode": {
                    "type": "string"
                  },
                  "provinceSlug": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "reason": {
                "type": "string",
                "description": "One sentence on why, safe to quote."
              },
              "regime": {
                "type": "object",
                "required": [
                  "slug",
                  "label",
                  "status",
                  "criteria",
                  "page"
                ],
                "properties": {
                  "page": {
                    "type": "string",
                    "description": "The regime's page on expatliving.it."
                  },
                  "slug": {
                    "type": "string",
                    "description": "The regime's id, e.g. \"regime-7-percent-pensioners\"."
                  },
                  "label": {
                    "type": "string"
                  },
                  "status": {
                    "enum": [
                      "verified",
                      "draft"
                    ],
                    "type": "string",
                    "description": "draft: encoded but not yet checked against the legislation. A draft regime's eligibility is never served."
                  },
                  "criteria": {
                    "enum": [
                      "geographic",
                      "person"
                    ],
                    "type": "string",
                    "description": "geographic: some comuni qualify and others don't. person: turns on who you are, not where you live; no per-comune answer exists."
                  }
                },
                "additionalProperties": false
              },
              "headroom": {
                "type": "number",
                "description": "Residents between this comune and the ceiling, when it qualifies."
              },
              "disclaimer": {
                "type": "string"
              },
              "population": {
                "type": "object",
                "required": [
                  "value",
                  "unit",
                  "source",
                  "vintage",
                  "extractedOn",
                  "method",
                  "license"
                ],
                "properties": {
                  "unit": {
                    "type": "string"
                  },
                  "value": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "method": {
                    "type": "string",
                    "description": "URL to the methodology page for this dataset."
                  },
                  "reason": {
                    "type": "string",
                    "description": "Present only when value is null: why this place has no figure."
                  },
                  "source": {
                    "type": "string"
                  },
                  "license": {
                    "type": "string"
                  },
                  "vintage": {
                    "type": "string",
                    "description": "The period the value describes, e.g. \"2025H2\" or \"2025\" — not when it was fetched."
                  },
                  "coverage": {
                    "type": "object",
                    "required": [
                      "in",
                      "of"
                    ],
                    "properties": {
                      "in": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      },
                      "of": {
                        "type": "integer",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991
                      }
                    },
                    "description": "How many of Italy's places this dataset covers at all, e.g. 7587 of 7894 comuni.",
                    "additionalProperties": false
                  },
                  "extractedOn": {
                    "type": "string",
                    "description": "ISO date this value was extracted from the source."
                  }
                },
                "additionalProperties": false
              },
              "attribution": {
                "type": "object",
                "required": [
                  "publisher",
                  "url",
                  "citeAs",
                  "request",
                  "license"
                ],
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "page": {
                    "type": "string",
                    "description": "The expatliving.it page these figures come from — link it when you quote them."
                  },
                  "citeAs": {
                    "type": "string",
                    "description": "A ready-made citation line."
                  },
                  "license": {
                    "type": "object",
                    "required": [
                      "name",
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "description": "License of Expat Living Italy's own work only; upstream data keeps its own license, per dataset.",
                    "additionalProperties": false
                  },
                  "request": {
                    "type": "string"
                  },
                  "publisher": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "maxPopulation": {
                "type": "number"
              },
              "placesNotPeople": {
                "type": "boolean",
                "const": true
              },
              "ruleIsIncomplete": {
                "type": "boolean"
              },
              "geographicEligibility": {
                "enum": [
                  "qualifies",
                  "does_not_qualify",
                  "not_assessable"
                ],
                "type": "string",
                "description": "qualifies: the comune meets the regime's verified geographic criteria. does_not_qualify: it doesn't, and the rule has no unverified route that could admit it. not_assessable: no geographic answer can be given (see reason)."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "list_articles",
          "title": "List Expat Living Italy's articles",
          "description": "Dated, sourced reporting on moving to and retiring in Italy, newest first. Filter by topic, by place (a comune's ISTAT code) or by dataset slug. Each entry has its URL, a Markdown URL for the full text, and the places and datasets it cites. Content is free to use provided you credit Expat Living Italy and link to the article.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "place": {
                "type": "string",
                "description": "A comune's 6-digit ISTAT code (or a province sigla / region slug)."
              },
              "topic": {
                "type": "string",
                "description": "One of: tax, residency-visas, costs-housing, healthcare, places, daily-life, data-method."
              },
              "dataset": {
                "type": "string",
                "description": "A dataset slug from GET /datasets."
              },
              "include": {
                "enum": [
                  "archived"
                ],
                "type": "string",
                "description": "Pass `archived` to include archived articles, flagged by `status`."
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "articles",
              "attribution"
            ],
            "properties": {
              "articles": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "slug",
                    "title",
                    "deck",
                    "author",
                    "published",
                    "updated",
                    "status",
                    "topics",
                    "url",
                    "markdownUrl",
                    "places",
                    "datasets"
                  ],
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "deck": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "author": {
                      "type": "string"
                    },
                    "places": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "grain",
                          "code",
                          "name",
                          "url"
                        ],
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "code": {
                            "type": "string",
                            "description": "ISTAT code for a comune, sigla for a province, slug for a region."
                          },
                          "name": {
                            "type": "string"
                          },
                          "grain": {
                            "enum": [
                              "comune",
                              "province",
                              "region"
                            ],
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "status": {
                      "enum": [
                        "published",
                        "archived"
                      ],
                      "type": "string"
                    },
                    "topics": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "updated": {
                      "type": "string"
                    },
                    "datasets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "title",
                          "url"
                        ],
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string",
                            "description": "The dataset's slug in GET /datasets, when the page is one of them."
                          },
                          "title": {
                            "type": "string"
                          },
                          "vintage": {
                            "type": "string"
                          },
                          "coverage": {
                            "type": "string",
                            "description": "How much of the place set the data covers, as the article states it."
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "published": {
                      "type": "string"
                    },
                    "markdownUrl": {
                      "type": "string",
                      "description": "The whole article as Markdown, with its citation at both ends."
                    },
                    "supersededBy": {
                      "type": "string",
                      "description": "Slug of the newer article that replaces this one."
                    }
                  },
                  "additionalProperties": false
                }
              },
              "attribution": {
                "type": "object",
                "required": [
                  "required",
                  "license",
                  "creditText",
                  "requirement",
                  "citeAs"
                ],
                "properties": {
                  "citeAs": {
                    "type": "string",
                    "description": "Per article: \"“<title>” by <author>, Expat Living Italy, <date>. <url>\"."
                  },
                  "license": {
                    "type": "object",
                    "required": [
                      "name",
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  },
                  "required": {
                    "type": "boolean",
                    "const": true,
                    "description": "Credit with a link is the condition of free use (CC BY 4.0)."
                  },
                  "creditText": {
                    "type": "string"
                  },
                  "requirement": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        },
        {
          "name": "get_article",
          "title": "Read one article",
          "description": "One article's full text as Markdown, with its places, datasets and a ready-made citation. Quote figures from the dataset pages it cites, which carry their vintage. Content is free to use provided you credit Expat Living Italy and link to the article.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "slug"
            ],
            "properties": {
              "slug": {
                "type": "string",
                "maxLength": 120,
                "minLength": 1
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "slug",
              "title",
              "deck",
              "author",
              "published",
              "updated",
              "status",
              "topics",
              "url",
              "markdownUrl",
              "places",
              "datasets",
              "body",
              "attribution"
            ],
            "properties": {
              "url": {
                "type": "string"
              },
              "body": {
                "type": "string",
                "description": "The article as Markdown, blocks flattened."
              },
              "deck": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "author": {
                "type": "string"
              },
              "places": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "grain",
                    "code",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string",
                      "description": "ISTAT code for a comune, sigla for a province, slug for a region."
                    },
                    "name": {
                      "type": "string"
                    },
                    "grain": {
                      "enum": [
                        "comune",
                        "province",
                        "region"
                      ],
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "status": {
                "enum": [
                  "published",
                  "archived"
                ],
                "type": "string"
              },
              "topics": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "updated": {
                "type": "string"
              },
              "datasets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "title",
                    "url"
                  ],
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "slug": {
                      "type": "string",
                      "description": "The dataset's slug in GET /datasets, when the page is one of them."
                    },
                    "title": {
                      "type": "string"
                    },
                    "vintage": {
                      "type": "string"
                    },
                    "coverage": {
                      "type": "string",
                      "description": "How much of the place set the data covers, as the article states it."
                    }
                  },
                  "additionalProperties": false
                }
              },
              "published": {
                "type": "string"
              },
              "attribution": {
                "type": "object",
                "required": [
                  "required",
                  "license",
                  "creditText",
                  "citeAs",
                  "requirement"
                ],
                "properties": {
                  "citeAs": {
                    "type": "string",
                    "description": "A ready-made citation line, with the article's canonical URL."
                  },
                  "license": {
                    "type": "object",
                    "required": [
                      "name",
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  },
                  "required": {
                    "type": "boolean",
                    "const": true,
                    "description": "Credit with a link is the condition of free use (CC BY 4.0)."
                  },
                  "creditText": {
                    "type": "string"
                  },
                  "requirement": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "markdownUrl": {
                "type": "string",
                "description": "The whole article as Markdown, with its citation at both ends."
              },
              "supersededBy": {
                "type": "string",
                "description": "Slug of the newer article that replaces this one."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": "Expat Living Italy (expatliving.it): sourced data for people relocating to or retiring in Italy — population, foreign residents by citizenship, property prices (OMI), ISTAT well-being (BES), climate, air quality, crime, healthcare, seismic zone, and verified tax-regime eligibility, at comune, province and region level.\n\nWORKFLOW\n1. A town named by the user: search_comuni gets its 6-digit ISTAT code (several comuni share a name; confirm the province). Never guess a code. Then get_comune for its full profile.\n2. Towns matching criteria (region, province, population, price, rent, population change, a tax regime): find_comuni. It pages (max 100) and counts the comuni it left out for having no figure.\n3. A whole province: get_province (all BES indicators, province- and region-level layers); a whole region: get_region. Where one citizenship lives: get_nationality. One regime and one town: check_tax_eligibility (slugs from list_tax_regimes).\n4. What data exists, and what is missing: list_datasets for the catalog, get_coverage for how many places each dataset covers and which it lacks. Check get_coverage before saying data is unavailable for a place.\n5. The reporting behind the numbers: list_articles (filter by topic, place or dataset) and get_article. Unlike the data, articles are free to use only with credit and a link.\n\nRULES THAT APPLY TO EVERY ANSWER\n- Cite the source and vintage with every number, not just the number. A null value means the data does not exist for that place: read its reason, say so, and never treat it as zero, cheap, free or stable. When find_comuni reports comuni left out in missingData, say how many.\n- Say which level a figure is measured at. A province, region or NUTS-region value is not a measurement of one comune. The Eurostat/OECD NUTS layers are catalog-only: link their page, never invent a per-town figure.\n- Province lists differ by source (Sardinia was reorganized in 2026). A section a source lacks is listed in missingSections; report it as missing and never substitute another province's figure.\n- Nationality data is citizenship, not birthplace, and small numbers are flagged: say so when you quote a ranking. Totals are floors, since a comune with no ISTAT row is left out, not counted as zero.\n- Tax-regime results describe PLACES, not people. A comune on a regime's list meets its geographic criteria, not that any person qualifies; one missing from the list is NOT a no. Not tax advice.\n- There is no single 'best place in Italy' score, by design. Do not present one as ours.\n- Credit Expat Living Italy and link the page in the result's `attribution.page` (or a dataset's `page`). Every result carries a ready-made `citeAs` line."
  },
  "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."
}