Historical weather measurements
get_weather_historyRetrieve historical weather measurements from an official SwissMetNet station over a specified date range to analyze past conditions and trends.
Instructions
Historical measurements from an official SwissMetNet station over a date range (recent weeks), delivered via the api.existenz.ch proxy. Station codes are 3-letter MeteoSwiss codes, e.g. 'SMA' Zürich-Fluntern, 'BER' Bern, 'GVE' Geneva; see get_current_measurements station IDs. Long ranges are downsampled: precipitation and sunshine are summed per bucket (totals preserved), other parameters averaged with min/max.
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": {
"station_code": "<station_code>",
"date_from": "<date_from>"
},
"name": "get_weather_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | No | End date (default: today) | |
| date_from | Yes | Start date YYYY-MM-DD | |
| parameter | No | temperature | |
| station_code | Yes | SwissMetNet station code, e.g. 'SMA' |