Sunrise and sunset
get_sunrise_sunsetSunrise, sunset, solar noon, day length and twilight times for coordinates on a date, in the given time zone. Reports polar day or polar night explicitly instead of inventing times. Use search_city to get coordinates and the zone of a city.
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": {
"lat": "<lat>",
"lon": "<lon>",
"date": "<date>",
"tz": "<tz>"
},
"name": "get_sunrise_sunset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | Yes | IANA time zone of the place, e.g. Africa/Cairo | |
| lat | Yes | Latitude in decimal degrees, north positive (−90 to 90) | |
| lon | Yes | Longitude in decimal degrees, east positive (−180 to 180) | |
| date | Yes | Local date at the place, YYYY-MM-DD (1900–2100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | ||
| lon | Yes | ||
| date | Yes | Calendar date, YYYY-MM-DD | |
| notes | Yes | Caveats and conventions that apply to this response. | |
| polar | Yes | ||
| source | Yes | Where the data or the algorithm comes from. | |
| sunset | Yes | ||
| sunrise | Yes | ||
| timeZone | Yes | IANA time zone name | |
| twilight | Yes | ||
| dayLength | Yes | HH:MM:SS | |
| polarNote | Yes | ||
| solarNoon | Yes | ||
| sourceUrl | Yes | ||
| dayLengthSeconds | Yes |