calculate_sunrise_sunset
Retrieve sunrise, sunset, and twilight times for any location and date. Supply latitude, longitude, and timezone to obtain exact astronomical times.
Instructions
Calculate sunrise, sunset, and twilight times for a specific location and date
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": {
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "calculate_sunrise_sunset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date for calculation (ISO string or natural language). Defaults to current date. | |
| latitude | Yes | Latitude of the location (-90 to 90) | |
| timezone | No | IANA timezone name (e.g., 'Europe/Paris'). Defaults to UTC. | |
| longitude | Yes | Longitude of the location (-180 to 180) |