Sun & Moon Rise/Set Times
usno.astronomy.sun_moonGet sunrise, sunset, moonrise, moonset, and transit times for any location and date. Includes civil/nautical/astronomical twilight. Used for photography golden hour, agriculture planning, outdoor events. Source: USNO.
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": {
"date": "<date>",
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "usno.astronomy.sun_moon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date in YYYY-MM-DD format (e.g. 2026-04-07) | |
| latitude | Yes | Latitude in decimal degrees (e.g. 40.7128 for New York) | |
| longitude | Yes | Longitude in decimal degrees (e.g. -74.0060 for New York) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |