Skip to main content
Glama

eurlex_fetch

Read-onlyIdempotent

Retrieve the full text of an EU legal act by providing its CELEX identifier, ELI, or Official Journal reference. Paginate long documents with offset and max_chars parameters.

Instructions

Fetches the full text of an EU legal act. Identify it by celex_id (e.g. "32024R1689"), by eli (e.g. "reg/2016/679" or a full ELI URL), or by oj_ref (post-2023 Official Journal reference, e.g. "OJ:L_202401689") — provide exactly one. Paginate long documents with offset and max_chars: pass the previous response's next_offset to continue reading until it is null.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eliNoEuropean Legislation Identifier (ELI), short or full form, e.g. "reg/2016/679" or "http://data.europa.eu/eli/reg/2016/679/oj" (GDPR). Resolved to a CELEX ID via Cellar. Provide exactly one of celex_id, eli, or oj_ref.
formatNoOutput format: xhtml=structured XHTML, plain=text with XHTML tags strippedxhtml
offsetNoCharacter offset for pagination (0-based)
oj_refNoOfficial Journal reference in the post-2023 scheme, e.g. "OJ:L_202401689" (AI Act). Resolved to a CELEX ID via Cellar. Provide exactly one of celex_id, eli, or oj_ref.
celex_idNoCELEX identifier, e.g. "32024R1689" (AI Act). Provide exactly one of celex_id, eli, or oj_ref.
languageNoLanguage of the full text, as a Cellar 3-letter code (any of the 24 official EU languages, e.g. DEU, ENG, FRA, POL, SPA)DEU
max_charsNoMaximum number of characters returned

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
offsetYesThe offset this window was sliced from
contentYesThe document text in the requested window/format
celex_idYesThe resolved CELEX ID the text was fetched for
languageYesCellar 3-letter language code of the text
truncatedYesTrue when more text remains beyond this window
source_urlYesCellar REST URL of the fetched resource
next_offsetYesOffset to request next, or null when there is no more content
total_charsYesLength of the full processed document
returned_charsYesLength of `content`
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, indicating safe read-only behavior. The description adds valuable context: identifier resolution via Cellar, pagination mechanics, and output format options, which go beyond the annotations and fully inform the agent about behavior.

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?

The description is two sentences long, front-loading the purpose and then covering identifier options and pagination in a compact, readable format. Every sentence adds value, and there is no repetition of schema fields. It is appropriately sized for the complexity.

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?

Given the presence of an output schema, the description does not need to explain return values. It fully covers all aspects: identifier selection, output format, language, pagination, and the resolution mechanism. No gaps remain for an agent to use it correctly.

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?

Schema coverage is 100%, so baseline is 3. The description adds significant meaning by explaining the identifier formats with examples (e.g., '32024R1689', 'reg/2016/679', 'OJ:L_202401689'), pagination parameters (offset, max_chars), format enum (xhtml/plain), and language codes. This greatly enhances understanding beyond the schema.

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 clearly states the tool fetches the full text of an EU legal act, specifies the three identifier types (celex_id, eli, oj_ref), and distinguishes itself from siblings like eurlex_metadata or eurlex_summary by focusing on full-text retrieval.

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?

The description explicitly explains how to identify the act (provide exactly one identifier) and how to paginate (offset, max_chars, next_offset). However, it does not explicitly state when not to use this tool (e.g., for metadata use eurlex_metadata) or what alternatives exist, though this is implied by sibling context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Honeyfield-Org/eurlex-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server