Skip to main content
Glama

Astro Agents - research-grade astronomical data API

Planetary positions for any date (ephemeris)

body_positions
Read-onlyIdempotent

Planetary positions and ephemeris API (NASA/JPL DE440): the ecliptic longitude, latitude, speed, retrograde flag and distance of the Sun, Moon, planets and lunar nodes at any moment 1800-2200, geocentric or heliocentric, ecliptic or equatorial (right ascension, declination). E.g. {datetime: '2026-10-01T12:00:00Z'}. Geocentric apparent positions from NASA/JPL DE440 (true ecliptic and equinox of date, IAU 2006/2000A), with the Moon's ascending and descending nodes and its mean apogee. Location is optional (only used to interpret a local time). Options: 'heliocentric' perspective (seen from the Sun) and 'equatorial' coordinates (right ascension, declination, and whether |declination| exceeds the obliquity). 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/positions (x402 or MPP); each client gets 1 free call on the $0.01-0.02 tools, this one included.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "body_positions"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoYYYY-MM-DD (use with 'time' instead of 'datetime').
timeNoHH:MM or HH:MM:SS, 24 h. Omit if unknown (computed at 12:00 with a TIME_UNKNOWN warning).
optionsNoOptional.
datetimeNoLocal civil date-time, ISO 8601: '1990-05-15T14:30' (local clock time at the place) or with an explicit offset '1990-05-15T14:30:00+02:00'. Alternative: 'date' + 'time'.
latitudeNoDecimal degrees, north positive.
timezoneNoIANA zone, e.g. 'Asia/Kolkata'. Optional: resolved from the coordinates, with the historical offset (DST, Local Mean Time) of that date.
longitudeNoDecimal degrees, east positive.
time_basisNoWhat the given clock time is: civil wall-clock (default), UTC, Local Mean Time, or true (apparent) solar time.civil
ambiguous_timeNoWhich occurrence to use when a local time happens twice (DST fall-back).earlier

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. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, and the description goes well beyond that: it names the underlying ephemeris (JPL DE440, IAU 2006/2000A), states results are deterministic with no LLM involvement, and notes every response carries meta.result_sha256 so output can be verified. It also discloses commercial and auth behavior an agent must know before calling – $0.01 per call via REST POST, x402 or MPP payment, one free call per client – plus the fallback that omitting time yields a 12:00 computation with a TIME_UNKNOWN warning. This is exactly the extra context annotations cannot carry.

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

Conciseness3/5

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

It is front-loaded well – data source and returned quantities come first – but the single dense paragraph repeats itself, citing NASA/JPL DE440 twice and restating the ecliptic/equatorial and heliocentric option semantics that the schema already covers verbatim. Pricing and payment detail sit in the same unbroken block as the coordinate-frame physics, which makes it harder to scan than it needs to be.

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?

For a 9-parameter tool with a nested options object, enums, defaults and an output schema, this is essentially complete: temporal coverage, coordinate frames, default body set, determinism guarantee, hash verification, cost, auth method and the free-call allowance are all stated. Because an output schema exists, the description is right not to enumerate return fields, and it still gives enough on defaults and warnings for a correct first call.

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 and the description must add meaning to earn more. It does: 'Location is optional (only used to interpret a local time)' clarifies why latitude/longitude exist even though positions are not topocentric, and the option glosses explain that heliocentric is geometric seen from the Sun with the Earth substituted for the Sun and no lunar points. The equatorial clause on |declination| versus obliquity adds a return-value hint not spelled out in the schema.

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

Purpose4/5

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

The description states a concrete verb-and-resource pair: it returns ecliptic longitude, latitude, speed, retrograde flag and distance for the Sun, Moon, planets and lunar nodes at any moment 1800-2200. It also pins down the frames (geocentric/heliocentric, ecliptic/equatorial), which tells an agent exactly what data comes back. What it never does is name a sibling it is not – an agent cannot tell from this text alone whether moon_details or longitude_series would be the better choice for a narrower question.

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

Usage Guidelines3/5

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

Usage is only implied: the worked example {datetime: '2026-10-01T12:00:00Z'} and the note that location is optional convey the typical call shape. There is no explicit when-to-use or when-not-to-use statement, and no named alternative for related questions like rise/set times or angular separations, which the sibling list suggests may overlap. The date-range bound (1800-2200) is the only hard constraint an agent can act on.

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.