get_document

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/get_document for the schema, then POST the same URL with its arguments for the data.

Plain-text of a whole act (recitals + enacting terms), paged. Use for short acts or to read recitals/definitions; for a specific Article prefer get_article. Returns up to max_chars from offset.

Parameters

NameTypeRequiredDescription
celexstringyesCELEX id or a known alias.
langstringnoISO 639-2/B language code (default “eng”).
max_charsnumbernoMax characters to return (default 8000, max 40000).
offsetnumbernoCharacter offset to start from, for paging (default 0).

Example call

Arguments

{
  "celex": "GDPR"
}

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":"get_document","arguments":{"celex":"GDPR"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_document', {
  "celex": "GDPR"
});

More examples

{
  "celex": "32022R0868",
  "max_chars": 16000,
  "offset": 0
}

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.

Regenerated from source · build October 26, 2026