Skip to main content
Glama

Analyze DPE Distribution

analyze_dpe_distribution
Read-only

Get the DPE (energy performance) class distribution for a location.

Returns the count and share of A–G energy ratings across all diagnosed properties.

REQUIRED: at least one location — code_postal, commune, or code_departement OPTIONAL: type_batiment (maison|appartement|immeuble), date_debut

Example: code_postal: "75011" → { count: 42300, distribution: { A: 812, B: 3100, ... }, pct: { A: 1.9, B: 7.3, ... } }

Cost: 10 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_dpe_distribution"
  }
}

Input Schema

NameRequiredDescriptionDefault
communeNoCommune name (e.g., 'PARIS 11', 'BORDEAUX')
date_debutNoOnly count DPEs issued from this date (YYYY-MM-DD)
code_postalNoPostal code (e.g., '75011')
type_batimentNoBuilding type: maison, appartement, immeuble
code_departementNoDepartment code (e.g., '75', '33')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / date_debut / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-structured context: a 10-credit cost, the geographic-coverage prerequisite, and a concrete example response shape (useful since no output schema exists). It lacks guidance on empty/sparse results or rate limits, keeping it at 4.

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

Conciseness4/5

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

Front-loaded purpose sentence followed by return shape, required/optional blocks, example, and cost — each block earns its place. The example object is slightly noisy with '...' placeholders, but overall it is well structured and free of padding.

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

Completeness5/5

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

With no output schema, the description compensates by documenting the return fields and giving a sample payload. Combined with the required-location rule, filter semantics, and cost, an agent has everything needed to invoke this read-only analytics tool correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description rises above it by imposing a cross-parameter constraint not expressible in the schema (at least one of code_postal, commune, or code_departement), and by illustrating the effect of type_batiment and date_debut on counting.

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?

States a specific verb and resource ('Get the DPE class distribution for a location') and previews the returned fields (count, share of A–G ratings), which is enough to separate it from siblings like analyze_dpe_price_premium. It does not explicitly name a sibling or state the boundary, so it falls short of a 5.

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

Usage Guidelines3/5

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

The 'REQUIRED: at least one location' line plus the OPTIONAL filter list gives invocation guidance that the schema itself lacks (required_parameters is 0). However, there is no instruction on when to prefer this over analyze_dpe_price_and_thermal_risk or get_zonal_price_distribution, so usage is only implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources