Skip to main content
Glama

dpe_energy_stats

Read-onlyIdempotent

Calculate mean and 10th/50th/90th percentile statistics for French DPE energy use, greenhouse-gas emissions, or living area by location, building type, and period; use the median to avoid outliers.

Instructions

Mean, 10th/50th/90th percentile of an energy, emissions or surface indicator for a scope. Use for "what is the median consumption of houses built before 1948 in Lozère?". Prefer the median: a few declared values are data-entry outliers.

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": {
      "indicator": "<indicator>"
    },
    "name": "dpe_energy_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionNoINSEE region code, e.g. '11' Île-de-France, '84' Auvergne-Rhône-Alpes, '93' PACA.
indicatorYesOne of: primary_energy_kwh_m2, ghg_kg_m2, living_area_m2. primary_energy_kwh_m2 = 5-usage primary energy; ghg_kg_m2 = greenhouse-gas emissions.
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 declare read-only, idempotent, non-destructive behavior, so the description is freed to add analytic context – and it does, disclosing that a few declared values are data-entry outliers and steering the caller toward percentiles. That is a genuine behavioral trait not derivable from annotations or schema. It does not mention minimum sample sizes or how small groups are handled, which keeps it below 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?

Three short sentences: the computation and its scope first, then a use case, then the outlier caveat. No restatement of the name, no filler, and the most decision-relevant content is front-loaded.

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?

With an output schema, full parameter descriptions and complete annotations, the description does not need to explain return shape or safety. Its remaining omission is what happens when no geographic or building filters are supplied – whether the statistic covers all of France – which matters for a 12-parameter tool where 11 are optional.

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 the schema already documents every one of the 12 parameters, including enums for indicator, climate zone and construction period. The description adds only the loose notion of a 'scope' and the surface/emissions/energy grouping, which the indicator field description already covers. Baseline 3 applies.

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 names a specific computation (mean, 10th/50th/90th percentile) over a specific resource family (energy, emissions or surface indicator) for a filtered scope, which is far more precise than its ambiguous name. It does not explicitly contrast itself with siblings like dpe_label_distribution or dpe_rank_territories, but the statistical-summary framing is distinct enough that an agent can separate it from ranking or distribution tools.

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 supplies a concrete routing example ('what is the median consumption of houses built before 1948 in Lozère?') that shows exactly the class of question this tool answers, plus an analytic recommendation to prefer the median. There is no explicit when-not guidance or named alternative for questions this tool cannot answer, so it stops short of a 5.

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