Search Danish legislation
dklaw_search_documentsSearch 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
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Zero-based page within the first 10,000 matches. Start at 0 and follow next_page. | |
| celex | No | EU document CELEX identifier, for example 32016R0679. A CELEX: prefix is accepted. | |
| limit | No | Rows per page. Defaults to 25. Values above 100 are reduced to 100. | |
| order | No | Order by relevance or newest publication date. Defaults to relevance. | relevance |
| query | No | Danish 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. | |
| status | No | Use current for published current text only or all to include historical versions. Defaults to current. | current |
| year_to | No | Last signing or parliamentary session year, inclusive (four digits). | |
| ministry | No | Limit results to one ministry or authority from dklaw_list_reference with topic ministries. | |
| year_from | No | First signing or parliamentary session year, inclusive (four digits). | |
| popular_title | No | Exact Danish popular title, for example Databeskyttelsesloven. | |
| classification | No | Filter to one document category. Intersects with document_types. | |
| document_types | No | One or more document types. Intersects with classification when supplied. | |
| published_from | No | First publication date, inclusive, as YYYY-MM-DD in Copenhagen. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Applied zero-based result page. | |
| error | No | Present when the call failed. Absent on success. | |
| limit | No | Applied page size. | |
| total | No | Total document matches across all pages. | |
| source | No | Retsinformation search endpoint. | |
| notices | No | Notices about the search and applied limit. | |
| has_more | No | Whether another page is reachable with these filters. | |
| documents | No | Documents on the requested page in source order. | |
| next_page | No | Next zero-based page, or null when no page follows. | |
| applied_filters | No | Normalized filters sent to Retsinformation, including defaults. |