astronomy_sun
Get sunrise, sunset, and civil twilight start/end times for a Swiss location and date to know when it is light outdoors.
Instructions
Get when the Sun rises and sets at a place on a day, and when civil twilight begins and ends.
Use this for "when does the sun rise tomorrow" or "until when is it light tonight". Civil
twilight is the light before sunrise and after sunset; outside it, artificial light is
normally needed outdoors. The times are for a level horizon, so in a valley the Sun
appears later behind the mountains.
Args:
location (str): Name of a place in Switzerland, e.g. "Zürich".
date (str): The day, e.g. "2026-09-23".
Returns:
dict: The place, the date, the begin of civil twilight, sunrise, sunset and the end of
civil twilight.
Examples:
astronomy_sun("Zürich", "2026-09-23")
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>",
"date": "<date>"
},
"name": "astronomy_sun"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | 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. | |
| location | Yes |