Skip to main content
Glama

Lire un acte de l’Union européenne (EUR-Lex)

lire_eurlex
Read-onlyIdempotent

Récupère le texte juridique lisible d’un acte EUR-Lex précis (CELEX), tiré de sa version HTML : un passage (fragment), un article ou une plage d’articles (article_from, article_to), le sommaire (toc_only) ou l’acte entier.

Renvoie le texte, les sections, le sommaire quand il est demandé, l’URL canonique et source_refs, à utiliser pour la citation.

Bon usage :

  • Éviter l’ouverture de l’acte entier sans ciblage (son texte est raccourci par la source) ; ne l’ouvrir en entier que si l’utilisateur le demande ou si aucune structure exploitable n’est disponible.

  • Pour un acte long, commencer par toc_only=true pour obtenir le sommaire, puis lire le passage voulu avec fragment ou article_from/article_to. Si structure_available=false ou si le sommaire est vide, relancer sans toc_only pour lire l’acte entier.

  • Utiliser soit fragment, soit article_from/article_to, pas les deux.

Avec valid_on, l’outil retient d’abord la version de l’acte applicable à cette date (le texte de base si la date précède la première consolidation, sinon la version consolidée datée) : le celex, l’URL canonique, le texte et source_refs renvoyés sont ceux de cette version, pas forcément du CELEX demandé. Si aucune version n’est disponible à cette date, l’outil le dit au lieu de lire la dernière version.

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": {
      "celex": "<celex>"
    },
    "name": "lire_eurlex"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLangue du contenu (par défaut FR).FR
celexYesIdentifiant CELEX de l’acte (par exemple 32016R0679), donné par l’utilisateur ou issu de rechercher_eurlex.
fragmentNoAncre HTML à lire (issue du sommaire ou de rechercher_dans_acte_eurlex), pour ne lire qu’une partie de l’acte.
toc_onlyNotrue : renvoie le sommaire, pour choisir le passage à lire.
valid_onNoDate `YYYY-MM-DD` : lire la version de l’acte applicable à cette date.
article_toNoNuméro de l’article de fin ; demande `article_from`.
article_fromNoNuméro de l’article de début : un article seul, ou le début d’une plage.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered; the description instead adds genuine behavioral context beyond them — the source-side truncation of full-act text, the fallback path when structure is unavailable, and the valid_on version-resolution logic that can return a different celex, URL and source_refs than the one requested, or report that no version exists at that date. It also names the returned fields (text, sections, TOC, canonical URL, source_refs). The only omission is anything about response size limits or pagination for very long acts.

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?

Structure is strong: a purpose sentence, a return-value sentence, then a bulleted guidance block with the highest-risk constraint (untruncated full read) first. It is on the long side and the valid_on paragraph is dense, but each clause carries operational information rather than restating the name or title.

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?

For a 7-parameter read tool with no output schema, the definition still covers what is returned, how the TOC-then-fragment workflow proceeds, how version resolution behaves, and what to do on structural failure. An agent has enough to call this correctly on the first attempt across all read modes.

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 coverage is already 100%, so the baseline would be 3, but the description goes further: it explains that fragment is an HTML anchor derived from the TOC or from rechercher_dans_acte_eurlex, that article_from alone means a single article while article_to requires article_from, and that valid_on selects the applicable consolidated or base version. These are semantic relationships between parameters that the flat schema does not express.

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: retrieving the readable legal text of a precise EUR-Lex act identified by CELEX, sourced from its HTML version. It immediately enumerates the four distinct read modes (fragment, article range, toc_only, whole act), so an agent can distinguish this from the sibling search tools without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'Bon usage' section gives explicit when/when-not guidance: avoid opening the whole act untargeted because the source truncates it, use toc_only first for long acts, fall back to a full read if structure_available=false or the TOC is empty. It also states the mutual exclusivity of fragment vs article_from/article_to, which is a real invocation constraint rather than generic advice.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources