Sunrise, sunset, twilight and day length
sunrise_sunsetComputes sunrise, sunset, solar noon, day length and civil, nautical and astronomical twilight for a latitude, longitude and date, using NOAA's solar equations, with times in UTC and an optional IANA time zone. Reports polar day or night where the sun doesn't rise or set.
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": {
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "sunrise_sunset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | YYYY-MM-DD (default today, UTC). | |
| latitude | Yes | Latitude in degrees, -90 to 90 (north positive). | |
| longitude | Yes | Longitude in degrees, -180 to 180 (east positive). | |
| time_zone | No | IANA time zone for local times, e.g. 'Europe/London' (default UTC). |