smhi.weather.warnings
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...
This record as markdown: /tools/io-github-whiteknightonhorse-apibase/smhi.weather.warnings.md
What smhi.weather.warnings does on Apibase
AI agents call smhi.weather.warnings to retrieve information from Apibase without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
language | string | — | Response language preference (not sent to API — all warnings include English). "en" = English area names (default). "sv" = Swedish area names. |
Parameters from the server's own tool schema.
Why smhi.weather.warnings is rated Low
Retrieves read-only weather warning data with no side effects or data modification.
From the tool's definition Get all currently active official weather warnings issued by SMHI
Attacks that exploit this kind of access
The rule that runs smhi.weather.warnings safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Apibase, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For smhi.weather.warnings, this is the rule to start with:
smhi.weather.warnings is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Apibase, apply this rule, and every smhi.weather.warnings call is checked against it from then on.
Questions about smhi.weather.warnings
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. It is categorised as a Read tool in the Apibase MCP Server, which means it retrieves data without modifying state.
smhi.weather.warnings accepts 1 parameter: language. The full parameter table on this page comes from the server's own tool schema.
Register the Apibase MCP server in PolicyLayer and add a rule for smhi.weather.warnings: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Apibase. Nothing to install.
smhi.weather.warnings is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the smhi.weather.warnings rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for smhi.weather.warnings. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
smhi.weather.warnings is provided by the Apibase MCP server (apibase-mcp-client). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Apibase, and thousands of servers like it.
This server
Across the catalogue