Skip to main content
Glama

Trouver une commune

trouver_commune

Finds French communes by name or name prefix, returning INSEE codes required by other tools plus department and postal codes; results list more populated communes first.

Instructions

Cherche une commune française par son nom et donne son code INSEE (attendu par les autres outils), son département et ses codes postaux. Les plus peuplées d'abord.

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

Input Schema

NameRequiredDescriptionDefault
nomYesNom ou début du nom de la commune (ex. Rennes, Saint-Malo).
nombreNoNombre de communes (5 par défaut, 10 au plus).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses useful behaviour beyond a bare lookup: the fields returned and the ranking rule ('Les plus peuplées d'abord'), which tells an agent that homonyms resolve toward the largest commune. It omits matching behaviour (prefix/fuzzy, accents, case) and what happens when nothing matches.

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?

A single dense sentence with the verb, the identifier, the returned fields and the sort order front-to-back. No filler, and the most decision-relevant fact (the INSEE code other tools need) appears early.

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?

There is no output schema, so the description must describe results — and it names the three returned fields and the ordering, which is enough to consume the response. The only gap is edge-case behaviour (zero results, ties between same-named communes), which is minor for a 2-parameter lookup.

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%, so both 'nom' and 'nombre' are already documented with examples and bounds; the baseline of 3 applies. The description adds nothing parameter-specific beyond confirming that matching is by name, and does not explain how 'nombre' interacts with the population ordering.

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 and resource ('Cherche une commune française par son nom') and immediately names what is returned: code INSEE, département, codes postaux. An agent knows exactly what this tool produces, and the domain (geographic lookup) is unmistakably distinct from the hydrology siblings.

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?

The parenthetical '(attendu par les autres outils)' is strong, explicit guidance: this is the prerequisite resolver whose INSEE code the other tools consume. It does not state when *not* to use it or what to do on an ambiguous/no-name match, but the usage context is clear without inference.

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