get_sunrise_sunset
Retrieves sunrise, sunset, solar noon, golden hour, and twilight times for any location and date, including day length and timezone-aware results.
Instructions
Get sunrise, sunset, golden hour, twilight, and solar noon for any location and date.
Args:
latitude: Decimal degrees latitude (e.g. 40.7128 for New York City).
longitude: Decimal degrees longitude (e.g. -74.0060 for New York City).
date: Date in YYYY-MM-DD format, or "today" (default) or "tomorrow".
timezone: IANA timezone name (e.g. "America/New_York", "Asia/Tokyo"). Defaults to "UTC".
Returns:
Sunrise, sunset, solar noon, golden hour start/end, civil/nautical/astronomical
twilight times, and day length.
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": "get_sunrise_sunset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | today | |
| latitude | Yes | ||
| timezone | No | UTC | |
| longitude | Yes |