Skip to main content
Glama

denmark-legislation-mcp-server

Get Danish document relationships

dklaw_get_relations
Read-onlyIdempotent

Read amendment, consolidation, legal basis, decision, Ombudsman, commencement, shared EU implementation, shared EU document reference, and publication exemption links for the document as supplied. Groups follow the order of the relation choices. Use status all to include historical subordinate rules and unclassified basis links, and next_offset to continue.

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

Input Schema

NameRequiredDescriptionDefault
limitNoRequested rows per page, capped at 100.
offsetNoZero-based offset in the full filtered sequence.
statusNoCurrent or all records for subordinate rules and unclassified basis links. Other groups retain historical records.current
documentYesCanonical ELI path or URL, accession number, dated Danish citation, or exact popular title.
relationNoReturn only this relationship kind. Omit to see all relationship groups.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
foundNoWhether the requested document resolved for this operation.
limitNoApplied page size.
totalNoTotal matching rows within the stated source coverage.
offsetNoApplied offset.
reasonNoReason for the lookup miss.
noticesNoResolution notices.
coverageNoSource coverage of the resolved graph.
documentNoSelected document.
guidanceNoHow to continue after the miss.
relationsNoPage of matching relationships in source group order.
candidatesNoVerified candidates, where applicable.
next_offsetNoNext offset, or null at the end.
resolved_fromNoIdentity and consolidation provenance.
applied_filtersNoRelationship and status filters applied to the full source sequence.
candidate_totalNoExact number of popular-title matches from the source.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds real behavioral context beyond that: results are grouped and the group order follows the order of the relation choices, and pagination is continued via next_offset. One loose end: next_offset does not appear in the input schema, so the agent must infer it comes back in the response.

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?

Two tight sentences, front-loaded with the resource definition followed by operational hints. The long enumeration of link types is dense but each item maps to an enum value, so it earns its space; only the ordering of the guidance feels slightly compressed.

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?

An output schema exists, so return values need not be explained, and the description still volunteers grouping and continuation behavior. Combined with full schema coverage for five parameters, an agent has enough to call this correctly. The only gap is the absent alternative-routing guidance against the versioning and change-tracking siblings.

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 description coverage is 100%, so the schema already documents status, relation, limit and offset in detail — the description's clauses about 'status all' and historical subordinate rules largely restate the status field's own enum description. The one genuinely additive point is that output groups follow the order of the relation choices, which helps the agent parse the response shape. With the schema doing the heavy lifting, baseline 3 is appropriate.

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 ('Read') and enumerates the exact relationship categories returned (amendment, consolidation, legal basis, decision, Ombudsman, commencement, EU shared implementation/reference, publication exemption). That enumeration makes the resource concrete and clearly separates it from siblings like dklaw_get_document or dklaw_get_provisions. It stops short of naming an explicit alternative for the 'I want versions/changes over time' case, which dklaw_list_versions or dklaw_track_changes might cover.

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

Usage Guidelines3/5

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

Usage guidance is present but mostly parameter-level: 'Use status all to include historical subordinate rules and unclassified basis links' and 'next_offset to continue' tell the agent how to widen scope and paginate. There is no statement of when to use this tool versus a sibling, nor any exclusion or prerequisite (e.g., that the document must already be resolved). The intent is implied rather than spelled out.

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.