eur_lex_article_as_of
Pack: eur-lex · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/eur_lex_article_as_of for the schema, then POST the same URL with its arguments for the data.
Text of an Article as it stood in force on a given date (point-in-time lookup), from the EUR-Lex consolidated texts published by the EU Publications Office. Picks the consolidated version with the latest effective date on or before the date, and says which one. A date before the act entered into force (or after its end of validity) returns an explicit in_force:false answer, never an empty result. Every answer carries the CELEX, ELI and consolidation date.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
celex | string | yes | CELEX id of the act as originally published (e.g. “32006R1907”) or a known alias (e.g. “GDPR”). |
article | string | yes | Article selector: “17”, “5,6,17”, or “5-9”. Suffixed numbers like “9a” are supported. |
date | string | yes | The date to look up, YYYY-MM-DD. |
lang | string | no | ISO 639-2/B language code (default “eng”). |
Example call
Arguments
{
"celex": "32006R1907",
"article": "57",
"date": "2015-06-30"
}
curl
curl -X POST https://gateway.pipeworx.io/eur-lex/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"eur_lex_article_as_of","arguments":{"celex":"32006R1907","article":"57","date":"2015-06-30"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('eur_lex_article_as_of', {
"celex": "32006R1907",
"article": "57",
"date": "2015-06-30"
});
More examples
{
"celex": "GDPR",
"article": "17",
"date": "2016-05-10"
}
Response shape
| Field | Type | Description |
|---|---|---|
celex | string | |
eli | string | null | |
as_of | string | |
entry_into_force | array | |
end_of_validity | string | null | |
source | string | |
in_force | boolean | false means no text was in force on the date; see reason and message |
status | string | |
reason | string | |
message | string | |
text_available | boolean | |
version | object | null | |
requested | array | |
articles | array | |
notes | array |
Full JSON Schema
{
"type": "object",
"properties": {
"celex": {
"type": "string"
},
"eli": {
"type": [
"string",
"null"
]
},
"as_of": {
"type": "string"
},
"entry_into_force": {
"type": "array",
"items": {
"type": "string"
}
},
"end_of_validity": {
"type": [
"string",
"null"
]
},
"source": {
"type": "string"
},
"in_force": {
"type": "boolean",
"description": "false means no text was in force on the date; see reason and message"
},
"status": {
"type": "string",
"enum": [
"in_force",
"not_in_force"
]
},
"reason": {
"type": "string",
"enum": [
"before_entry_into_force",
"after_end_of_validity"
]
},
"message": {
"type": "string"
},
"text_available": {
"type": "boolean"
},
"version": {
"type": [
"object",
"null"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"consolidated",
"original"
]
},
"celex": {
"type": "string"
},
"eli": {
"type": [
"string",
"null"
]
},
"consolidation_date": {
"type": [
"string",
"null"
]
},
"effective_from": {
"type": [
"string",
"null"
]
},
"citation_url": {
"type": "string"
}
}
},
"requested": {
"type": "array",
"items": {
"type": "string"
}
},
"articles": {
"type": "array",
"items": {
"type": "object",
"properties": {
"article": {
"type": "string"
},
"found": {
"type": "boolean"
},
"heading": {
"type": [
"string",
"null"
]
},
"text": {
"type": [
"string",
"null"
]
},
"citation_url": {
"type": "string"
}
}
}
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the eur-lex pack
{
"mcpServers": {
"eur-lex": {
"url": "https://gateway.pipeworx.io/eur-lex/mcp"
}
}
}
See Getting Started for client-specific install steps.