get_sun_times
Calculate sunrise, sunset, and other solar times for any location using latitude and longitude, with automatic timezone detection and optional date.
Instructions
Calculate local and UTC solar events using an IANA timezone.
When tz is omitted, the timezone is resolved locally from the point.
date is an ISO date and defaults to today in that timezone.
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>"
},
"name": "get_sun_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | ||
| lat | Yes | ||
| lon | Yes | ||
| date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||