dpe_rank_territories
Rank French departments, regions, or communes by share of F-G or A-B dwellings or mean primary energy, with filters for region, climate, building type, and DPE dates.
Instructions
Rank départements, régions or communes by share of F-G dwellings, share of A-B, or mean primary energy. Use for "which departments have the most passoires thermiques?". region may narrow a department ranking; group_by=region takes no geography.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"group_by": "<group_by>",
"metric": "<metric>"
},
"name": "dpe_rank_territories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows to return, 1-20. | |
| order | No | 'desc' (highest first, default) or 'asc'. | desc |
| metric | Yes | 'share_fg' (% of F-G labels), 'share_ab' (% of A-B) or 'mean_primary_energy' (kWh/m²/year). | |
| region | No | INSEE region code, e.g. '11' Île-de-France, '84' Auvergne-Rhône-Alpes, '93' PACA. | |
| group_by | Yes | 'department', 'region' or 'commune'. commune requires `department` and ranks the 200 communes with the most DPE. | |
| department | No | INSEE department code: '01'-'95', '2A', '2B', '971'-'976'. | |
| dpe_date_to | No | Only DPE established on/before this date (YYYY-MM-DD). | |
| climate_zone | No | Climate zone, one of: H1a, H1b, H1c, H2a, H2b, H2c, H2d, H3. | |
| building_type | No | One of: appartement, maison, immeuble. | |
| dpe_date_from | No | Only DPE established on/after this date (YYYY-MM-DD). Dataset starts 2021-07-01. | |
| min_dwellings | No | Ignore groups with fewer DPE than this (default 100, minimum 10). | |
| construction_period | No | Construction period, one of: avant 1948; 1948-1974; 1975-1977; 1978-1982; 1983-1988; 1989-2000; 2001-2005; 2006-2012; 2013-2021; après 2021. | |
| construction_year_max | No | Latest construction year (1700-2030). | |
| construction_year_min | No | Earliest construction year (1700-2030). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||