Skip to main content
Glama

Weather situation across Switzerland

meteoswissWeatherSituation
Read-only

Count the weather over Switzerland at one hour: MeteoSwiss's hourly weather symbol at all ~5800 forecast points (postal code centres, weather stations, mountain points), grouped into weather categories per MeteoSwiss forecast region and altitude band. Use it for area questions: where it is sunny, how high the fog or low stratus reaches, whether it is sunny above it, where it rains or snows. For the forecast at one place, use meteoswissLocalForecast.

Regions are MeteoSwiss's seven forecast regions: jura, mittelland (Swiss Plateau), alpennordhang (northern Alps and Prealps), wallis (Valais), engadin, nordundmittelbuenden (northern and central Grisons), alpensuedseite (southern side of the Alps: Ticino and the southern valleys of Grisons). Points outside MeteoSwiss's seven regions are counted in the nearest one.

Narrow the count with region, bbox (a WGS84 box), near (air distance around a place, at most 150 km) and min_altitude_m / max_altitude_m; given together, a point must pass all of them. With until, the count covers every hour from time to until, at most 12 hours after time (up to 13 hourly steps).

Categories: sunny, clear_night, partly_sunny, cloudy, high_cloud, fog_or_stratus, rain, sleet, snow, thunder; the answer's "legend" gives the symbol codes of each. fog_or_stratus also counts an overcast or partly sunny hour under a low cloud deck (low cloud >= 80 %, medium and high cloud < 50 %): MeteoSwiss's symbol often shows such a deck as "overcast".

Reading the answer:

  • Times are local Europe/Zurich time with the UTC offset. The symbol of an hour describes the 3 hours that end at that time.

  • "points" counts forecast points, not area: they are dense in towns and the lowlands and sparse in the mountains. A band with few points says little. A few places have two points (a station and a regional forecast point at the same spot); both count.

  • Around sunrise and sunset MeteoSwiss switches the points from day to night symbols at different hours, so one clear sky can show as both sunny and clear_night: add them for "clear sky" at those hours.

  • At high altitude fog_or_stratus usually means a summit in cloud (MeteoSwiss's own fog symbol), not a fog sea: for a fog question leave the summits out with max_altitude_m.

  • Per band, "pct" holds the shares in whole percent (they add up to 100) and "dominant" the most frequent category.

  • jura, mittelland and alpennordhang also carry "fog_top_m" (experimental): the top of a fog sea to the nearest 100 m: the 100 m bands that are mostly fog_or_stratus, starting with the region's lowest band (below 1000 m) up, with mostly sun in the 300 m above ("sunny_above_fog_pct"). null means no fog sea with sun above: no fog layer low down, or cloud above it. Over a window (until) all point-hours are pooled into one estimate for the whole window. For a fog question, also read the bands yourself.

  • With map: "grid", "grid.rows" is a coarse map, north at the top: one character per 5 km cell, the most frequent category there ("grid.key"); "grid.cols" is the number of characters in every row and "grid.row_count" the number of rows. Use it to say where (west or east, which valleys) rather than how much. To show the user a map, use meteoswissWeatherMapExperimental if it is listed: the client then displays a ready-made map, so do not draw one yourself.

  • "missing" (present only when more than 0) counts the point-hours left out because the run has no weather symbol for them. They are in no share and no count: a few change nothing, many mean the answer rests on fewer points.

  • The forecast is updated hourly. Further ahead it may have symbols only every few hours; a time the run does not cover is an error that names the hours it has.

Source: MeteoSwiss Open Data; the forecast regions come from the MeteoSwiss website (Source: MeteoSwiss).

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": {
      "time": "<time>"
    },
    "name": "meteoswissWeatherSituation"
  }
}

Input Schema

