{"openapi":"3.0.3","info":{"title":"Gnist Context — domstol.no (Norwegian Courts)","description":"Norwegian court hearing schedules — search upcoming and recent hearings across all courts.\n\n- **MCP endpoint:** `https://context.gnist.ai/mcp/domstol/`\n- **Toolkit page:** `/toolkits/domstol`\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/domstol/search_hearings":{"post":{"tags":["Legal"],"summary":"search_hearings","description":"Search Norwegian court hearing schedules (berammingslister).\n\nQuery upcoming and recent court hearings across all Norwegian courts.\nBoth date_from and date_to are required. Results include case details,\njudges, attorneys, and hearing intervals.\n\nArgs:\n    date_from: Start date (ISO format, e.g. '2026-03-17').\n    date_to: End date (ISO format, e.g. '2026-03-24').\n    query: Optional free-text search (e.g. court name, case subject).\n    page: Page number (1-indexed, default 1).\n    page_size: Results per page (1-100, default 25).\n    sort_by: Sort field: 'rettsmoeteDato' (hearing date) or 'rettsmoete'.\n    sort_ascending: Sort direction (default true = earliest first).\n\nReturns:\n    Dict with 'total' count, 'page', 'page_size', and 'hearings' list.\n    Each hearing has: id, court, case_number, subject, start_date, end_date,\n    judge, attorneys, parties, hearing_intervals.","operationId":"domstol_search_hearings","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":{"date_from":{"description":"Start date (ISO format, e.g. '2026-03-17').","type":"string"},"date_to":{"description":"End date (ISO format, e.g. '2026-03-24').","type":"string"},"query":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Optional free-text search (e.g. court name, case subject)."},"page":{"default":1,"description":"Page number (1-indexed, default 1).","type":"integer"},"page_size":{"default":25,"description":"Results per page (1-100, default 25).","type":"integer"},"sort_by":{"default":"rettsmoeteDato","description":"Sort field: 'rettsmoeteDato' (hearing date) or 'rettsmoete'.","type":"string"},"sort_ascending":{"default":true,"description":"Sort direction (default true = earliest first).","type":"boolean"}},"required":["date_from","date_to"],"type":"object"}}}}}},"/rest/domstol/list_courts":{"post":{"tags":["Legal"],"summary":"list_courts","description":"List all known Norwegian courts.\n\nReturns the full list of courts (tingretter, lagmannsretter, jordskifteretter,\nand Høyesterett) whose hearings appear in domstol.no schedules.\n\nReturns:\n    Dict with 'count' and 'courts' list. Each court has a 'name' field.","operationId":"domstol_list_courts","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":[]}]}},"/rest/domstol/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":"domstol_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."}}}}