Skip to main content
Glama

denmark-legislation-mcp-server

Search Danish legislation

dklaw_search_documents
Read-onlyIdempotent

Search Retsinformation using Danish terms, an exact popular title, document types, a ministry, a CELEX identifier, or dates. Results carry canonical ELI links for dklaw_get_document. Use dklaw_list_reference to find exact document types and ministries. Use dklaw_lookup_citation to resolve a known Danish citation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dklaw_search_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoZero-based page within the first 10,000 matches. Start at 0 and follow next_page.
celexNoEU document CELEX identifier, for example 32016R0679. A CELEX: prefix is accepted.
limitNoRows per page. Defaults to 25. Values above 100 are reduced to 100.
orderNoOrder by relevance or newest publication date. Defaults to relevance.relevance
queryNoDanish full-text terms. Space-separated terms match any term by default. Use AND to require both terms, for example persondata AND behandling. See dklaw_list_reference with topic search_syntax. Parentheses, braces, brackets, exclamation marks, colons, carets, and backslashes are unsupported.
statusNoUse current for published current text only or all to include historical versions. Defaults to current.current
year_toNoLast signing or parliamentary session year, inclusive (four digits).
ministryNoLimit results to one ministry or authority from dklaw_list_reference with topic ministries.
year_fromNoFirst signing or parliamentary session year, inclusive (four digits).
popular_titleNoExact Danish popular title, for example Databeskyttelsesloven.
classificationNoFilter to one document category. Intersects with document_types.
document_typesNoOne or more document types. Intersects with classification when supplied.
published_fromNoFirst publication date, inclusive, as YYYY-MM-DD in Copenhagen.

Output Schema

NameRequiredDescriptionDefault
pageNoApplied zero-based result page.
errorNoPresent when the call failed. Absent on success.
limitNoApplied page size.
totalNoTotal document matches across all pages.
sourceNoRetsinformation search endpoint.
noticesNoNotices about the search and applied limit.
has_moreNoWhether another page is reachable with these filters.
documentsNoDocuments on the requested page in source order.
next_pageNoNext zero-based page, or null when no page follows.
applied_filtersNoNormalized filters sent to Retsinformation, including defaults.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint, so the safety profile is covered; the description adds the valuable behavioral fact that results carry canonical ELI links intended for chaining into dklaw_get_document. It does not describe pagination or result ordering, but those are handled by the schema's page/limit/order fields.

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

Conciseness5/5

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

Three sentences, each earning its place: what it searches, what you get back and where to send it, and which siblings to use instead. Front-loaded and free of filler.

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 13 optional parameters, an output schema and full schema descriptions, the description need not explain inputs or return values. It covers the key workflow concerns (vocabulary lookup and ELI-based follow-up), leaving only minor gaps such as how to behave when zero results return.

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 every parameter including page, limit, status, year ranges and classification is already documented with formats and defaults. The description only restates the search axes at a high level and adds no syntax or interaction detail beyond the schema; baseline 3 applies.

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?

States a specific verb and resource ("Search Retsinformation") and enumerates the supported search axes (Danish terms, popular title, document types, ministry, CELEX, dates). It also distinguishes itself from siblings by explicitly routing retrieval to dklaw_get_document and reference/citation work to dklaw_list_reference and dklaw_lookup_citation.

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

Usage Guidelines5/5

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

Names three alternatives and the conditions that select them: list_reference for exact type/ministry vocabulary, lookup_citation for a known Danish citation, and get_document via the returned ELI links. An agent knows both when to use this tool and when to hand off.

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.