Skip to main content
Glama
mcp-datagouv-nc

mcp-datagouv-nc

by kanakytech

get_dataset_facets

Lists distinct values for a field in a dataset, helping you identify available communes, categories, or years before filtering records.

Instructions

Liste les valeurs distinctes d'un champ dans un jeu de données spécifique. Utile pour connaître les communes, catégories ou années disponibles dans un dataset.

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

Input Schema

NameRequiredDescriptionDefault
facetNoNom du champ à explorer (ex: 'commune', 'annee', 'secteur')
dataset_idYesIdentifiant du jeu de données

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the core behavior (a read that aggregates distinct values rather than returning records). It says nothing about the response shape, ordering, size limits, or whether 'facet' being optional changes the result, which leaves real behavioral gaps for an unannotated tool.

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 short sentences with zero padding, and the purpose is stated first so the agent can decide before reading the usage hint. Nothing is repeated unnecessarily across the two sentences.

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?

For a simple two-parameter read tool with a fully documented schema and no output schema, the definition covers purpose and a use case adequately. The only meaningful gaps are the missing explanation of the optional facet parameter and the absence of any read-only/safety note, which has no annotation to fall back on.

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 coverage is 100%, so both parameters are already documented with examples. The description's mention of 'communes, catégories ou années' reinforces the facet parameter's intent but adds little beyond the schema, and it does not explain behavior when the optional 'facet' argument is omitted.

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 uses a specific verb and resource ('Liste les valeurs distinctes d'un champ dans un jeu de données spécifique'), which tells an agent exactly what is returned: the distinct value set of one field. It does not explicitly distinguish itself from the sibling get_facets or query_records, but the phrasing is concrete enough to identify the operation.

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 second sentence gives an implied use case ('Utile pour connaître les communes, catégories ou années disponibles'), which helps an agent recognize when this tool applies. However, it names no alternatives and no exclusions, so the agent must infer that query_records is for actual records and get_facets for facets outside a dataset.

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