Legal
Data source: Retsinformation (api.retsinformation.dk)
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/retsinformation/
4 endpoints available:
GET /rest/retsinformation/harvest_changesGET /rest/retsinformation/get_documentGET /rest/retsinformation/search_by_typeGET /rest/retsinformation/report_feedback
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())
Command Line
Command
gc retsinformation
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (4)
harvest_changesGet recently changed Danish legislation documents from Retsinformation.
| Parameter | Type | Required | Description |
|---|---|---|---|
date | any | optional | Date (YYYY-MM-DD, within last 10 days). Omit for today's changes. |
get_documentGet full details of a Danish legal document by its accession number.
| Parameter | Type | Required | Description |
|---|---|---|---|
accession_number | string | required | Accession number from harvest results (e.g. 'B20260037005') |
search_by_typeSearch recent Danish legislation changes filtered by document 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. |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |