dpe_find_commune
Find a French commune's INSEE code and DPE count from its name, optionally filtered by department, to resolve location before any commune-level energy-diagnostic query.
Instructions
Find the INSEE code of a French commune from its name, with how many DPE it has. Use this before any commune-level question. Paris is split into arrondissements (75101-75120); use department='75' for the whole city. Returns up to 10 matches ranked by number of DPE.
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": {
"name": "<name>"
},
"name": "dpe_find_commune"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Commune name, accents optional (e.g. 'Saint-Etienne'). | |
| department | No | INSEE department code: '01'-'95', '2A', '2B', '971'-'976'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||