Skip to main content
Glama

Astro Agents - research-grade astronomical data API

Angular separations between bodies

angular_separations
Read-onlyIdempotent

Angular separations between planets at a moment, or between longitudes you supply: the pairs near 0, 60, 90, 120 or 180 degrees (or any angle you choose) with the deviation, approaching or receding; optionally equal and opposite declinations. E.g. {longitudes: {sun: 54.4, moon: 297.4}}. For a moment (computed from DE440) or for longitudes you supply: every pair of bodies at a chosen separation angle, with its deviation from the exact angle, the tolerance applied, and whether the bodies are approaching or receding from it. Option 'declination': pairs with equal or opposite declinations. Deterministic (JPL DE440, no LLM); every result carries meta.result_sha256. Price $0.02 per call via REST POST https://astro-agent.dev/v1/astronomy/angles (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": "angular_separations"
  }
}

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.
longitudesNoOptional {body: degrees} or {body: {longitude, speed, declination?, declination_speed?}}; when given, no ephemeris is used.
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

A3.8/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, so the baseline is low; the description nonetheless adds materially new behavior: deterministic JPL DE440 with no LLM step, every result carrying meta.result_sha256, a $0.02 per-call price, the REST endpoint URL, and x402/MPP payment with one free call. Payment/auth requirements and verifiability are exactly the traits an agent needs and cannot get from annotations or schema. No statement conflicts with the annotations.

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 opening sentence is well front-loaded with the core purpose and an example. The second sentence then restates the same two modes ('For a moment ... or for longitudes you supply'), and much of the declination mention duplicates the schema. The pricing/determinism sentence earns its place; the duplication does not.

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 10 optional parameters, nested options, an output schema and full annotation coverage, the description covers both input modes, defaults, an example, cost and determinism. Return-value detail is rightly left to the output schema, though it already sketches deviation/tolerance/approaching-receding. Remaining gaps (time-basis handling, ambiguous times, timezone resolution) are adequately handled by the schema descriptions.

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 the schema already documents date/time, options, angles, tolerances and declination. The description contributes a worked example ({longitudes: {sun: 54.4, moon: 297.4}}) and names the common default angles, plus 'the tolerance applied' and 'equal and opposite declinations'. It also says 'or any angle you choose', which overstates the schema's enumerated angle list, a minor imprecision.

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 resource and computation: angular separations between planets at a moment, or between user-supplied longitudes, returning pairs at target angles with deviation and approaching/receding state. That is specific enough that an agent can tell it apart from position-listing tools like body_positions. It stops short of naming any sibling or explicitly contrasting the moment-mode with the longitudes-mode as separate use cases.

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 establishes two operating modes ('for a moment (computed from DE440) or for longitudes you supply') and shows an input example, which implies when the tool applies. It never says when to prefer this over other tools, nor does it exclude anything. The pricing note ('1 free call on the $0.01-0.02 tools, this one included') signals cost-awareness but is not usage guidance.

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.