dk_law_search
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_search for the schema, then POST the same URL with its arguments for the data.
Search Danish national legislation (Retsinformation) by title word or popular name, e.g. “databeskyttelsesloven” or “straffeloven” (Danish). By default searches acts (love) and consolidated acts (lovbekendtgoerelser) and returns only those in force; set document_type to “executive_order” for bekendtgoerelser, “act” or “consolidated_act” for one kind, and in_force_only=false for historic ones. Returns id (ELI path such as “lta/2024/289”), citation, title, popular name, type, ministry, status, title_match (the words appear in the title; later hits are text matches) and a link; 10 per page, use page to continue. Pair with dk_law_get for the text.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Word(s) from the Danish title or popular name, e.g. “databeskyttelsesloven” |
document_type | string | no | law (acts and consolidated acts, default), act, consolidated_act or executive_order |
in_force_only | boolean | no | Only documents in force today (default true) |
page | number | no | Page number, 1-based (default 1) |
Example call
Arguments
{
"query": "databeskyttelsesloven"
}
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_search","arguments":{"query":"databeskyttelsesloven"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('dk_law_search', {
"query": "databeskyttelsesloven"
});
Response shape
| Field | Type | Description |
|---|---|---|
query | string | |
document_type | string | |
in_force_only | boolean | |
total_matches | number | |
page | number | |
count | number | |
results | array | |
next_page | number | null | |
empty_reason | string | |
source | string | |
data_as_of | string |
Full JSON Schema
{
"type": "object",
"properties": {
"query": {
"type": "string"
},
"document_type": {
"type": "string"
},
"in_force_only": {
"type": "boolean"
},
"total_matches": {
"type": "number"
},
"page": {
"type": "number"
},
"count": {
"type": "number"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"citation": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"popular_title": {
"type": [
"string",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
},
"ministry": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"title_match": {
"type": "boolean"
},
"published": {
"type": [
"string",
"null"
]
},
"url": {
"type": "string"
}
},
"additionalProperties": true
}
},
"next_page": {
"type": [
"number",
"null"
]
},
"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.