Skip to main content
Glama

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

rechercher_dans_acte_eurlex
Read-onlyIdempotent

Recherche tolérante (expressions exactes, proximité, termes larges, fautes de frappe légères) à l’intérieur d’un seul acte EUR-Lex désigné par son CELEX, au niveau des fragments et des articles, sans ouvrir l’acte entier.

Point d’entrée recommandé dès que le CELEX est connu : comprendre la structure de l’acte et trouver les passages ou articles pertinents à moindre coût, puis n’ouvrir que ceux retenus avec lire_eurlex (fragment, ou article_from et article_to).

Renvoie les passages trouvés, le titre et l’URL canonique de l’acte, sans source_refs : la citation vient de lire_eurlex. Fournir query ou au moins une liste de termes (recherches_exactes, recherches_proximite, recherches_larges).

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 et les extraits 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": "rechercher_dans_acte_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.
fuzzyNotrue (par défaut) : tolérance aux fautes de frappe légères.
limitNoNombre maximal de passages renvoyés (30 au plus).
queryNoRequête libre.
valid_onNoDate `YYYY-MM-DD` : chercher dans la version de l’acte applicable à cette date.
max_gap_wordsNoÉcart maximal entre les mots d’un groupe de proximité (par défaut 12).
min_should_matchNoPart minimale des termes qui doivent correspondre, de 0 à 1 (par défaut 0,6).
recherches_largesNoTermes larges, pour le rappel.
recherches_exactesNoExpressions exactes à prioriser.
recherches_proximiteNoGroupes de mots à trouver proches les uns des autres (écart toléré : `max_gap_words`).

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior, yet the description adds substantive traits: the return payload (passages, title, canonical URL), the deliberate absence of `source_refs` with the reason citations come from lire_eurlex, and the `valid_on` version-resolution rule where the returned `celex` and URL may differ from the requested CELEX, with an explicit failure message when no version exists at that date rather than silently reading the latest.

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?

Front-loaded with the core capability, then routing, then return contract, then the date caveat — a logical order with no filler. It runs to four paragraphs for a search tool, but each paragraph carries distinct operational information; only the routing paragraph could be marginally tightened.

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 an 11-parameter search tool with no output schema, the description supplies the missing return contract (passages, act title, canonical URL, no source_refs) and the non-obvious version-selection behavior, plus the required-input precondition. Nothing an agent needs to call it correctly and interpret results is left unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema coverage at 100%, the baseline is 3, but the description goes beyond it by explaining the semantics of `valid_on` (base text vs. dated consolidated version, and that the returned identifiers follow that version) and by tying `recherches_proximite` to `max_gap_words` and the term lists to the recall/precision trade-off. This changes how an agent would set those parameters, not just what they are named.

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: a tolerant search (exact phrases, proximity, broad terms, light typos) inside a single EUR-Lex act identified by its CELEX, at fragment and article level, without opening the whole act. It explicitly contrasts with siblings: it is the entry point once CELEX is known, and lire_eurlex is for opening the retained passages.

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?

Gives explicit when-to-use ("Point d'entrée recommandé dès que le CELEX est connu"), the reason (understand structure and locate passages cheaply), and the exact follow-up path with lire_eurlex via `fragment` or `article_from`/`article_to`. It also states the invocation precondition: supply `query` or at least one of the three search-term lists.

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