Sun Times
sun_timesSunrise, sunset, solar noon, day length, civil / nautical / astronomical twilight, golden hour and blue hour for any place and date (NOAA solar calculator equations, about a minute of accuracy), with polar day / night handling, observer elevation correction and local times in any IANA zone. Optionally the sun's azimuth and elevation (refraction-corrected) at a given moment. Offline. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/sun-times
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": {
"lat": "<lat>",
"lon": "<lon>"
},
"name": "sun_times"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ISO 8601 moment for sun position (azimuth / elevation), or "now" | |
| tz | No | IANA time zone for the output | UTC |
| lat | Yes | ||
| lon | Yes | ||
| date | No | Local date YYYY-MM-DD (default today in tz) | |
| elevation | No | Observer height above the horizon in metres (earlier sunrise / later sunset) |