Sun and moon
get_astronomyRetrieve sunrise, sunset, solar noon, twilight, golden hour, day length, and moon phase/illumination plus moonrise/moonset for a location and date, including polar conditions.
Instructions
Get comprehensive sun and moon data: sunrise/sunset, precise solar noon with altitude, civil/nautical/astronomical twilight, golden hour, day length, moon phase/illumination, moonrise/moonset. Computed locally — no API key needed. Handles Nordic polar conditions (midnight sun, polar night, white nights).
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": {
"location": "<location>"
},
"name": "get_astronomy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in YYYY-MM-DD format (default: today) | |
| location | Yes | City name, coordinates (lat,lon), or Finnish city alias | |
| timezone | No | IANA timezone (default: Europe/Helsinki) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sun | Yes | ||
| date | Yes | ||
| moon | Yes | ||
| location | Yes | Resolved location | |
| timezone | Yes |