{"openapi":"3.0.3","info":{"title":"Gnist Context — SMHI Weather Warnings (Sweden)","description":"Swedish weather warnings from SMHI — impact-based warnings for meteorological and hydrological events including wind, snow, rain, thunder, fire risk, flooding, and high sea levels.\n\n- **MCP endpoint:** `https://context.gnist.ai/mcp/smhi-warnings/`\n- **Toolkit page:** `/toolkits/smhi-warnings`\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/smhi-warnings/get_weather_warnings":{"post":{"tags":["Environment"],"summary":"get_weather_warnings","description":"Get current SMHI weather warnings for Sweden.\n\nReturns active weather warnings from the Swedish Meteorological and\nHydrological Institute (SMHI). Warnings cover meteorological events\n(wind, snow, rain, thunder, fire risk) and hydrological events\n(flooding, high water levels).\n\nWarning levels: MESSAGE (informational), YELLOW (moderate),\nORANGE (significant), RED (extreme).\n\nReturns:\n    List of warnings with severity, affected areas, and time periods.","operationId":"smhi_warnings_get_weather_warnings","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":{"warning_level":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Filter by warning level code: MESSAGE, YELLOW, ORANGE, or RED. Omit for all levels."},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Filter by event type code: THUNDER, WIND, SNOW, RAIN, FIRE, HIGH_TEMPERATURES, etc. Omit for all types."}},"type":"object"}}}}}},"/rest/smhi-warnings/get_warning_metadata":{"post":{"tags":["Environment"],"summary":"get_warning_metadata","description":"List available SMHI warning levels and event types.\n\nReturns the full set of warning level codes (MESSAGE, YELLOW, ORANGE, RED)\nand event type codes (THUNDER, WIND, SNOW, etc.) used in Swedish weather\nwarnings. Useful for understanding the classification system before\nquerying active warnings.\n\nReturns:\n    Warning levels and event types with their descriptions.","operationId":"smhi_warnings_get_warning_metadata","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/smhi-warnings/report_feedback":{"post":{"tags":["Environment"],"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":"smhi_warnings_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":"Environment","description":"Data sources: Environment"}],"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."}}}}