{"openapi":"3.0.3","info":{"title":"Gnist Context — Retsinformation (Danish Legislation)","description":"Danish legislation — daily harvest of changed laws, regulations, and circulars with ELI document retrieval.\n\n- **MCP endpoint:** `https://context.gnist.ai/mcp/retsinformation/`\n- **Toolkit page:** `/toolkits/retsinformation`\n- **Full API spec:** `/api/openapi.json`\n- **Get an API key:** `/signup`","version":"1.0.0","contact":{"name":"GnistAI","url":"https://gnist.ai"}},"servers":[{"url":"https://context.gnist.ai","description":"Production"}],"paths":{"/rest/retsinformation/harvest_changes":{"post":{"tags":["Legal"],"summary":"harvest_changes","description":"Get recently changed Danish legislation documents from Retsinformation.\n\nReturns documents that were added, modified, or removed in the last 24 hours\n(or for a specific date within the last 10 days). Includes laws (LOV),\nregulations (BEK), circulars (CIR), and other official documents.\n\nEach document includes an ELI URL for retrieving the full text.\n\nReturns:\n    Dict with 'count' and 'documents' list. Each has accession_number,\n    document_type, change_date, reason_for_change, and eli_url.","operationId":"retsinformation_harvest_changes","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Date (YYYY-MM-DD, within last 10 days). Omit for today's changes."}},"type":"object"}}}}}},"/rest/retsinformation/get_document":{"post":{"tags":["Legal"],"summary":"get_document","description":"Get full details of a Danish legal document by its accession number.\n\nRetrieves the document XML via ELI (European Legislation Identifier) URI\nand parses key metadata: title, dates, status, subjects, and body text.\n\nDocument types include:\n- LOV: Laws (love)\n- BEK: Regulations (bekendtgørelser)\n- CIR: Circulars (cirkulærer)\n- VEJ: Guidelines (vejledninger)\n\nReturns:\n    Document detail dict with title, dates, status, subjects, and body_text excerpt.","operationId":"retsinformation_get_document","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"accession_number":{"description":"Accession number from harvest results (e.g. 'B20260037005')","type":"string"}},"required":["accession_number"],"type":"object"}}}}}},"/rest/retsinformation/search_by_type":{"post":{"tags":["Legal"],"summary":"search_by_type","description":"Search recent Danish legislation changes filtered by document type.\n\nFilters today's (or a specific date's) harvest feed by document type.\nUseful for monitoring specific categories of legal changes.\n\nReturns:\n    Dict with 'count' and 'documents' list filtered by type.","operationId":"retsinformation_search_by_type","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"doc_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Document type filter: 'LOV' (law), 'BEK' (regulation), 'CIR' (circular), 'VEJ' (guideline)"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Date (YYYY-MM-DD, within last 10 days). Omit for today."}},"type":"object"}}}}}},"/rest/retsinformation/report_feedback":{"post":{"tags":["Legal"],"summary":"report_feedback","description":"Report a bug, feature request, or general feedback for this data source.\n\nUse this when something doesn't work as expected, when you'd like\na new feature, or when you have suggestions for improvement.\n\nArgs:\n    feedback: Describe the issue or suggestion.\n    feedback_type: One of 'bug', 'feature_request', or 'general'.","operationId":"retsinformation_report_feedback","responses":{"200":{"description":"Successful tool call","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Server or tool not found"},"500":{"description":"Tool execution error"}},"security":[{"ApiKeyHeader":[]},{"ApiKeyQuery":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"feedback":{"type":"string"},"feedback_type":{"default":"general","type":"string"}},"required":["feedback"],"type":"object"}}}}}}},"tags":[{"name":"Legal","description":"Data sources: Legal"}],"components":{"securitySchemes":{"ApiKeyHeader":{"type":"apiKey","in":"header","name":"gnist-api-key","description":"API key passed via request header."},"ApiKeyQuery":{"type":"apiKey","in":"query","name":"gnist_api_key","description":"API key passed via query parameter."}}}}