Skip to main content
Glama
LittleAndi

smhi-mcp-server

get_weather_analysis

Read-onlyIdempotent

Retrieve the past 24 hours of gridded analysis for a location, giving actual (not forecast) weather conditions. Use for nowcasting, verifying past forecasts, or checking historical weather.

Instructions

Get the past ~24 hours of gridded meteorological analysis for a location, from SMHI's Mesan2gv3 API — a "best current estimate" of conditions (observations blended with a short-range model on a ~2.5 km grid), not a forecast. Use this for nowcasting ("what's actually happening right now" at a point without a nearby observation station), verifying how a past forecast turned out, or "what was the weather really like" lookups; use the forecast tools instead for future conditions. Returns hourly entries (most recent first) with temperature (°C, plus min/max at some hours), dew point, wet-bulb temperature, wind (m/s), pressure (hPa, sea-level and station), visibility (km), cloud cover layers and base/top altitude (%, m), precipitation over the last 1/3/12/24h (mm, later windows only populated at some hours), snow depth change (cm), and a human-readable weather description. 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 most recent hours to return (1-24, 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?

Beyond the readOnlyHint, the description reveals response ordering (hourly, most recent first), specific fields with units, error behavior when coordinates are out of range or API is unreachable, and regional coverage. It also notes data availability nuances such as 'later windows only populated at some hours'.

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?

Despite being lengthy, each sentence serves a distinct purpose: definition, use cases, return data, error handling, and coverage. The description is well-structured and front-loaded with the core action, containing no redundant or wasted text.

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?

With no output schema, the description thoroughly enumerates all returned data fields and units, explains the data source and nature, provides usage context, and describes failure modes. It gives a complete picture of the tool's behavior without requiring external documentation.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds value by clarifying that coordinates must be within the indicated geographical coverage and that out-of-range values trigger an error. It also connects the 'past ~24 hours' phrasing to the hours parameter, supplementing the schema's descriptions.

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 clearly states the tool retrieves past ~24 hours of gridded meteorological analysis from SMHI's Mesan2gv3 API, explicitly noting it is 'not a forecast'. It differentiates from sibling tools by recommending forecast tools for future conditions, making the purpose unambiguous.

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?

The description explicitly lists when to use this tool: for nowcasting, verifying past forecasts, and historical lookups. It also states to use forecast tools instead for future conditions, providing clear alternatives and excluding misuse.

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