Get sunrise and sunset
get_sunrise_sunsetSunrise and sunset on one day (date, or today) at one place: sunrise_utc and sunset_utc, sunrise_local and sunset_local on the clock of localZone (the place's time zone), and the place used (locationUsed). place is a city name, with the region or country when needed ("Lisbon Portugal"), by default where the user is (their Default location in AstroProcessor, else their time zone's main city): with no place known it answers place_needed, and a name that matches several cities returns the candidates (place_ambiguous), which find_city looks up. Used for sunrise, sunset or day length, a birth day at the birth place included; the Moon's phase and sign are get_moon_data's. Each call counts toward one metered message (unlimited on a paid plan; on the Free plan a daily free message, then credits, as get_balance shows) and toward the account's per-minute and per-hour call limits; a call refused for either returns an error result, runs nothing and charges nothing.
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": "get_sunrise_sunset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The day (YYYY-MM-DD is enough). ISO 8601: YYYY-MM-DD for a day, YYYY-MM-DDTHH:MM for a time on the local clock (24-hour), or a time with an offset or Z (2026-11-15T14:00+01:00, 2026-11-15T13:00Z) for an exact instant. A time without an offset is on the clock of `place` when one is given, else the user's own time zone. Words (now, today, next month) are not accepted. Omitted: TODAY. | |
| place | No | The city to compute for (the birth city, for a birth day). Omitted: where the user is (their Default location in AstroProcessor, else their time zone's main city). A city name as the user said it, with the region or country when they gave one ("Lisbon Portugal", "Valencia Spain", "Springfield Illinois"); a city name, not coordinates. A name that matches several cities is refused with the candidates (place_ambiguous). |