Skip to main content
Glama
maelguimet

mcp-french-open-data

by maelguimet

List French communes

list_communes
Read-only

Look up French communes by name, postcode, or département to retrieve INSEE codes, postcodes, région, and population data. Provide at least one filter to get accurate results.

Instructions

Look up French communes by name, postcode or département (geo.api.gouv.fr). Returns INSEE code, postcodes, département, région and population. Give at least one filter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoCommune name, e.g. 'Lyon'
limitNoMaximum results (1-50)
postcodeNo5-digit French postcode, e.g. 75011
departementNoDépartement code, e.g. 69, 2A or 974

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true). The description goes further by disclosing the upstream source and the returned fields (INSEE code, postcodes, département, région, population), plus the at-least-one-filter rule. No rate limits or error behavior, but that is a minor gap given annotation coverage.

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, no filler; the lookup keys and return contract are front-loaded ahead of the invocation constraint. Every clause carries information.

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?

With no output schema, the description takes on the burden of stating what comes back and does so explicitly. It also conveys the mandatory-filter requirement, leaving nothing an agent needs to call it correctly.

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 name, postcode, departement and limit are already documented with patterns and examples. The description restates the three filter keys but adds no format or constraint detail beyond the schema, so the baseline 3 applies.

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 ('look up'), a precise resource ('French communes'), names the three lookup keys, and cites the data source (geo.api.gouv.fr). This is clearly distinguishable from address geocoding (search_address) and company lookups in the sibling set.

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?

'Give at least one filter' adds a real usage constraint that the schema does not enforce (required parameters = 0), telling the agent how to invoke it correctly. However, it names no alternatives or when-not conditions relative to search_address or reverse_geocode.

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