Skip to main content
Glama

Lire les lignes d'un fichier CSV public

datagouv_apercu
Read-onlyIdempotent

Read and filter CSV/XLS rows from data.gouv.fr without downloading via the tabular API; sort by column and query using a dataset resource ID.

Instructions

Lit directement les lignes d'un fichier CSV/XLS publié sur data.gouv.fr, sans le télécharger, via l'API tabulaire. Filtre par colonne (égalité ou contient) et tri. Utiliser l'id de ressource fourni par datagouv_jeu_de_donnees.

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

Input Schema

NameRequiredDescriptionDefault
triNo
pageNo
filtresNo
par_pageNo
ressource_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already establish readOnlyHint, idempotentHint and openWorldHint, so safety and repeatability need no restatement. The description adds genuinely useful behavior ('sans le télécharger, via l'API tabulaire'), but it omits the important caveat that only tabularized CSV/XLS resources are readable this way, and says nothing about the pagination ceiling (par_page max 50) or error behavior when the resource is not tabular.

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?

Three short sentences, each front-loaded with the essential information: what it reads, how it reads it, and which id to supply. No padding or redundant restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and 0% schema description coverage on five parameters including nested objects, the description should explain what comes back (rows plus pagination metadata) and the 50-rows-per-page cap. It leaves the agent guessing about the response shape and about the preconditions for a resource to be readable via the tabular API.

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 0%, so the description must carry the parameter meaning, and it only partly does. It explains the filter concept ('égalité ou contient') and sorting, matching filtres and tri, but the schema actually offers five operators (exact, contains, less, greater, differs), so the description understates them; page and par_page are never mentioned at all.

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?

The description opens with a specific verb and resource ('Lit directement les lignes d'un fichier CSV/XLS publié sur data.gouv.fr') and adds a differentiating mechanism: reading through the tabular API instead of downloading the file. It also names the sibling that provides the required identifier, so an agent can distinguish this from datagouv_jeu_de_donnees without opening a schema.

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?

It gives clear operating context — reading rows, optionally filtering by column and sorting — and explicitly routes the agent to datagouv_jeu_de_donnees for the resource id. What is missing is any when-not guidance, e.g. that files not tabularized on data.gouv.fr cannot be previewed this way, which is the main failure mode for this tool.

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