Skip to main content
Glama

EUR-Lex Scraper API: EU law article text, in force, amendments

get_eu_law
Read-onlyIdempotent

One call answers "what does Article 50 of the AI Act say today, is it in force, and what amended it?": the article as plain text from the current consolidated version (or the one in force on any date), the act's in-force status and dates, and the acts that amend, correct or repeal it. A second mode lists new acts in the Official Journal L series.

Pass query (GDPR, AI Act, a citation, CELEX or ELI), or ojSince alone to list new Official Journal acts. For UK or Dutch statutes use get_uk_dutch_law; for Dutch court rulings use search_dutch_case_law.

Inputs: with article (e.g. "6(1)", up to 10) one row per article; without it one row for the whole act with its table of contents. include adds amendments, citing acts or the full text; asOf gives the version in force on a date; language is one of the 24 EU languages (English when a text is missing).

Read-only, no side effects. Charged per row returned, at the price below; a call that fails or runs out of time (55 s) is free. If one source does not answer, the rest still comes back and warnings names the gap. Limit: 60 calls a minute per key (10 on a new free key); past it the call is refused (rate_limited, free): retry after about 10 seconds.

Price: $0.005 per act-lookup.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_eu_law"
  }
}

Input Schema

NameRequiredDescriptionDefault
asOfNoYYYY-MM-DD, e.g. "2025-01-01": return the consolidated version that applied on that date
queryNoThe EU act to look up: a short name ("GDPR", "AI Act", "DSA", "NIS2", "DORA", "MiCA", "CSRD"...), a citation ("Regulation
articleNoArticle number, optionally with a paragraph: "5", "6(1)", "4a"; several separated by commas ("5, 6(1)", up to 10)
includeNoAny of "metadata" (always on), "amendments" (amended_by, corrected_by, repealed_by, amends, repeals), "citing" (acts and judgments that cite this act, newest first) and "text"
ojSinceNoSwitches to Official Journal mode: list acts published in the OJ L series from this date (YYYY-MM-DD, e.g. "2026-11-03") until today, newest first, at most 31 days back
keywordsNoOJ mode only: comma-separated words or phrases; an act is kept when its title (in the chosen language) contains any of them, case-insensitive, e.g. "artificial intelligence, data"
languageNoEU language code of the text and titles: BG, CS, DA, DE, EL, EN, ES, ET, FI, FR, GA, HR, HU, IT, LT, LV, MT, NL, PL, PT, RO, SK, SL, SVEN
maxCitingNoWith include "citing": how many citing acts to list, newest first, e.g. 20 (default)
maxResultsNoOJ mode only: the most acts to return, newest first, e.g. 50 (default)
maxTextCharsNoCap on article_text and text, in characters, e.g. 30000 (default)

Output Schema

NameRequiredDescriptionDefault
rowsYes
toolNo
countYes
messageNo
warningsNo
balance_usdNo
charged_usdNo
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / article / examples
      Added value: +[
      +  "5"
      +]
    • addedInput schema / properties / query / examples
      Added value: +[
      +  "GDPR"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "balance_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "charged_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "count": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "duration_seconds": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "message": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "rows": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "act_type": {
      +            "description": "Type of act, e.g. Regulation, Directive, Implementing regulation, Corrigendum.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "act_type_code": {
      +            "description": "Publications Office resource-type code, e.g. REG, DIR, DEC_IMPL, CORRIGENDUM.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "amended_by": {
      +            "description": "Acts that amend this act: {celex, title, date, url}, newest first (include amendments).",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "amends": {
      +            "description": "Acts this act amends: {celex, title, date, url}.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "article": {
      +            "description": "The article returned, e.g. \"50\"; null for an act-level row.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "article_amended_by": {
      +            "description": "In a consolidated text: acts that changed this article (from EUR-Lex's change markers), {celex, change}.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "article_text": {
      +            "description": "Plain text of the article (or paragraph), one line per paragraph or point, numbering kept (\"1.\", \"(a)\").",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "article_text_truncated": {
      +            "description": "True when article_text was cut at maxTextChars.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "article_title": {
      +            "description": "Heading of the article, e.g. \"Principles relating to processing of personal data\".",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "articles_count": {
      +            "description": "Act-level row: number of articles in the text used.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "as_of": {
      +            "description": "The asOf date used (null = today).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "celex": {
      +            "description": "CELEX number of the act, e.g. 32016R0679.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "cellar_url": {
      +            "description": "The Cellar document the text was read from.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "citing_acts": {
      +            "description": "Legislation and case-law citing this act, newest first, up to maxCiting: {celex, title, date, url} (include citing).",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "citing_acts_total": {
      +            "description": "How many legislative acts and judgments cite this act.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "consolidated_version_date": {
      +            "description": "Date of the consolidated version used, YYYY-MM-DD.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "corrected_by": {
      +            "description": "Corrigenda to this act: {celex, title, date, url}.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "date_document": {
      +            "description": "Date of the document (signature/adoption), YYYY-MM-DD.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "date_end_of_validity": {
      +            "description": "End of validity, YYYY-MM-DD; null when open-ended.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "date_entry_into_force": {
      +            "description": "Earliest date of entry into force, YYYY-MM-DD.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "date_publication": {
      +            "description": "Date of publication in the Official Journal, YYYY-MM-DD.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "duration_seconds": {
      +            "description": "How long the lookup took.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "eli": {
      +            "description": "European Legislation Identifier URI of the act, e.g. http://data.europa.eu/eli/reg/2016/679/oj.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "entry_into_force_dates": {
      +            "description": "All entry-into-force / effect dates EUR-Lex records (staged application), sorted.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "eur_lex_url": {
      +            "description": "EUR-Lex page of the original act.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "implicitly_repealed_by": {
      +            "description": "Acts that implicitly repeal this act.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "implicitly_repeals": {
      +            "description": "Acts this act implicitly repeals.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "in_force": {
      +            "description": "Whether EUR-Lex marks the act as in force today.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "language": {
      +            "description": "Language of the text and titles returned (EN when the requested one was unavailable).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "latest_consolidated_version_date": {
      +            "description": "Date of the newest consolidated version EUR-Lex holds (may be later than asOf).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "oj_reference": {
      +            "description": "Official Journal reference for acts published act by act (since Oct 2023), e.g. \"OJ L, 2024/1689\".",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "paragraph": {
      +            "description": "The paragraph returned, e.g. \"1\"; null = whole article.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "query": {
      +            "description": "The query as given (null in OJ mode).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "recitals_count": {
      +            "description": "Act-level row: number of recitals in the OJ text.",
      +            "type": [
      +              "null",
      +              "number"
      +            ]
      +          },
      +          "repealed_by": {
      +            "description": "Acts that repeal this act: {celex, title, date, url}.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "repeals": {
      +            "description": "Acts this act repeals.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "retrieved_at": {
      +            "description": "When the row was made (ISO 8601, UTC).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "schema_version": {
      +            "description": "Output schema version.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "source_url": {
      +            "description": "EUR-Lex page of the exact text version used (consolidated version or OJ act).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "summary_url": {
      +            "description": "EUR-Lex plain-language summary of the act, when one exists.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "table_of_contents": {
      +            "description": "Act-level row: [{article, title}] for every article, to pick one for a follow-up call.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "text": {
      +            "description": "Whole act as plain text, cut at maxTextChars (include text only).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "text_celex": {
      +            "description": "CELEX of the text the article was read from, e.g. 02024R1689-20260727 for a consolidated version.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "text_notice": {
      +            "description": "For consolidated texts: EUR-Lex's own disclaimer (no legal effect; the OJ text is authentic).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "text_truncated": {
      +            "description": "True when text was cut at maxTextChars.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "text_version": {
      +            "description": "\"consolidated\" (EUR-Lex consolidated version, documentation only) or \"original\" (OJ text); null if no text.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "title": {
      +            "description": "Official title in the chosen language (null if Cellar has none in that language).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "warnings": {
      +            "description": "Caveats in plain words: fallbacks, not in force on asOf, truncation, partial data.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    "tool": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "rows",
      +    "count"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the description's "read-only, no side effects" line is largely redundant. It does add genuinely valuable non-annotation context: per-row pricing, free calls on failure or 55 s timeout, partial results with `warnings` naming gaps, and a 60/min (10 on free key) rate limit with a ~10 s retry.

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 capability question and mode split, then inputs, then cost/limits — a sensible order. Slightly padded by the "Read-only, no side effects" clause, which duplicates the annotations, and by mode details restated across sentences.

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 10-parameter tool with an output schema, the description covers mode selection, row shape, language fallback (English when a text is missing), failure/timeout behavior, rate limiting and price. Nothing material an agent needs to call it correctly is missing.

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?

With 100% schema coverage the baseline is 3, but the description adds behavior the schema cannot: `article` yields one row per article (up to 10) while omitting it yields one whole-act row with table of contents, `include` toggles amendments/citing/text, and `asOf` selects the historically in-force version. `query` accepted forms (short name, citation, CELEX, ELI) are also restated usefully.

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?

Opens with a concrete question the tool answers ("what does Article 50 of the AI Act say today, is it in force, and what amended it?") and names the two modes: act lookup and Official Journal listing. It explicitly routes away from siblings (get_uk_dutch_law, search_dutch_case_law), so an agent can distinguish it 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?

States the exact selection rule for each mode: pass `query` for an act, or `ojSince` alone for OJ listing. It also names the alternatives for non-EU/UK sources and court rulings, and notes the article vs. no-article granularity choice.

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.