Skip to main content
Glama

dpe_find_commune

Read-onlyIdempotent

Find a French commune's INSEE code and DPE count from its name, optionally filtered by department, to resolve location before any commune-level energy-diagnostic query.

Instructions

Find the INSEE code of a French commune from its name, with how many DPE it has. Use this before any commune-level question. Paris is split into arrondissements (75101-75120); use department='75' for the whole city. Returns up to 10 matches ranked by number of DPE.

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

Input Schema

NameRequiredDescriptionDefault
nameYesCommune name, accents optional (e.g. 'Saint-Etienne').
departmentNoINSEE department code: '01'-'95', '2A', '2B', '971'-'976'.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely new behavior: a 10-match result cap and ranking by number of DPE, plus the arrondissement splitting caveat that affects what gets returned.

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?

Four short sentences, front-loaded with the core action, then usage sequencing, then the edge case, then result behavior. No filler or restatement of the tool name.

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?

An output schema exists, so return structure needn't be spelled out, yet the description usefully notes the 10-match cap and ranking. Combined with the Paris exception, an agent has everything needed to call this correctly on the first try.

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, but the description adds semantics the schema does not: department='75' aggregates the whole of Paris rather than a single arrondissement. That is meaningful interpretation guidance beyond the raw code-format description.

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?

Names a specific verb and resource ("Find the INSEE code of a French commune from its name") and states the secondary payload (DPE count). It is clearly a name-to-code resolution tool, which separates it from the sibling stats/ranking tools without needing their schemas.

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?

"Use this before any commune-level question" gives an explicit sequencing rule, and the Paris note resolves the main ambiguity case by directing to department='75'. There is no stated when-not condition or named alternative tool, so it falls short of the top mark.

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