Skip to main content
Glama

Aleva open data

Weather per hour and station

weather_history
Read-onlyIdempotent

Weather per hour and station. Returns a list of records; pass next_cursor to get the next page. Fields: station_id (varchar): SMHI station id; station (varchar); parameter (varchar): 1 temperature, 4 wind speed, 6 humidity, 7 precipitation; unit (varchar); observed_at (timestamptz); date (date): Day (Europe/Stockholm); value (double); quality (varchar): G checked, Y suspect (latest-hour data is not quality-controlled). Attribution required when the data is shown: Contains data from SMHI (Swedish Meteorological and Hydrological Institute), CC BY 4.0

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDay (equals)
limitNoHow many rows to return
cursorNonext_cursor from the previous result, for the next page
date_gteNoDay (at least)
date_lteNoDay (at most)
parameterNoParameter (equals)
station_idYesSMHI station id (equals)
parameter_inNoParameter (any of)
station_id_inNoSMHI station id (any of)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/closed-world, so safety is covered. The description adds genuine behavioral context beyond that: pagination via next_cursor, the meaning of quality codes ('G checked, Y suspect'), the caveat that latest-hour data is not quality-controlled, and a licensing/attribution obligation ('Attribution required when the data is shown'). That is meaningful added value, though no rate limits or error behavior are mentioned.

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?

Purpose and pagination are front-loaded before the field glossary, and each clause carries useful information (field types, code mappings, attribution). It is dense and somewhat long, but no sentence is pure filler; the field list earns its place by explaining undocumented enums.

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 compensates by enumerating the returned fields and their semantics, plus pagination and the quality/attribution caveats. Combined with a 100%-covered input schema, an agent has everything needed to call and interpret this tool.

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 exceeds it by decoding the parameter values (1 temperature, 4 wind speed, 6 humidity, 7 precipitation) and the quality flags, which the schema does not document ('Parameter (equals)' is opaque). The date-range and filtering params still rely on the schema alone.

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

Purpose4/5

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

The title/description pair states a specific resource and granularity ('Weather per hour and station') and the body clarifies it returns a list of hourly weather records with named fields. The agent can identify it as a historical/observational weather query. It does not explicitly distinguish itself from the sibling weather_now, so differentiation is only implied by the name.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus weather_now or any other sibling, nor any prerequisites or exclusions. It mentions passing next_cursor for the next page, which is operational guidance, but not selection guidance. Usage must be inferred entirely.

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.

Resources