dk_law_change_history
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_change_history for the schema, then POST the same URL with its arguments for the data.
The history of changes to Danish legal documents, from a daily capture of the publisher’s change feed (Retsinformation) kept since the capture began: one row per change with accession number, document type, reason (new, content_changed, metadata_changed, …), change date, the time we captured it and a document_version (equal values = identical text). Use it to answer “what changed in this act between two dates” and “was this regulation amended since X” beyond the 10 days dk_law_recent_changes can see. from/to default to the last 7 captured days (at most 31 days per call); accession_number narrows to one document. data_as_of is the last complete captured day; the response lists days with no capture and says so if the capture is stale. Returns found false with a reason, never a silent empty list.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
from | string | no | First day, YYYY-MM-DD. Default: 6 days before to. |
to | string | no | Last day, YYYY-MM-DD. Default: the last complete captured day. |
accession_number | string | no | Only this document, e.g. “A20230128429”. |
reason | string | no | new, content_changed, metadata_changed, content_and_metadata_changed or removed. |
document_type | string | no | Document type prefix, e.g. “LBK” (consolidated act), “BEK” (executive order). |
limit | number | no | Max rows returned (default 200, max 1000). |
Example call
Arguments
{
"from": "2026-11-14",
"to": "2026-11-20",
"accession_number": "A20230128429"
}
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_change_history","arguments":{"from":"2026-11-14","to":"2026-11-20","accession_number":"A20230128429"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('dk_law_change_history', {
"from": "2026-11-14",
"to": "2026-11-20",
"accession_number": "A20230128429"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
from | string | |
to | string | |
days_with_capture | number | |
days_without_capture | array | |
days_incomplete | array | |
captured_since | string | null | |
total | number | |
returned | number | |
rows | array | |
distinct_document_versions | number | |
note | string | |
capture_stale | boolean | |
warning | string | |
empty_reason | string | |
source | string | |
data_as_of | string | |
capture_last_ok_at | string | null |
Full JSON Schema
{
"type": "object",
"additionalProperties": true,
"properties": {
"found": {
"type": "boolean"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"days_with_capture": {
"type": "number"
},
"days_without_capture": {
"type": "array",
"items": {
"type": "string"
}
},
"days_incomplete": {
"type": "array",
"items": {
"type": "string"
}
},
"captured_since": {
"type": [
"string",
"null"
]
},
"total": {
"type": "number"
},
"returned": {
"type": "number"
},
"rows": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"properties": {
"accession_number": {
"type": [
"string",
"null"
]
},
"document_id": {
"type": [
"string",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
},
"reason": {
"type": "string"
},
"change_date": {
"type": [
"string",
"null"
]
},
"captured_at": {
"type": "string"
},
"document_version": {
"type": [
"string",
"null"
]
},
"document_status": {
"type": "string"
},
"url": {
"type": [
"string",
"null"
]
}
}
}
},
"distinct_document_versions": {
"type": "number"
},
"note": {
"type": "string"
},
"capture_stale": {
"type": "boolean"
},
"warning": {
"type": "string"
},
"empty_reason": {
"type": "string"
},
"source": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"capture_last_ok_at": {
"type": [
"string",
"null"
]
}
}
}
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.