GnistAI GnistAI
Log in

Retsinformation (Danish Legislation)

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

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 type: api wrapper type type api wrapper api wrapper lifecycle: maintained lifecycle lifecycle maintained maintained Legal

Data source: Retsinformation (api.retsinformation.dk)

MCP Endpoint (Streamable HTTP) https://context.gnist.ai/mcp/retsinformation/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (4)

harvest_changes

Get recently changed Danish legislation documents from Retsinformation.

Returns documents that were added, modified, or removed in the last 24 hours
(or for a specific date within the last 10 days). Includes laws (LOV),
regulations (BEK), circulars (CIR), and other official documents.

Each document includes an ELI URL for retrieving the full text.

Returns:
Dict with 'count' and 'documents' list. Each has accession_number,
document_type, change_date, reason_for_change, and eli_url.

ParameterTypeRequiredDescription
dateanyoptionalDate (YYYY-MM-DD, within last 10 days). Omit for today's changes.
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "harvest_changes",
    "arguments": {}
  }
}
get_document

Get full details of a Danish legal document by its accession number.

Retrieves the document XML via ELI (European Legislation Identifier) URI
and parses key metadata: title, dates, status, subjects, and body text.

Document types include:
- LOV: Laws (love)
- BEK: Regulations (bekendtgørelser)
- CIR: Circulars (cirkulærer)
- VEJ: Guidelines (vejledninger)

Returns:
Document detail dict with title, dates, status, subjects, and body_text excerpt.

ParameterTypeRequiredDescription
accession_numberstringrequiredAccession number from harvest results (e.g. 'B20260037005')
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_document",
    "arguments": {
      "accession_number": "123456789"
    }
  }
}
search_by_type

Search recent Danish legislation changes filtered by document type.

Filters today's (or a specific date's) harvest feed by document type.
Useful for monitoring specific categories of legal changes.

Returns:
Dict with 'count' and 'documents' list filtered by 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.
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "search_by_type",
    "arguments": {}
  }
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "report_feedback",
    "arguments": {
      "feedback": "example"
    }
  }
}

Quick Start

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"}}}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/retsinformation/",
    headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_document",
    "arguments": {
      "accession_number": "example"
    }
  }
},
)
print(resp.json())

Related Toolkits (Legal)

Resources