dk_law_get
Pack: denmark-law · 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/dk_law_get for the schema, then POST the same URL with its arguments for the data.
Fetch one Danish legal document by id from dk_law_search (an ELI path such as “lta/2024/289” for the current Data Protection Act consolidated act). Returns title, popular name, type, citation, ministry, publication, status (valid or historic), validity date and the text. Pass section (e.g. “6” or “10 a” for § 10 a) for one section only; without it the text is capped at max_chars with a contents list. Text is in Danish exactly as Retsinformation publishes it.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | ELI path from dk_law_search, e.g. “lta/2024/289” |
section | string | no | Section (paragraf) number, e.g. “6” or “10 a” |
max_chars | number | no | Cap on returned text when no section is given (default 20000, max 100000) |
Example call
Arguments
{
"id": "lta/2024/289",
"section": "6"
}
curl
curl -X POST https://gateway.pipeworx.io/denmark-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"dk_law_get","arguments":{"id":"lta/2024/289","section":"6"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('dk_law_get', {
"id": "lta/2024/289",
"section": "6"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
id | string | |
citation | string | null | |
title | string | null | |
popular_title | string | null | |
type | string | null | |
ministry | string | null | |
published_in | string | null | |
published | string | null | |
status | string | |
valid_from | string | null | |
historic_from | string | null | |
eu_references | string | null | |
url | string | |
note | string | |
section | string | |
section_title | string | null | |
section_count | number | |
contents | array | |
text | string | null | |
truncated | boolean | |
total_chars | number | |
hint | string | |
empty_reason | string | |
source | string | |
data_as_of | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"id": {
"type": "string"
},
"citation": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"popular_title": {
"type": [
"string",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
},
"ministry": {
"type": [
"string",
"null"
]
},
"published_in": {
"type": [
"string",
"null"
]
},
"published": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"valid_from": {
"type": [
"string",
"null"
]
},
"historic_from": {
"type": [
"string",
"null"
]
},
"eu_references": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
},
"note": {
"type": "string"
},
"section": {
"type": "string"
},
"section_title": {
"type": [
"string",
"null"
]
},
"section_count": {
"type": "number"
},
"contents": {
"type": "array",
"items": {
"type": "string"
}
},
"text": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
},
"total_chars": {
"type": "number"
},
"hint": {
"type": "string"
},
"empty_reason": {
"type": "string"
},
"source": {
"type": "string"
},
"data_as_of": {
"type": "string"
}
},
"additionalProperties": true
}
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 denmark-law pack
{
"mcpServers": {
"denmark-law": {
"url": "https://gateway.pipeworx.io/denmark-law/mcp"
}
}
}
See Getting Started for client-specific install steps.