Skip to main content
Glama

Astro Agents - research-grade astronomical data API

Coordinate conversion between sky frames

convert_coordinates
Read-onlyIdempotent

Convert 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

NameRequiredDescriptionDefault
frameYesThe frame of the input coordinates.
datetimeNoNeeded for the of-date and horizontal frames (UTC, offset, or local time with latitude/longitude).
latitudeNoObserver latitude, for the horizontal frame.
longitudeNoObserver longitude, for the horizontal frame.
coordinatesYesThe direction, with the two fields of its frame.

Output Schema

NameRequiredDescriptionDefault
metaNoProvenance of the result.
errorNox402 offer only: why payment is required.
resultNoThe calculation result.
acceptsNox402 offer only: the payment options (scheme, network, amount, asset, payTo, ...).
endpointNoThe REST route that computed it, e.g. 'astronomy/rise-set'.
resourceNox402 offer only: the resource being paid for.
extensionsNox402 offer only: protocol extensions (bazaar).
x402VersionNox402 offer only: protocol version (2).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / endpoint / description
      Previous value: -"The REST route that computed it, e.g. 'western/natal'."New value: +"The REST route that computed it, e.g. 'astronomy/rise-set'."
  2. Added

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive/non-open-world, so the bar is lower, yet the description still adds real behavior: geometric (not apparent) rotations, determinism via JPL DE440 with no LLM, a per-result meta.result_sha256 for verification, and cost/transport details ($0.01, one free call, REST endpoint with x402/MPP). The only gap is that it doesn't explicitly state the failure mode when datetime/lat/lon are omitted for horizontal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the purpose, then the example, then scope limits, then cost/mechanism — a sensible order with no filler sentences. It is dense, and the pricing/x402/MPP sentence is close to the edge of what belongs in a tool description, but each block is informative rather than repetitive.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values needn't be spelled out, and the description still flags the one return-field an agent cares about (meta.result_sha256, with a verify_result_hash sibling available). Combined with determinism, cost, and frame-scope disclosure, an agent has everything needed to select and invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description earns a step above by showing a worked example that demonstrates how the frame enum value pairs with the correct coordinate fields (ra_hours/dec) and how datetime plus latitude/longitude are supplied. It does not, however, enumerate the coordinate field pairs per frame beyond the equatorial case, leaving ecliptic/galactic/horizontal field selection to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Convert sky coordinates") and enumerates exactly which frames are supported (equatorial J2000/of date, ecliptic J2000/of date, galactic, horizontal alt-az), which immediately separates it from siblings like sky_now or body_positions. A concrete input example pins down the semantics further.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit context ("For catalogues, planetarium and telescope software") and an explicit exclusion with a routing alternative: "no aberration or refraction is added: use astronomy/altaz for where a body appears". It also states the precondition for the horizontal frame (a datetime and a place), so an agent can decide fit without opening the schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.