Skip to main content
Glama

denmark-legislation-mcp-server

Read Danish legal provisions

dklaw_get_provisions
Read-onlyIdempotent

Read Danish provisions, chapters, annexes, or a body text page. Use Danish addresses such as § 1 a, stk. 2, nr. 1, litra a. For any returned selector, send it with the result’s canonical ELI as document and version as_given. Send next_offset as offset to continue a page. Check pending amendments and their commencement clauses separately.

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_provisions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum Unicode code points in a selector page, default 12000.
offsetNoZero-based Unicode code point offset, default zero. Use a versioned selector for nonzero offsets.
versionNoFollow verified consolidation links or retain the cited revision. Defaults to current.current
documentYesELI URL or path, accession number, dated Danish citation, or exact popular title.
selectorNoVersioned selector from dklaw_get_document or dklaw_get_provisions. When addresses are omitted, a blank or omitted selector reads the first page of the body.
provisionsNoOrdered Danish addresses. Reads the first ten per call. Omit selector, offset, and limit when using addresses.

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.
linksNoCanonical Retsinformation page and available source formats.
reasonNoReason for the lookup miss.
noticesNoResolution notices.
resultsNoRequested addresses in input order or one body or selector result.
versionNoApplied version selection.
documentNoSelected document.
guidanceNoHow to continue after the miss.
has_moreNoWhether addresses remain, a text page has a next offset, or an address returned a continuation outline.
candidatesNoVerified candidates, where applicable.
resolved_fromNoIdentity and consolidation provenance.
batch_guidanceNoHow to continue from this result.
candidate_totalNoExact number of popular-title matches from the source.
pending_amendmentsNoLater amendments absent from the selected text, with commencement to be checked separately.
remaining_provisionsNoUnprocessed addresses in input order, present when the batch exceeds ten.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, open-world behavior, so the description's job is to add operational context – and it does: results are paginated via next_offset, selectors are version-coupled to the ELI and must be replayed with version=as_given rather than 'current', and address-based reads are capped per call. These are non-obvious coupling and paging behaviors an agent could not derive from the annotations alone.

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 short sentences, front-loaded with the purpose before the addressing and paging mechanics. The Danish citation example ('§ 1 a, stk. 2, nr. 1, litra a') is dense but earns its place by showing the expected address format.

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?

With an output schema present, the description need not explain return values, and it covers the parts that matter most for correct invocation: address format, selector/ELI replay, and pagination. The main residual gap is error behavior for invalid or non-versioned selectors, which is only partially implied.

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

Parameters4/5

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

Schema description coverage is 100%, so a baseline of 3 is warranted, but the description adds real semantic glue: it explains why version matters (as_given preserves the cited revision tied to a returned selector) and how offset/next_offset relate across calls. It does not add much on limit or on selector syntax beyond the schema's existing text.

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

Purpose4/5

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

The description opens with a specific verb and resource set: 'Read Danish provisions, chapters, annexes, or a body text page,' which tells an agent exactly what content this returns. It does not explicitly contrast itself with dklaw_get_document or dklaw_search_documents, so the boundary between this reader and the document/metadata siblings is left to inference.

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 gives concrete operating guidance: use Danish address syntax, feed a returned selector back with its canonical ELI and version=as_given, and send next_offset as offset to paginate. It also routes one adjacent concern away ('check pending amendments and their commencement clauses separately'). It stops short of an explicit when-to-use-this-instead-of-sibling statement.

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.