Skip to main content
Glama

interroger_fichier

Read-onlyIdempotent

Query rows of a tabular data.gouv.fr file without downloading it. Filter, sort, group, count, and paginate records to inspect specific data.

Instructions

Lit les lignes d'un fichier tabulaire sans le télécharger (API tabulaire de data.gouv.fr).

filtres : {"colonne__operateur": valeur}. Opérateurs vérifiés : exact (défaut), differs, contains, in (liste), isnull ; less, greater, strictly_less, strictly_greater existent mais n'ont pas été testés. Exemple : {"commune__contains": "bordeaux", "annee__exact": 2024}. tri : {"colonne": "asc" | "desc"}. regrouper_par / compter : listes de colonnes (agrégation). taille_page : 50 maximum. Utiliser profil_fichier pour connaître les noms de colonnes exacts.

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": {
      "resource_id": "<resource_id>"
    },
    "name": "interroger_fichier"
  }
}

Input Schema

NameRequiredDescriptionDefault
triNo
pageNo
compterNo
filtresNo
colonnesNo
resource_idYes
taille_pageNo
regrouper_parNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open world), yet the description adds real behavioral context: a hard 50-row page-size ceiling and a reliability caveat that `less`, `greater`, `strictly_less`, `strictly_greater` exist but have not been tested. It does not describe the response shape or how pagination/total counts behave, which are the remaining unknowns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence is front-loaded, then the mechanics follow in a tight sequence (filters, sort, aggregation, page size, prerequisite). No sentence is filler, though the density of colon-separated examples makes it read more like a reference note than a description.

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

Completeness3/5

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

With 8 parameters, no output schema and no annotations describing returns, the description should say what a call yields and how `page` interacts with `taille_page`. Filter/sort/aggregation semantics are well covered, but return format and pagination behavior are left implicit, and `colonnes` is entirely undocumented.

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 0%, so the description carries the full burden and does so for the hard parts: filter key syntax (`colonne__operateur`), enumerated operators with default `exact`, the `{

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 ("Lit les lignes d'un fichier tabulaire") plus a distinguishing scope constraint ("sans le télécharger") and names the underlying API. It also points to `profil_fichier` as the companion for column discovery, so an agent can distinguish this from the profiling sibling without opening either 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?

Gives clear operational guidance: which filter operators are verified versus merely existing but untested, a worked filter example, and the 50-row page cap. It also routes column-name discovery to `profil_fichier`. It stops short of saying when to prefer this over other retrieval siblings such as `appeler_api`, so no explicit exclusions are stated.

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