Skip to main content
Glama

dpe_label_distribution

Read-onlyIdempotent

Counts DPE-issued dwellings by energy label A–G and calculates A–B and F–G ('passoires thermiques') shares for French areas or all France.

Instructions

How many dwellings get each energy label (A to G), plus the share of A-B and of F-G ('passoires thermiques'). Use for questions like "what share of homes in Gironde are F or G?". At most one of department, region, commune_insee, postal_code; no geography means all of France. Counts are DPE issued since July 2021, not the housing stock.

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": "dpe_label_distribution"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionNoINSEE region code, e.g. '11' Île-de-France, '84' Auvergne-Rhône-Alpes, '93' PACA.
departmentNoINSEE department code: '01'-'95', '2A', '2B', '971'-'976'.
dpe_date_toNoOnly DPE established on/before this date (YYYY-MM-DD).
postal_codeNo5-digit postal code, e.g. '33000'.
climate_zoneNoClimate zone, one of: H1a, H1b, H1c, H2a, H2b, H2c, H2d, H3.
building_typeNoOne of: appartement, maison, immeuble.
commune_inseeNo5-character INSEE commune code, e.g. '33063' (Bordeaux). Get it from dpe_find_commune.
dpe_date_fromNoOnly DPE established on/after this date (YYYY-MM-DD). Dataset starts 2021-07-01.
construction_periodNoConstruction 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_maxNoLatest construction year (1700-2030).
construction_year_minNoEarliest construction year (1700-2030).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already establish read-only, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds genuinely useful semantics beyond that: counts are DPE issued since July 2021 rather than the housing stock, which prevents a common misinterpretation, and the at-most-one geography constraint. It does not discuss the exclusivity enforcement behavior (error vs. precedence), which would have made it a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the metric and its components, then the routing example, then the parameter constraint, then the dataset caveat. No sentence is redundant and the ordering matches how an agent would need the information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the description correctly avoids explaining return values, and all 11 parameters are schema-documented. The only gaps are operational: nothing about what happens if multiple geography filters are supplied, and nothing about result size or limits for a France-wide query. For a read-only aggregate tool this is close to complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every one of the 11 parameters is already documented with codes, formats, and enum-like value lists; baseline is 3. The description adds only the cross-parameter mutual-exclusion rule and the all-of-France default, which is real value but limited to the geography subset, leaving the date, construction, climate, and building-type filters entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a precise metric: the count of dwellings per energy label A–G, plus the A–B and F–G ('passoires thermiques') shares. That is far more specific than the tool name alone and lets an agent tell it apart from a general stats tool. It stops short of naming a sibling it should be preferred over (e.g. dpe_energy_stats), so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit trigger with a worked example question ("what share of homes in Gironde are F or G?") and states the geographic scoping rule: at most one of department, region, commune_insee, postal_code, and no geography means all of France. There is no statement of when to use an alternative tool instead, so it is clear context without exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.