Sunrise, sunset + moon
sun_moonSunrise, sunset, golden hour, twilight, day length and solar noon for any place and date — plus moon phase, illumination, moonrise and moonset. Astronomical calculation (SunCalc), exact and instant. Pass tz for local times. Price: free. Errors: returns isError with a message for invalid input or an upstream failure (not charged).
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": {
"place": "<place>"
},
"name": "sun_moon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | IANA zone for local times | |
| date | No | default today (UTC) | |
| place | Yes | Place name or "lat,lon". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | ||
| lon | No | ||
| sun | No | ||
| date | No | ||
| moon | No | ||
| place | No | ||
| times_in | No |