Sunrise and sunset
astronomi_sunCompute sunrise, sunset, solar noon, and day length for a given latitude, longitude, and date (NOAA/USNO formulas). Handles polar night / midnight sun.
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": "astronomi_sun"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | ISO timezone offset e.g. +07:00. Defaults to +00:00. | |
| lat | Yes | Decimal latitude (-90..90), e.g. -6.2 for Jakarta | |
| lon | Yes | Decimal longitude (-180..180), e.g. 106.8 for Jakarta | |
| tanggal | No | Date YYYY-MM-DD. Defaults to today. |