NameRequiredDescriptionDefault
mapNo"grid" adds a coarse map: the most frequent category in each 5 km cell, as text rows (about 3 KB more for the whole country). Default "none".none
bboxNoOnly points inside this WGS84 box: [west, south, east, north] in degrees, e.g. [7.0, 46.5, 8.5, 47.5].
nearNoOnly points within radius_km of a place, e.g. {"lat": 47.37, "lon": 8.54, "radius_km": 40} around Zurich. Air distance, not travel time.
timeYesThe hour to count, in local Swiss time: "2026-11-14T10:00" (minutes are ignored). A time with a UTC offset, e.g. "2026-11-14T10:00:00+01:00" from meteoswissLocalForecast, is also accepted.
bandsNoAltitude band edges in metres, ascending, e.g. [600, 800, 1000] for a fog question; default [500, 1000, 1500, 2000] gives the bands <500, 500-999, 1000-1499, 1500-1999, >=2000. [] gives one band.
untilNoLast hour of a window, included, at most 12 h after time; same format as time. Every hour from time to until is counted: "points" stay points, the shares in "pct" are then shares of point-hours (each point once per hour).
regionNoOnly this MeteoSwiss forecast region: jura, mittelland (Swiss Plateau), alpennordhang (northern Alps and Prealps), wallis (Valais), engadin, nordundmittelbuenden (northern and central Grisons), alpensuedseite (southern side of the Alps, Ticino). Default: all seven.
max_altitude_mNoOnly points at or below this altitude, in m above sea level
min_altitude_mNoOnly points at or above this altitude, in m above sea level

Output Schema

NameRequiredDescriptionDefault
runYesThe forecast run the counts come from, local time with offset
gridNoPresent only with map: "grid" and at least one point: a coarse map of the categories
validYes
legendYesWhat each category in this answer means, with its MeteoSwiss symbol codes
pointsYesForecast points counted (after the filters)
sourceYesData attribution
missingNoPoint-hours left out because the run has no weather symbol for them; present only when more than 0
regionsYesMeteoSwiss forecast regions, west to east and north to south
warningsNoPresent only when something limits the answer: a cloud cover file could not be loaded (the cloud rule is then off and fog_or_stratus counts only the fog and stratus symbols), or the run has symbols for only some hours of the window.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / grid / properties / cols
      Added value: +{
      +  "description": "Cells per row: the length of every string in \"rows\"",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / grid / properties / row_count
      Added value: +{
      +  "description": "Number of rows: the length of \"rows\"",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / grid / required
      Previous value: -[
      -  "crs",
      -  "cell_m",
      -  "west",
      -  "north",
      -  "rows",
      -  "key"
      -]New value: +[
      +  "crs",
      +  "cell_m",
      +  "west",
      +  "north",
      +  "cols",
      +  "row_count",
      +  "rows",
      +  "key"
      +]
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/non-destructive; the description goes far beyond by disclosing the hourly update cadence, that uncovered times raise an error naming available hours, that 'missing' point-hours are excluded from shares, the sunrise/sunset day-night symbol switch that splits 'clear sky', and that fog_top_m is experimental and null in defined cases. These are non-obvious behaviors that change how the agent must read results.

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?

It is long, but front-loaded and cleanly sectioned (purpose, regions, filters, categories, 'Reading the answer'), and each block addresses a distinct ambiguity rather than restating the schema. A few passages, such as the repeated fog-band guidance, could be trimmed without loss.

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?

For a 9-parameter, nested-object tool with heavy domain quirks, the description leaves nothing an agent needs unstated: point-vs-area caveat, duplicated points, missing symbols, category definition of fog_or_stratus, grid map dimensions, and error behavior are all covered. Return-value interpretation is included only where the output schema's field names are not self-explanatory.

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 would be 3, but the description adds real semantic load: filter combination is conjunctive ('given together, a point must pass all of them'), region names are expanded with geographic glosses, and 'until' is explained as pooling point-hours so 'pct' becomes a share of point-hours rather than points. It leaves a few details to the schema (band edge semantics, bbox ordering), which is appropriate.

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: 'Count the weather over Switzerland at one hour', and immediately quantifies scope (~5800 forecast points grouped into categories per region and altitude band). It explicitly distinguishes itself from the sibling at the other end of the spectrum: 'For the forecast at one place, use meteoswissLocalForecast.'

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?

States the selection condition plainly: 'Use it for area questions: where it is sunny, how high the fog or low stratus reaches...' and routes point forecasts to meteoswissLocalForecast and map rendering to meteoswissWeatherMapExperimental. It also tells the agent when it must not rely on the count alone ('For a fog question, also read the bands yourself').

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.