Skip to main content
Glama
meteo-swiss-mcp

meteo-swiss-mcp

by cuolm

measurements_history

Read-only

Retrieve historical weather and snow measurements for a Swiss place over past days or date ranges to check how warm, wet, or snowy conditions were.

Instructions

        Get the weather and the snow measured near a place on past days, for one day or several days in a row.

        Use this for "how warm was it yesterday", "how much did it rain last week" or "how much snow was
        there on this day last year". The weather comes from a MeteoSwiss station and the snow from a
        MeteoSwiss or SLF station, each named in the data_from of its block; without data_from, the station
        is next to the place. Each weather day covers a UTC day, 00:00 to 24:00 UTC, which is 01:00 to 01:00
        Swiss time in winter and 02:00 to 02:00 in summer. When a station did not yet measure the rain per
        UTC day, a day has rain_06_to_06_utc_mm instead of rain_mm: the rain from 06:00 UTC on the day to
        06:00 UTC the next day. The snow depth is measured at 06:00 UTC on the day, and the new snow covers
        the 24 hours from then. A day's values are published the next morning. The days go back to
        when the station started, at some stations to the 1860s. For the warmest day of a year, ask for
        all its days. For the same day in several years, call once per year. For each data_from, always
        say which station the values come from, how far away it is and how much higher or lower.

        Args:
            location (str): Name of a place in Switzerland, e.g. "Zürich".
            start_date (str): The first day, e.g. "2026-09-23". Yesterday or earlier; days from today
                on are left out.
            days (int): How many days in a row, from 1 to 366, so up to a whole year. Default 1.
            values (str): Optional. "weather" or "snow" for only one of them; without it, both.

        Returns:
            dict: the place; weather: data_from when its station is not next to the place, and per day:
                date, weekday, mean, lowest and highest temperature, rain, sunshine hours and strongest
                gust; snow: data_from in the same way, and per day: date, snow depth and new snow. A value
                is None when the station did not measure it. snow is null when no snow station close
                enough in distance and height measured on the days.

        Examples:
            measurements_history("Zürich", "2026-09-22")
            measurements_history("Zürich", "2026-09-14", 7)     # a week
            measurements_history("Zürich", "2025-01-01", 365)   # a whole year
            measurements_history("Zürich", "1990-02-27")
            measurements_history("Davos Dorf", "2025-01-01", 7, "snow")   # only the snow
        

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "location": "<location>",
      "start_date": "<start_date>"
    },
    "name": "measurements_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
nearNoOnly when several places share the name: a village next to the place the user means. For "the Blausee near Bettmeralp" use location "Blausee" and near "Bettmeralp". Leave it out otherwise.
valuesNo
locationYes
start_dateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnly and open-world; the description goes far beyond by explaining the UTC day window and its Swiss-time equivalent, the rain_06_to_06_utc_mm substitution when a station lacks per-UTC-day rain, the 06:00 UTC snow measurement convention, next-morning publication lag, station-distance attribution via data_from, None for unmeasured values, and null snow when no station is close enough in distance and height.

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?

Front-loaded with purpose and use-case quotes, then conventions, then Args/Returns/Examples — a sensible order with no filler. It is long, and the winter/summer Swiss-time conversion plus the "warmest day of a year" hint add bulk relative to their operational value, but nearly every sentence carries decision-relevant information.

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?

There is no output schema, yet the Returns block enumerates the response shape (place, weather.data_from, per-day date/weekday/mean/lowest/highest/rain/sunshine/gust, snow depth and new snow, null semantics). Combined with the day-boundary and station-attribution rules, an agent has enough to call this correctly and interpret the result without further discovery.

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?

With only 20% schema coverage the description carries most of the burden and does: it defines location, start_date with an example format and the "yesterday or earlier" constraint, days as 1-366 with default 1, and values as "weather" or "snow" defaulting to both. It omits the fifth parameter, near (disambiguation for duplicate place names), which is only documented in the schema itself.

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?

Opens with a specific verb and resource ("Get the weather and the snow measured near a place on past days") and scopes it to historical data, which separates it from the forecast_* and measurements_current siblings. The three quoted example questions make the retrieval intent concrete.

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

Usage Guidelines4/5

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

Gives explicit trigger phrasings ("how warm was it yesterday", "how much snow was there on this day last year") plus rules like "For the same day in several years, call once per year" and the exclusion that days from today onward are dropped. It does not explicitly name a sibling to use instead for today/forecast, so the routing is implied rather than stated.

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