Skip to main content
Glama
LittleAndi

smhi-mcp-server

get_hourly_forecast

Read-onlyIdempotent

Get hour-by-hour weather forecasts for the next 1-48 hours, including temperature, wind, precipitation, and conditions. Ideal for checking if it will rain in the coming hours.

Instructions

Get an hour-by-hour weather forecast for the next 1-48 hours (default 24): temperature, wind, precipitation, and conditions per hour. Use this to answer questions like "will it rain in the next few hours"; use get_current_weather for a single now-reading, get_daily_summary for a multi-day high/low overview, or get_forecast for the complete raw dataset. Temperature in °C, wind speed in m/s, precipitation in mm, probabilities in %. Returns an error result (isError: true) if coordinates are out of range or the SMHI API is unreachable. Coverage: Sweden, Norway, Finland, Denmark, Estonia, and parts of Latvia/Lithuania.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursNoNumber of hours to forecast (1-48, default 24)
latitudeYesLatitude of the location (-90 to 90)
longitudeYesLongitude of the location (-180 to 180)
Behavior5/5

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

Annotations already indicate read-only, idempotent, non-destructive behavior. The description adds meaningful operational context: return units, default behavior, error result on out-of-range coordinates or API unavailability, and regional coverage. No contradiction with annotations.

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

Conciseness5/5

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

Four sentences, front-loaded with the core purpose, then usage guidance, units, error behavior, and coverage. Every sentence provides distinct value and there is no fluff or redundancy.

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

Completeness5/5

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

Despite no output schema, the description clearly explains return content, units, default range, error behavior, and geographic coverage. This is sufficient for an agent to select and invoke the tool correctly and interpret results appropriately.

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?

Input schema already fully documents all three parameters with ranges and defaults (100% coverage). The description reinforces the hours default and coordinate range constraints but does not add significant new parameter-level semantics beyond what the schema provides.

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?

States a specific verb ('Get') and resource ('hour-by-hour weather forecast'), with clear scope (1-48 hours, default 24) and content (temperature, wind, precipitation, conditions). Explicitly distinguishes itself from siblings by naming get_current_weather, get_daily_summary, and get_forecast.

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

Usage Guidelines5/5

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

Gives a concrete use case ('will it rain in the next few hours') and explicitly lists when to use alternative tools (get_current_weather for a single now-reading, get_daily_summary for multi-day overview, get_forecast for complete raw dataset). Also provides coverage and error conditions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LittleAndi/smhi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server