Skip to main content
Glama

denmark-legislation-mcp-server

Get Danish legal document

dklaw_get_document
Read-onlyIdempotent

Read Retsinformation metadata, source links, pending amendments, and section selectors. Request outline provisions for a page of exact provision selectors. Use the returned canonical ELI as document and version as_given to continue paging or read text with dklaw_get_provisions. Choose current to follow verified consolidation links and include bill_history to retrieve parliamentary steps when available.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "document": "<document>"
    },
    "name": "dklaw_get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoProvision rows per page, default 25 and capped at 100.
offsetNoZero-based provision row offset, default zero.
includeNoInclude website parliamentary history and the historical cause if reported.
outlineNoShow section selectors by default, or page exact provision selectors. Provision mode includes sections only on the unscoped first page.sections
versionNoKeep the cited revision or follow verified consolidation links to the current consolidation. Defaults to as_given.as_given
documentYesELI URL or path, accession number, dated Danish citation, or exact popular title.
section_selectorNoIn provision mode, limit results to descendants of this revision’s section selector.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
foundNoWhether the document was resolved. True supplies document data, false supplies the miss reason and guidance.
limitNoApplied provision page size.
linksNoCanonical Retsinformation page and available source formats.
totalNoTotal provisions in the selected scope.
offsetNoApplied provision row offset.
reasonNoReason for the lookup miss.
noticesNoResolution notices.
outlineNoSource text structure or coverage guidance.
versionNoApplied version selection.
documentNoSelected document.
guidanceNoHow to continue after the miss.
metadataNoAdditional verified Retsinformation metadata.
candidatesNoVerified candidates, where applicable.
next_offsetNoNext provision row offset, or null at the end.
bill_historyNoWebsite parliamentary history, when requested.
resolved_fromNoIdentity and consolidation provenance.
candidate_totalNoExact number of popular-title matches from the source.
relation_countsNoCounts of relations present in the source graph.
historical_causeNoReason the website marked the record historical.
pending_amendmentsNoLater amendments absent from the selected text, with commencement to be checked separately.
parliamentary_metadataNoAvailable LexDania parliamentary metadata.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, openWorld, and idempotent behavior, while the description adds that paging is supported, current follows verified consolidation links, and bill_history returns parliamentary steps when available. It does not cover error handling or rate limits, but with annotations covering safety it adds useful operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four sentences are front-loaded with purpose and followed by routing and option guidance, with little wasted wording. The outline sentence is slightly terse and could be clearer, but the structure is efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given seven parameters, full schema coverage, annotations, and an output schema, the description covers the key purpose, continuation behavior, and option semantics. It leaves detailed return shapes and auth or rate-limit behavior to structured fields, which is appropriate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and most parameter references such as outline, version, and include bill_history mirror the schema descriptions. The added value is the paging instruction to reuse the returned canonical ELI with version as_given; otherwise it does not add much semantic detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific read operation over Retsinformation metadata, source links, pending amendments, and section selectors, and later says to read text with dklaw_get_provisions. This makes the tool's role distinct from the full-text sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly routes paging/continuation to the returned canonical ELI with version as_given and full text to dklaw_get_provisions, and explains when to choose current or include bill_history. It does not state when not to use this tool or compare with other siblings such as search.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.