Daylight hours
get_daylight_hoursCalculates the length of daylight at a place on a date, with sunrise and sunset in UTC, for the UTC day from midnight to midnight. A place is one of the website's 20 cities or a latitude with an optional longitude.
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_daylight_hours"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | UTC date as YYYY-MM-DD, from 1900 to 2100. Defaults to today in UTC. | |
| place | No | City, one of Anchorage, Auckland, Buenos Aires, Cape Town, Dubai, Johannesburg, Lima, London, Los Angeles, Mexico City, Moscow, Mumbai, Nairobi, New York, Perth, Santiago, São Paulo, Singapore, Sydney or Tokyo. Not needed when a latitude is given. | |
| latitude | No | Latitude in degrees, north positive: -90 to 90. | |
| longitude | No | Longitude in degrees, east positive: -180 to 180. Defaults to 0 when only a latitude is given; it sets the UTC sunrise and sunset times. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| view | Yes | ||
| request | Yes |