Skip to main content
Glama

DPE rental restrictions — letting ban, rent freeze, DPE validity

check_dpe_rental_restrictions
Read-only

French rental limits by DPE class: letting ban, rent freeze, DPE validity. · Restrictions locatives selon la classe DPE : interdiction de louer, gel des loyers, validité du DPE. — Given a dwelling's DPE class (A–G), returns the French rental restrictions in force: letting ban status and date (loi n° 2021-1104 Climat et Résilience — G banned since 2025, F from 2028, E from 2034, France métropolitaine), the F/G rent freeze (no rent revision in a class F or G dwelling — loi n° 89-462 art. 17-1, III, for leases concluded, renewed or tacitly continued since 24 August 2022), and — when dpe_issue_date is provided — whether the DPE itself is still valid (10-year rule + the 2013–2021 transitional expiries). Deterministic rules from official thresholds — no AI involved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dpe_classYesEnergy class from the dwelling's DPE.
dpe_issue_dateNoISO issue date of the DPE — enables the validity check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already state readOnlyHint=true and openWorldHint=false, covering safety. The description adds substantial behavioral context: deterministic rules, legal references (loi n° 2021-1104, loi n° 89-462 art. 17-1), exact threshold dates for bans and rent freezes, and that no AI is involved. It does not mention rate limits or side effects, but for a pure lookup this is strong added value.

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?

The English purpose statement is front-loaded and followed by legal detail that earns its place for a compliance-oriented tool. The bilingual header partially duplicates the title, adding some redundancy, but the overall structure is efficient and not bloated.

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?

For a two-parameter deterministic lookup with no output schema, the description explains exactly what is returned (letting ban status and date, rent freeze, DPE validity) and the condition under which validity is checked. With annotations covering read-only and closed-world behavior, nothing essential is missing.

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% and both parameters are documented in the schema itself. The description reinforces meaning (DPE class A–G, dpe_issue_date enabling validity) but adds no syntax, format, or constraint beyond what the schema already provides, so the baseline 3 is appropriate.

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?

Names a specific resource ('French rental restrictions') and action ('returns') tied to a DPE class. The domain is clearly distinct from sibling calculators like calculate_rent_revision or calculate_tenant_notice_period, though it does not explicitly name or differentiate against those siblings.

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?

Usage is implied by 'Given a dwelling's DPE class (A–G), returns...' and the conditional mention that dpe_issue_date enables the validity check. However, there is no explicit when-to-use, when-not-to-use, or alternative-tool guidance, leaving routing to inference.

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