Skip to main content
Glama

Astro Agents - research-grade astronomical data API

Planetary phenomena: oppositions, conjunctions, elongations

planetary_phenomena
Read-onlyIdempotent

Planetary phenomena between two dates: oppositions, conjunctions with the Sun, greatest elongations of Mercury and Venus, conjunctions between planets, perihelion and aphelion. E.g. {start: '2026-01-01', end: '2026-12-31', include: ['opposition']}. For almanacs, observing guides and astronomy newsletters: between two dates (up to 366 days, 1800-2199), each planet's conjunctions with the Sun, oppositions (with the Earth distance), greatest elongations east or west (with the angle), conjunctions between planets (with their angular separation and distance from the Sun), and perihelion and aphelion (heliocentric distance), each with a stable key. Matches the published 2026 dates. 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/phenomena (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>"
    },
    "name": "planetary_phenomena"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesLast UTC date, YYYY-MM-DD, at most 366 days after start.
startYesFirst UTC date, YYYY-MM-DD (1800-01-08..2199-12-30).
bodiesNoPlanets to follow. Default: Mercury..Neptune.
includeNoPhenomena to return. Default: all.

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

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description genuinely adds to that: deterministic computation on JPL DE440 with no LLM, meta.result_sha256 provenance, and a stated $0.10-per-call paid REST endpoint with no free tier. Those pricing and determinism details are exactly the kind of context annotations cannot express, which outweighs the modest remaining gap.

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?

The date window and phenomenon list are front-loaded, which is right. However, the second half restates the first: 'between two dates', the conjunction/opposition/elongation list, and the perihelion/aphelion items all appear twice with embellishment, so the paragraph could lose a third of its length without losing information.

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

Completeness4/5

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

With an output schema present the description need not document return values, and it does not try to. It does cover the things structure cannot: determinism source, hash provenance, pricing model, and the strict date-range limits. What remains thin is the choice between this tool and the other event-style siblings.

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 coverage is 100% and every parameter carries its own description, so the baseline is 3. The description earns above baseline by giving a worked call shape ('{start: "2026-01-01", end: "2026-12-31", include: ["opposition"]}') that demonstrates how the include filter narrows output, and by spelling out the extra payload attached to each phenomenon type (Earth distance, elongation angle, angular separation, heliocentric distance).

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 opens with a concrete verb-and-resource statement — 'Planetary phenomena between two dates' — and enumerates exactly which phenomena are computed (oppositions, solar conjunctions, greatest elongations, planet-planet conjunctions, perihelion/aphelion). An agent knows precisely what this returns. It never names a sibling such as celestial_events, so the boundary with neighbouring event tools is left to the schema.

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?

It offers a use-case frame ('For almanacs, observing guides and astronomy newsletters') and the hard constraints (date window up to 366 days, 1800-2199), which implies when it fits. But there is no statement of when to prefer a sibling like celestial_events or moon_details, and no exclusions, so selection guidance is only implied.

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.