Calculate sun or moon events, as seen from a specific location on Earth
get_sun_moon_eventsGet time and direction of sun or moon rise, set, highest, and lowest points for a date and location as GeoJSON to support outdoor planning.
Instructions
Returns a GeoJSON document indicating time and direction to when the sun (or moon) is on its highest point on a given date (defaults to today) as seen from a specified point on Earth, as well as the preceding sun/moonrise and following sun/moonset (which may not be on the same date). The lowest point in the cycle is also returned. Note that any or all of these may be null.
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": {
"longitude": "<longitude>",
"latitude": "<latitude>",
"date": "<date>"
},
"name": "get_sun_moon_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| offset | No | ||
| latitude | Yes | ||
| longitude | Yes | ||
| usage_method | No | sun |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |