Skip to main content
Glama

Rechercher une commune

communes_rechercher
Read-onlyIdempotent

Search French municipalities by name, postal code, INSEE code, or GPS coordinates to retrieve official population, area, department, region, and intercommunality data.

Instructions

Trouve des communes françaises par nom, code postal, code INSEE ou coordonnées GPS. Renvoie code INSEE, population, surface, département, région, intercommunalité (EPCI).

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

Input Schema

NameRequiredDescriptionDefault
nomNoNom (recherche approchée)
limiteNo
latitudeNo
longitudeNo
code_inseeNo
code_postalNo
departementNoRestreindre à un département, ex. 13

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly/openWorld/idempotent, so safety is covered. The description adds value by listing the returned fields (INSEE, population, surface, département, région, EPCI), but says nothing about matching behavior (fuzzy vs exact), what an empty criteria call returns, or how coordinate proximity is resolved. Adequate, not rich.

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?

Two sentences, zero filler, search modes and return fields both front-loaded. Nothing could be removed without losing information.

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, listing return fields is the right move and it is done. For a 7-parameter, zero-required lookup tool the remaining gap is criterion-combination semantics (OR vs AND) and coordinate radius handling, which leaves it slightly short of complete.

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 description coverage is only 29%, but the description explicitly names the four accepted search axes, and the schema's own patterns, defaults and bounds (limite 1–50, INSEE/postal patterns) cover the rest. The only real gap is latitude/longitude, where no radius or nearest-match semantics are explained.

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 states a specific verb and resource ('Trouve des communes françaises') and enumerates the four search axes (nom, code postal, code INSEE, coordonnées GPS). It also names the returned fields. It does not differentiate itself from lookalike siblings such as adresse_geocoder or adresse_inverse, so it stops 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 Guidelines2/5

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

No when-to-use or when-not guidance, and no mention of alternatives. Critically, the schema has zero required parameters and the description never says that at least one search criterion should be supplied, nor how multiple criteria combine — an agent is left to infer everything about invocation conditions.

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