dk_law_relations

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

Which Danish laws a document AMENDS and which laws AMEND it, read from the publisher’s own document (Retsinformation, Civilstyrelsen), live per request. Pass an id from dk_law_search (“lta/2025/1294”), an ELI address or an accession number (“A20260026330”). amends: for an amending act (lov om aendring af …), each act it changes as the act itself names it (section, name, the number and date of the version it points at, a derived id, the quoted sentence); a reference with no number is returned with confidence low and no id, never dropped. amended_by: the later amending acts the publisher lists in the document’s record data (accession number, date, title). consolidates / incorporated_amendments: for a consolidated act (lovbekendtgoerelse), the base act and the amendments already folded into this text. Every relation carries its quote. A document that states no relations says so in empty_reason. amended_by covers only what the publisher records on THIS version: amendments folded into a newer consolidated act appear there, not here; nothing is inferred by searching other documents.

Parameters

NameTypeRequiredDescription
identifierstringyesELI path or address (“lta/2025/1294”) or accession number (“A20260026330”).

Example call

Arguments

{
  "identifier": "lta/2025/1294"
}

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_relations","arguments":{"identifier":"lta/2025/1294"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('dk_law_relations', {
  "identifier": "lta/2025/1294"
});

More examples

{
  "identifier": "A20260076430"
}

Response shape

FieldTypeDescription
foundboolean
idstring
citationstring | null
titlestring | null
typestring | null
statusstring
urlstring
amendsarray
amends_countnumber
amended_byarray
amended_by_countnumber
consolidatesobject | null
incorporated_amendmentsarray
scope_notestring
empty_reasonstring
sourcestring
data_as_ofstring
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "citation": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "amends": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "section": {
            "type": [
              "string",
              "null"
            ]
          },
          "target_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "target": {
            "type": [
              "object",
              "null"
            ]
          },
          "as_amended_by": {
            "type": "array"
          },
          "quote": {
            "type": "string"
          },
          "confidence": {
            "type": "string"
          },
          "confidence_note": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "amends_count": {
      "type": "number"
    },
    "amended_by": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accession_number": {
            "type": "string"
          },
          "date": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "quote": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "amended_by_count": {
      "type": "number"
    },
    "consolidates": {
      "type": [
        "object",
        "null"
      ]
    },
    "incorporated_amendments": {
      "type": "array"
    },
    "scope_note": {
      "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.

Regenerated from source · build November 28, 2026