Get Times
get_timesGet today's sunrise, sunset, dawn, dusk, solar noon, golden hour, and day length for a given latitude and longitude. Returns all times in the location's local timezone.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lat": 40.7128,
"lng": -74.006
},
"name": "get_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude of the location (e.g., 40.7128) | |
| lng | Yes | Longitude of the location (e.g., -74.0060) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | Latitude of the location | |
| lng | Yes | Longitude of the location | |
| date | Yes | Date string (literal 'today') | |
| dawn | Yes | Dawn time | |
| dusk | Yes | Dusk time | |
| sunset | Yes | Sunset time | |
| sunrise | Yes | Sunrise time | |
| timezone | Yes | Timezone identifier | |
| day_length | Yes | Duration of daylight | |
| last_light | Yes | Last light time | |
| solar_noon | Yes | Solar noon time | |
| utc_offset | Yes | UTC offset in hours | |
| first_light | Yes | First light time | |
| golden_hour | Yes | Golden hour time |