Skip to main content
Glama

Analyze Building Stock (BDNB)

analyze_building_stock
Read-only

Building stock of a location from the BDNB national database: counts ALL buildings, not only those with DVF sales. Returns totals by construction decade, by use, housing units, and the share of pre-1975 buildings (renovation indicator). par_usage (BDNB usage_principal): residentiel (= residentiel_collectif + residentiel_individuel), tertiaire, dependance, secondaire, non_renseigne; mixte and autre are kept for compatibility.

REQUIRED: one location: code_commune_insee (5-digit INSEE, most precise), commune (uppercase, "LYON") or code_departement ("69").

Example output: { nb_batiments: 12500, annee_construction_median: 1968, pct_vieux: 42, par_tranche: { avant_1919: 800, "1946_1970": 4200, … }, par_usage: { residentiel: 4440, tertiaire: 623, … } }

Cost: 5 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_building_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
communeNoCommune name (e.g., 'LYON')
code_postalNoPostal code (e.g., '75015')
code_departementNoDepartment code (e.g., '69')
code_commune_inseeNoINSEE commune code (5 digits, e.g., '69123')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only/non-destructive, so the description's added value is real: data provenance (BDNB), the inclusion criterion (all buildings, not just those with sales), an explicit cost of 5 credits, and a sample output shape. It stops short of discussing edge cases such as unresolved or ambiguous locations, which is the main remaining gap.

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-loads the scope and differentiation, then the usage semantics, requirement, sample output and cost — each block does distinct work. It is dense and the par_usage sentence is somewhat cryptic, but nothing is clearly redundant.

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 and no annotations beyond safety hints, the description supplies a sample return shape, credit cost, data source and location rules — enough to call it correctly. Minor gaps remain around behavior when no location matches or when a location lacks BDNB coverage.

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 would be 3; the description earns more by imposing a semantic constraint the schema lacks — exactly one location must be supplied (schema shows required: 0) and it ranks the options by precision. It also explains the par_usage value space and notes mixte/autre are compatibility-only, though par_usage does not appear in the schema and code_postal is omitted from the required list, creating minor ambiguity.

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

Purpose5/5

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

States a specific verb+resource (building stock counts from the BDNB national database) and immediately scopes it: 'counts ALL buildings, not only those with DVF sales,' which separates it from the sales/DVF-oriented siblings. The listed outputs (decade, use, housing units, pre-1975 share) make the return content concrete.

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 'ALL buildings, not only DVF' framing implies when this is preferred over sales-based siblings, and the location-selection rule ('most precise') is actionable. But no sibling is named as an alternative and there is no explicit when-not guidance (e.g., versus analyze_building_age_price_impact or analyze_dpe_distribution).

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