{"openapi":"3.0.3","info":{"title":"Gnist Context — Lovdata (Norwegian Law)","description":"Norwegian laws (lover) and regulations (forskrifter) — search legislation, read law text, browse sections.\n\n- **MCP endpoint:** `https://context.gnist.ai/mcp/lovdata/`\n- **Toolkit page:** `/toolkits/lovdata`\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/lovdata/search_legislation":{"post":{"tags":["Legal"],"summary":"search_legislation","description":"Search Norwegian laws and regulations on Lovdata.\n\nLovdata is Norway's official source for legislation, including laws (lover),\nregulations (forskrifter), and court decisions.\n\nArgs:\n    query: Search term — law name, topic, or keyword.\n    doc_type: Document type to search: 'lover' (laws, default) or 'forskrifter' (regulations).\n    max_results: Maximum results (1-50, default 20).\n\nReturns:\n    Dict with 'query', 'count', and 'results' list.\n    Each result has: title, identifier, url, date, department.","operationId":"lovdata_search_legislation","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":{"query":{"description":"Search term — law name, topic, or keyword.","type":"string"},"doc_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"lover","description":"Document type to search: 'lover' (laws, default) or 'forskrifter' (regulations)."},"max_results":{"default":20,"description":"Maximum results (1-50, default 20).","type":"integer"}},"required":["query"],"type":"object"}}}}}},"/rest/lovdata/get_law":{"post":{"tags":["Legal"],"summary":"get_law","description":"Get an overview of a Norwegian law, including title, metadata, and table of contents.\n\nArgs:\n    law_path: The law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven\n        (Company Act) or '2005-06-17-62' for arbeidsmiljøloven (Working Environment Act).\n\nReturns:\n    Dict with title, short_title, identifier, department, url, and chapters list.\n    Each chapter has: chapter_id, title, and sections list.","operationId":"lovdata_get_law","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":{"law_path":{"description":"The law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven (Company Act) or '2005-06-17-62' for arbeidsmiljøloven (Working Environment Act).","type":"string"}},"required":["law_path"],"type":"object"}}}}}},"/rest/lovdata/get_law_section":{"post":{"tags":["Legal"],"summary":"get_law_section","description":"Get the full text of a specific section (paragraph) of a Norwegian law.\n\nArgs:\n    law_path: The law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven.\n    section: Section number, e.g. '1-1' or '3-4'. The § symbol is optional.\n\nReturns:\n    Dict with section_id, title, content (full text), and url.","operationId":"lovdata_get_law_section","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":{"law_path":{"description":"The law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven.","type":"string"},"section":{"description":"Section number, e.g. '1-1' or '3-4'. The § symbol is optional.","type":"string"}},"required":["law_path","section"],"type":"object"}}}}}},"/rest/lovdata/get_regulation":{"post":{"tags":["Legal"],"summary":"get_regulation","description":"Get an overview of a Norwegian regulation (forskrift).\n\nArgs:\n    regulation_path: The regulation's date-number identifier,\n        e.g. '2019-12-09-1698' for a specific regulation.\n\nReturns:\n    Dict with title, identifier, department, url, and chapters list.","operationId":"lovdata_get_regulation","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":{"regulation_path":{"description":"The regulation's date-number identifier, e.g. '2019-12-09-1698' for a specific regulation.","type":"string"}},"required":["regulation_path"],"type":"object"}}}}}},"/rest/lovdata/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":"lovdata_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."}}}}