Local circumstances of solar and lunar eclipses
local_eclipseSolar and lunar eclipses seen from a place: local type, contact times (C1-C4, P1-P4, U1-U4), magnitude, obscuration, duration of totality and the Sun's or Moon's altitude. E.g. {start: '2026-08-01', end: '2026-08-31', latitude: 39.47, longitude: -0.38}. For eclipse chasers, planetariums, schools and travel apps: solar eclipses from the place's own viewpoint (local type: total, annular, partial or none; contacts C1, C2, maximum, C3, C4 with the Sun's altitude and azimuth; magnitude, obscuration, duration, duration of totality or annularity) and lunar eclipses (penumbral and umbral contacts P1, U1, U2, maximum, U3, U4, P4 with the Moon's altitude, umbral and penumbral magnitude, durations), each marked visible when the body is above the horizon. Matches NASA's predictions to a few seconds (2024-04-08 at Dallas, 2025-03-14 lunar eclipse). Deterministic (JPL DE440, no LLM); every result carries meta.result_sha256. Price $0.10 per call via REST POST https://astro-agent.dev/v1/astronomy/eclipse-local (x402 or MPP); always paid, never a free call.
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": {
"start": "<start>",
"end": "<end>",
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "local_eclipse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Last UTC date, YYYY-MM-DD, at most 366 days after start. | |
| kinds | No | Eclipse kinds to return. Default: both. | |
| start | Yes | First UTC date, YYYY-MM-DD (1800-01-08..2199-12-30). | |
| 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). |