Skip to main content
Glama

Astro Agents - research-grade astronomical data API

Sky similarity search (matching skies)

similar_skies
Read-onlyIdempotent

Sky similarity search: find the past or future dates whose planetary positions best match a reference sky, ranked by a stated angular distance in degrees. E.g. {reference: '2026-10-29T00:00Z', direction: 'past', bodies: ['jupiter', 'saturn']}. Searches a date grid (1 hour to 1 week steps, 1800-2200) for the skies closest to a reference: by longitude, by the separations between bodies, by declination, optionally with the same retrograde flags. The score is a weighted mean angular distance in degrees, defined in result.settings.metric. Data for your own analysis — never a signal or forecast. Deterministic (JPL DE440, no LLM); every result carries meta.result_sha256. Price $0.25 per call via REST POST https://astro-agent.dev/v1/astronomy/sky-analogues (x402 or MPP); always paid, never a free call.

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": "similar_skies"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeNoCandidate dates. Default (a reference with a time): the longest window the caps allow, up to 100 years in the chosen direction (50 on each side for 'both').
top_nNoHow many matches.
bodiesNoBodies to match. Default: Sun..Pluto (geo), Mercury..Pluto with Earth (helio).
formatNo'columns' (pandas.DataFrame(result['matches'])) or 'rows' (one object per match).columns
weightsNoOptional {feature id: weight}, default 1 each, e.g. {'geo.jupiter': 2}. Feature ids: '<geo|helio>.<body>' (longitude, 0-360), '<geo|helio>.<a>-<b>:angle' (separation, 0-180), '<geo|helio>.<body>:declination' (degrees) and 'geo.<body>:retrograde' (true/false).
featuresNoWhat to compare: 'longitude' (default), 'separations' (the angle between every pair of bodies), 'declination', 'retrograde' (a filter on equal retrograde flags).
directionNoSearch before the reference (with a local date-time and place: before that moment), after it, or both (default; the only choice with reference.values without 'datetime').both
referenceNoThe sky to match: 'now' (default; the current UTC hour or day, echoed in result.reference.date_utc), a UTC moment ('2026-10-29T00:00Z' or 'YYYY-MM-DD'), {datetime: ...}, your own values {values: {feature id: value}} (add 'datetime' to anchor direction and range at a time), or a local date-time and place {place: {datetime: local '1990-05-15T14:30', latitude, longitude, timezone?}}: the time zone comes from the coordinates or 'timezone'; a date alone means 12:00 local with a TIME_UNKNOWN warning. meta.reference_resolution gives the equivalent {values, datetime} request. Feature ids: '<geo|helio>.<body>' (longitude, 0-360), '<geo|helio>.<a>-<b>:angle' (separation, 0-180), '<geo|helio>.<body>:declination' (degrees) and 'geo.<body>:retrograde'.
resolutionNoStep of the candidate grid. At most 36,600 candidate dates per call, and at most 660,000 dates x ephemeris series (one per body and perspective, plus one per retrograde-flagged body).1d
perspectiveNoPositions seen from the Earth, from the Sun, or both.geocentric
max_distanceNoOptional: only matches whose score (degrees) is at most this.
min_separation_daysNoMinimum gap between two matches and between a match and the reference time, so one passage gives one match. Raise it (e.g. 3650) to skip the current cycle of slow planets.
require_same_retrogradeNoKeep only dates whose retrograde flags equal the reference's.

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
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description still adds real value beyond that: determinism (JPL DE440, no LLM), a verifiable meta.result_sha256 on every result, the searchable era (1800-2200), and mandatory billing at $0.25 per call via REST with x402 or MPP. However, it leaves out whether failures are charged and how long a call runs — notable for a paid, compute-heavy search.

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 purpose and example, then moves to scoring, caveats, determinism, and price in a logical order. The clause enumerating 'by longitude, by the separations between bodies, by declination, optionally with the same retrograde flags' largely restates the features enum and could be trimmed, but no sentence is filler.

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?

With an output schema, full parameter descriptions, and rich annotations, the remaining burden on the description is cost, determinism, verification, and intent — all of which are covered explicitly. An agent has everything needed to decide whether to spend $0.25 and how to interpret and verify the result.

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

Parameters3/5

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

Schema coverage is 100%, so every one of the 13 parameters is already documented in structured form, which sets the baseline at 3. The description adds the score definition and points to result.settings.metric, but that is return-value semantics rather than parameter meaning; it does not, for example, explain how weights interact with features beyond what the schema already states.

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 — find past/future dates whose planetary positions best match a reference sky — and pins down the ranking criterion (angular distance in degrees). The 'reference sky' framing plus the concrete example makes it unmistakable against siblings like sky_now or angular_separations, which compute one sky or one separation rather than searching a date grid.

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

Usage Guidelines4/5

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

Gives a worked example invocation and a clear framing constraint ('Data for your own analysis — never a signal or forecast'), plus the practical note that raising min_separation_days skips the current cycle of slow planets. It does not explicitly name a sibling it replaces or state when-not to use it, so routing still depends on the agent's own comparison.

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.