Observation windows for a night
observation_windowsWhich planets and the Moon can be observed tonight from a place, and when: windows above a minimum altitude while the sky is dark, with the best time, altitude, azimuth and magnitude. E.g. {date: '2026-06-21', latitude: 48.8566, longitude: 2.3522}. For observation planning: over the night that starts on 'date' (local noon to noon), the intervals when each body stands at least min_altitude_deg above the horizon while the Sun is at or below sun_altitude_max_deg (default -6: after civil dusk), each with start, end, duration and the best moment (highest altitude) with its azimuth and visual magnitude; plus the dark interval itself. Deterministic (JPL DE440, no LLM); every result carries meta.result_sha256. Price $0.02 per call via REST POST https://astro-agent.dev/v1/astronomy/visibility (x402 or MPP); each client gets 1 free call on the $0.01-0.02 tools, this one included.
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": "observation_windows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The evening that starts the observing night, YYYY-MM-DD: the night runs from local noon on that date to local noon the next day. | |
| bodies | No | Bodies to plan. Default: the Moon and Mercury..Neptune. | |
| options | No | What counts as observable. | |
| latitude | Yes | Decimal degrees, north positive. | |
| timezone | No | IANA zone for local times, e.g. 'Europe/Paris'. Optional: resolved from the coordinates (with its historical DST rules). | |
| longitude | Yes | Decimal degrees, east positive. | |
| elevation_m | No | Height above the WGS84 ellipsoid, metres (no terrain or horizon dip is modelled). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Provenance of the result. | |
| error | No | x402 offer only: why payment is required. | |
| result | No | The calculation result. | |
| accepts | No | x402 offer only: the payment options (scheme, network, amount, asset, payTo, ...). | |
| endpoint | No | The REST route that computed it, e.g. 'astronomy/rise-set'. | |
| resource | No | x402 offer only: the resource being paid for. | |
| extensions | No | x402 offer only: protocol extensions (bazaar). | |
| x402Version | No | x402 offer only: protocol version (2). |