Data source: Retsinformation (api.retsinformation.dk)
https://context.gnist.ai/mcp/retsinformation/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (4)
harvest_changesGet 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
date | any | optional | Date (YYYY-MM-DD, within last 10 days). Omit for today's changes. |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "harvest_changes",
"arguments": {}
}
}get_documentGet 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
accession_number | string | required | Accession number from harvest results (e.g. 'B20260037005') |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_document",
"arguments": {
"accession_number": "123456789"
}
}
}search_by_typeSearch 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
doc_type | any | optional | Document type filter: 'LOV' (law), 'BEK' (regulation), 'CIR' (circular), 'VEJ' (guideline) |
date | any | optional | Date (YYYY-MM-DD, within last 10 days). Omit for today. |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "search_by_type",
"arguments": {}
}
}report_feedbackReport 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'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "report_feedback",
"arguments": {
"feedback": "example"
}
}
}Quick Start
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"}}}'
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())