Skip to main content
Glama

SMHI — Active Weather Warnings for Sweden

smhi.weather.warnings
Read-onlyIdempotent

Get all currently active official weather warnings issued by SMHI for Sweden. Returns event type, warning level, affected areas, and time windows in English. Warning levels: MESSAGE (advisory), YELLOW (moderate risk), ORANGE (significant risk), RED (extreme risk). Event types include: WIND (storm), PRECIPITATION (heavy rain/snow), THUNDERSTORM, SNOWFALL, SLEET, FIRE (wildfire risk), FROST, FOG, HIGH_TEMPERATURE, LOW_SEA_LEVEL, HIGH_SEA_LEVEL, WATER_SHORTAGE, WIND_SEA, AVALANCHE. Each warning specifies the Swedish counties (Länen) and municipalities affected. SMHI is the official Swedish meteorological authority — these are the same warnings issued to emergency services and broadcast to the Swedish public. No API key required — SMHI open data, Creative Commons BY 4.0.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNoResponse language preference (not sent to API — all warnings include English). "en" = English area names (default). "sv" = Swedish area names.en

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint. The description adds valuable context: it enumerates the data structure (event type, level, areas, time windows), explains the severity scale, notes the official source and open licensing, and clarifies that the language parameter does not affect API behavior. This goes beyond the annotations without contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but effective, front-loading the core purpose in the first sentence and then providing necessary enumerations (levels, event types) and contextual details (authority, licensing). Each sentence contributes useful information, with no filler, though it is somewhat long.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description does not need to explain return format, but it provides a rich overview of the content (event types, levels, affected areas, time windows) and clarifies the origin and reliability. It covers the essential information an agent needs to decide when and how to call the tool, leaving no obvious gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema description already explains the language parameter ('preference not sent to API', English/Swedish area names). The tool description does not add meaning beyond that; it merely restates that warnings include English. Since schema carries the semantic load, a score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Get all currently active official weather warnings') and a clear resource (SMHI for Sweden). It enumerates return fields and both warning levels and event types, making its purpose unambiguous and distinguishing it from sibling tools like smhi.weather.forecast or smhi.weather.fire_risk.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly indicates it returns active official warnings, implying it is for real-time alerting rather than forecasts or observations. However, it does not explicitly state when to use it versus alternatives (e.g., 'for forecasts use smhi.weather.forecast'), so guidance is implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.