forecast_sunshine
Retrieve forecast sunshine hours for a Swiss location over a selected period, from one hour to an afternoon, for today or up to eight days ahead.
Instructions
Get the sunshine hours at a place over a period.
Use this for "how sunny is it at 15:00" or "how sunny is it this afternoon". Without end
it returns the one hour starting at start.
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-23T06:00". Today or up to 8 days ahead.
end (str): Optional. 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 period, the model run and the sunshine hours.
Examples:
forecast_sunshine("Zürich", "2026-09-23T15:00") # one hour
forecast_sunshine("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>"
},
"name": "forecast_sunshine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| 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 |