GnistAI GnistAI
Log in

Retsinformation (Danish Legislation)

Danish legislation — daily harvest of changed laws, regulations, and circulars with ELI document retrieval.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 Legal

Data source: Retsinformation (api.retsinformation.dk)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/retsinformation/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-retsinformation": {
      "url": "https://context.gnist.ai/mcp/retsinformation/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/retsinformation/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_document", "arguments": {"accession_number": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/retsinformation/

4 endpoints available:

Shell
curl "https://context.gnist.ai/rest/retsinformation/get_document?accession_number=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/retsinformation/get_document",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "accession_number": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc retsinformation

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (4)

harvest_changes
Get recently changed Danish legislation documents from Retsinformation.
ParameterTypeRequiredDescription
dateanyoptionalDate (YYYY-MM-DD, within last 10 days). Omit for today's changes.
get_document
Get full details of a Danish legal document by its accession number.
ParameterTypeRequiredDescription
accession_numberstringrequiredAccession number from harvest results (e.g. 'B20260037005')
search_by_type
Search recent Danish legislation changes filtered by document type.
ParameterTypeRequiredDescription
doc_typeanyoptionalDocument type filter: 'LOV' (law), 'BEK' (regulation), 'CIR' (circular), 'VEJ' (guideline)
dateanyoptionalDate (YYYY-MM-DD, within last 10 days). Omit for today.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related