Analyze Building Stock (BDNB)
analyze_building_stockBuilding stock of a location from the BDNB national database: counts ALL buildings, not only those with DVF sales. Returns totals by construction decade, by use, housing units, and the share of pre-1975 buildings (renovation indicator). par_usage (BDNB usage_principal): residentiel (= residentiel_collectif + residentiel_individuel), tertiaire, dependance, secondaire, non_renseigne; mixte and autre are kept for compatibility.
REQUIRED: one location: code_commune_insee (5-digit INSEE, most precise), commune (uppercase, "LYON") or code_departement ("69").
Example output: { nb_batiments: 12500, annee_construction_median: 1968, pct_vieux: 42, par_tranche: { avant_1919: 800, "1946_1970": 4200, … }, par_usage: { residentiel: 4440, tertiaire: 623, … } }
Cost: 5 credits
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_building_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commune | No | Commune name (e.g., 'LYON') | |
| code_postal | No | Postal code (e.g., '75015') | |
| code_departement | No | Department code (e.g., '69') | |
| code_commune_insee | No | INSEE commune code (5 digits, e.g., '69123') |