sun-position
Sun position. Any latitude and longitude in, a deterministic NOAA solar card out: sunrise, sunset, and solar noon, the morning and evening golden hour windows, civil dawn and dusk, day length, and the polar day and night states, rendered in the caller's UTC offset for any date from 1970 to 2099. Price: $0.02 per call, paid in USDC on Base mainnet over x402; an unpaid call answers HTTP 402 with the exact machine-readable payment terms.
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-position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | The latitude, a number between -90 and 90, e.g. 39.74. | |
| lon | Yes | The longitude, a number between -180 and 180, east positive, e.g. -104.99. | |
| date | No | Optional calendar date as YYYY-MM-DD between 1970-01-01 and 2099-12-31 (default: today UTC). | |
| offset | No | Optional UTC offset in hours between -12 and 14, fractional allowed, e.g. -7 or 5.5, for the rendered clock (default 0). |