GnistAI GnistAI
Log in

SMHI Weather Warnings (Sweden)

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.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 type: api wrapper type type api wrapper api wrapper lifecycle: maintained lifecycle lifecycle maintained maintained Environment

Data source: SMHI (Swedish Meteorological and Hydrological Institute)

REST Bridge Endpoint https://context.gnist.ai/rest/smhi-warnings/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (3)

get_weather_warnings

Get current SMHI weather warnings for Sweden.

Returns active weather warnings from the Swedish Meteorological and
Hydrological Institute (SMHI). Warnings cover meteorological events
(wind, snow, rain, thunder, fire risk) and hydrological events
(flooding, high water levels).

Warning levels: MESSAGE (informational), YELLOW (moderate),
ORANGE (significant), RED (extreme).

Returns:
List of warnings with severity, affected areas, and time periods.

ParameterTypeRequiredDescription
warning_levelanyoptionalFilter by warning level code: MESSAGE, YELLOW, ORANGE, or RED. Omit for all levels.
event_typeanyoptionalFilter by event type code: THUNDER, WIND, SNOW, RAIN, FIRE, HIGH_TEMPERATURES, etc. Omit for all types.
Request Body
{
  "query": "example"
}
get_warning_metadata

List available SMHI warning levels and event types.

Returns the full set of warning level codes (MESSAGE, YELLOW, ORANGE, RED)
and event type codes (THUNDER, WIND, SNOW, etc.) used in Swedish weather
warnings. Useful for understanding the classification system before
querying active warnings.

Returns:
Warning levels and event types with their descriptions.

Request Body
{
  "query": "example"
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
Request Body
{
  "feedback": "example"
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/rest/smhi-warnings/report_feedback" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"feedback": "example"}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/rest/smhi-warnings/report_feedback",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={
  "feedback": "example"
},
)
print(resp.json())

Related Toolkits (Environment)

Resources