Sunrise, sunset and day length for any place
sun_timesSunrise, sunset, solar noon and day length (local time) for any city or coordinates worldwide, for a date or up to 7 days; says when there is midnight sun or polar night. Use when: "what time is sunrise in Oslo tomorrow?", "when is sunset in Bali", planning photos, prayers or outdoor activities. Example: {"location":"Oslo","date":"2026-12-21"}
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": "sun_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Optional latitude instead of location | |
| lon | No | Optional longitude (with lat) | |
| date | No | First date YYYY-MM-DD (default: today at that place) | |
| days | No | Number of days | |
| lang | No | Language of the place name, default en | en |
| location | Yes | City, address or landmark in any language, or "lat,lon" |