forecast_rain
Check when and how much rain may fall at a Swiss location in 3-hour blocks, including chance of rain, median amount, wettest-hour potential, and weather in words.
Instructions
Get when and how much it may rain at a place, and the weather in words, in 3-hour blocks
over a period.
Use this for "will it rain at 15:00" or "how is the weather this afternoon". Each block
covers the 3 hours between its from and to times
and gives the chance of rain, the median rainfall, how much the wettest hour may bring
(its 90th percentile) and the weather in words. The median is often 0 when showers are
possible, so read the chance and the "up to" amount as well. A period up to the end of
the forecast ends with its last full 3-hour block. Medians do not add up, so for the
total rain of a whole day use forecast_daily.
Args:
location (str): Name of a place in Switzerland, e.g. "Zürich".
start (str): Start of the period, a full hour, e.g. "2026-09-23T12:00". Today or up to 8 days ahead.
end (str): End of the period, a full hour after start, e.g. "2026-09-23T18:00".
Returns:
dict: data_from when the forecast point is far away or at a significantly different
height, the place, the model run and per 3-hour block: from, to, chance of rain,
median rainfall, wettest hour up to, weather in words and emoji.
Examples:
forecast_rain("Zürich", "2026-09-23T15:00", "2026-09-23T18:00") # 15:00
forecast_rain("Zürich", "2026-09-23T12:00", "2026-09-23T18:00") # the afternoon
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": "<start>",
"end": "<end>"
},
"name": "forecast_rain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| near | No | Only 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. | |
| start | Yes | ||
| location | Yes |