Coordinate conversion between sky frames
convert_coordinatesConvert sky coordinates between equatorial (J2000, of date), ecliptic, galactic and horizontal (alt-az) frames. E.g. {frame: 'equatorial_j2000', coordinates: {ra_hours: 6.7525, dec: -16.7161}, datetime: '2026-06-21T21:00:00Z', latitude: 48.8566, longitude: 2.3522}. For catalogues, planetarium and telescope software: give a direction in one frame and get it in all the others: equatorial J2000 (ICRS) and of date, ecliptic J2000 and of date, galactic, and horizontal (altitude, azimuth) when a datetime and a place are given. Geometric frame rotations of a direction (no aberration or refraction is added: use astronomy/altaz for where a body appears). Deterministic (JPL DE440, no LLM); every result carries meta.result_sha256. Price $0.01 per call via REST POST https://astro-agent.dev/v1/astronomy/convert (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": {
"frame": "<frame>",
"coordinates": "<coordinates>"
},
"name": "convert_coordinates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes | The frame of the input coordinates. | |
| datetime | No | Needed for the of-date and horizontal frames (UTC, offset, or local time with latitude/longitude). | |
| latitude | No | Observer latitude, for the horizontal frame. | |
| longitude | No | Observer longitude, for the horizontal frame. | |
| coordinates | Yes | The direction, with the two fields of its frame. |
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). |