{"openapi":"3.0.3","info":{"title":"Gnist Context — Legislation","description":"Unified legislative search across US Congress, EU EUR-Lex, Finnish Finlex, Norwegian Stortinget, and Swedish Riksdagen — bills, regulations, directives, and parliamentary cases.\n\n- **MCP endpoint:** `https://context.gnist.ai/mcp/legislation/`\n- **Toolkit page:** `/toolkits/legislation`\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/legislation/search_legislation":{"post":{"tags":["Government"],"summary":"search_legislation","description":"Search legislation across US Congress, EU EUR-Lex, Finnish Finlex, Norwegian Stortinget, and Swedish Riksdagen.\n\nQueries all legislative databases in parallel and returns unified results\nsorted by date (most recent first). Each result includes the jurisdiction,\nidentifier, title, status, and a link to the original source.\n\nExamples:\n    search_legislation(query=\"climate change\")\n    search_legislation(query=\"artificial intelligence\", jurisdiction=\"EU\")\n    search_legislation(query=\"tax reform\", year=2025, jurisdiction=\"US\")","operationId":"legislation_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 query — keywords, bill name, or topic.","type":"string"},"max_results":{"default":10,"description":"Maximum number of results per source.","type":"integer"},"year":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Filter by year."},"jurisdiction":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Filter by jurisdiction: US, EU, FI, NO, or SE. Omit to search all."}},"required":["query"],"type":"object"}}}}}},"/rest/legislation/get_recent_legislation":{"post":{"tags":["Government"],"summary":"get_recent_legislation","description":"Get recent legislative activity across all jurisdictions.\n\nReturns the most recent bills, regulations, and parliamentary cases\nfrom US Congress, EU EUR-Lex, Finnish Finlex, Norwegian Stortinget, and Swedish Riksdagen.\n\nExamples:\n    get_recent_legislation()\n    get_recent_legislation(jurisdiction=\"NO\", max_results=5)","operationId":"legislation_get_recent_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":false,"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"max_results":{"default":10,"description":"Maximum results per source.","type":"integer"},"jurisdiction":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Filter by jurisdiction: US, EU, FI, NO, or SE. Omit for all."}},"type":"object"}}}}}},"/rest/legislation/list_legislation_sources":{"post":{"tags":["Government"],"summary":"list_legislation_sources","description":"List all registered legislative data sources and their status.\n\nExamples:\n    list_legislation_sources()","operationId":"legislation_list_legislation_sources","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/legislation/report_feedback":{"post":{"tags":["Government"],"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":"legislation_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":"Government","description":"Data sources: Government"}],"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."}}}}