Skip to main content
Glama

Parcellaire — cadastre, DVF & DPE

Statistiques immobilières d'une commune

get_commune_stats
Read-onlyIdempotent

Retourne les statistiques d'une commune française : parcelles et bâtiments, prix au m² et volumes de transactions DVF par année, répartition des classes DPE, taux de propriétaires, logements vacants, zonage TLV (zone tendue : taxe sur les logements vacants, majoration possible de la taxe d'habitation des résidences secondaires), etc. Identifier la commune par 'insee_id' (fiable) ou par 'commune' (nom ou code postal).

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

Input Schema

NameRequiredDescriptionDefault
communeNoNom de la commune, ex: 'Angers'. Homonyme : ajouter INSEE, code postal ou département entre parenthèses, ex: 'Thénac (17444)', 'Thénac (17)'. Ou son code postal.
insee_idNoCode INSEE de la commune (prioritaire si fourni)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / commune / anyOf
      Removed value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "type": "string"
      -      },
      -      {
      -        "const": "",
      -        "type": "string"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / commune / description
      Previous value: -"Nom de la commune, ex: 'Angers'. Pour une commune homonyme, préciser son code entre parenthèses : 'Thénac (17444)' (code INSEE), 'Thénac (17460)' (code postal) ou 'Thénac (17)' (département). Ou son code postal."New value: +"Nom de la commune, ex: 'Angers'. Homonyme : ajouter INSEE, code postal ou département entre parenthèses, ex: 'Thénac (17444)', 'Thénac (17)'. Ou son code postal."
    • addedInput schema / properties / commune / type
      Added value: +"string"
    • removedInput schema / properties / insee_id / anyOf
      Removed value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "maxLength": 5,
      -        "minLength": 5,
      -        "type": "string"
      -      },
      -      {
      -        "const": "",
      -        "type": "string"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / insee_id / maxLength
      Added value: +5
    • addedInput schema / properties / insee_id / minLength
      Added value: +5
    • addedInput schema / properties / insee_id / type
      Added value: +"string"
  2. Changed1 schema field changed
    • changedInput schema / properties / commune / description
      Previous value: -"Nom ou code postal de la commune, ex: 'Bordeaux'"New value: +"Nom de la commune, ex: 'Angers'. Pour une commune homonyme, préciser son code entre parenthèses : 'Thénac (17444)' (code INSEE), 'Thénac (17460)' (code postal) ou 'Thénac (17)' (département). Ou son code postal."
  3. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  4. Changed6 schema fields changed
    • addedInput schema / properties / commune / anyOf
      Added value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "const": "",
      +        "type": "string"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / commune / type
      Removed value: -"string"
    • addedInput schema / properties / insee_id / anyOf
      Added value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "maxLength": 5,
      +        "minLength": 5,
      +        "type": "string"
      +      },
      +      {
      +        "const": "",
      +        "type": "string"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / insee_id / maxLength
      Removed value: -5
    • removedInput schema / properties / insee_id / minLength
      Removed value: -5
    • removedInput schema / properties / insee_id / type
      Removed value: -"string"
  5. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds valuable context beyond that: the breadth of the returned payload and the reliability ranking of the two identifiers ('insee_id' fiable). It still does not state behavior when a name is ambiguous or how an unknown commune is reported, which leaves a gap for a lookup tool with no output schema.

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?

Two sentences, front-loaded with the returned content and followed by the identification rule, so the agent sees the payoff first. The long parenthetical defining TLV zoning ('zone tendue : taxe sur les logements vacants, majoration possible...') is somewhat verbose but does clarify an opaque domain term rather than pad the text.

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 no output schema, the description carries the burden of explaining what comes back, and it does so concretely across seven data categories. The two input paths are covered, including the reliability preference. What is missing is a return format or failure behavior note, which matters for a two-path lookup where an ambiguous name may resolve to nothing.

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 the schema itself already documents the homonym disambiguation syntax and that insee_id is 'prioritaire si fourni'. The description's only genuine addition is the word 'fiable', reinforcing that INSEE codes are the trustworthy identifier. That is a marginal gain over the schema, so the baseline of 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 opens with a concrete verb and resource ('Retourne les statistiques d'une commune française') and then enumerates the exact content returned: parcels and buildings, DVF price per m² and transaction volumes by year, DPE class distribution, owner-occupancy rate, vacant housing, and TLV zoning. This is specific and lets an agent distinguish it from siblings such as get_dpe or search_ventes_dvf, which return individual records rather than commune-level aggregates. It never names a sibling, 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 second sentence gives usable identification guidance: prefer 'insee_id' as reliable, otherwise use 'commune' (name or postal code). However, there is no explicit when-to-use or when-not-to-use guidance, and no routing to siblings. For example, it does not say to call search_communes first when the commune name is unknown or ambiguous, which is the natural failure mode given the homonym handling described in the schema.

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