Earth clock
earth_clockThe same facts as earth_tonight, shaped for automation: ISO 8601 times with the place's UTC offset, plus booleans for right now (is_sun_up, is_dark_now = sun more than 6 degrees below the horizon, is_fully_dark_now = more than 18 degrees, is_moon_up) and the next sunset and sunrise. For scripting lights and evening routines.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "earth_clock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | A major city from the built-in list, e.g. "Melbourne" or "Portland, United States". Use latitude and longitude for anywhere else. | |
| date | No | The night to describe, YYYY-MM-DD in the place's time zone (default: today there). Sunset is on this date, sunrise the next morning. | |
| latitude | No | Latitude in decimal degrees, north positive (-90 to 90) | |
| timezone | No | IANA time zone, e.g. "Australia/Melbourne". Optional: a city brings its own; for coordinates the nearest listed city within 300 km is used, otherwise UTC. | |
| longitude | No | Longitude in decimal degrees, east positive (-180 to 180) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| now | Yes | ||
| sun | Yes | ||
| date | Yes | ||
| moon | Yes | ||
| place | Yes | ||
| accuracy | Yes | ||
| geomagnetic | Yes | Current planetary Kp from NOAA SWPC (a reading for now, not for the requested date) |