Skip to main content
Glama

Astro Agents - research-grade astronomical data API

Planetary longitude series (geocentric + heliocentric)

longitude_series
Read-onlyIdempotent

Planetary longitude time series: planet degrees seen from the Earth and from the Sun (geocentric and heliocentric) at a moment or every hour to every week, as pandas-ready columns, with speeds, retrograde flags and declinations. E.g. {start: '2024-01-01', end: '2024-12-31', interval: '1w', bodies: ['jupiter', 'saturn']}. Planetary longitudes as data: at a moment, or as a series of up to 1000 samples (columns ready for pandas). Geocentric apparent and heliocentric geometric, each with its speed and retrograde flag; optional offsets (longitude + angle), circular or arithmetic multi-body averages, unwrapped degrees for plotting, and declinations. Deterministic (JPL DE440, no LLM); every result carries meta.result_sha256. Price $0.20 per call via REST POST https://astro-agent.dev/v1/astronomy/longitude-series (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": "longitude_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoSeries: last UTC date, YYYY-MM-DD (at most 1000 samples).
startNoSeries: first UTC date, YYYY-MM-DD. Example: '2024-01-01'.
bodiesNoBodies. Default: Sun..Pluto (geocentric), Mercury..Pluto with the Earth (heliocentric).
formatNoSeries layout: 'columns' (pandas.DataFrame(result['series'])) or 'rows' (one object per sample).columns
unwrapNoSeries: continuous degrees (no 360 -> 0 jump), for plotting.
offsetsNoAngles in degrees added to every longitude (+angle and -angle), 'all' or a list from [0, 30, 45, 60, 72, 90, 120, 135, 144, 150, 180]. Default: none (the longitude itself).
averagesNoMulti-body longitude averages: mean_of_5 = (Jupiter+Saturn+Uranus+Neptune+Pluto)/5, circle_of_8 = (Mercury+Venus+Mars+Jupiter+Saturn+Uranus+Neptune+Pluto)/8, in each perspective.
datetimeNoA moment (snapshot): ISO 8601 with Z or an offset, e.g. '2024-01-01T00:00Z'. A local time needs 'timezone' or coordinates. Omit when giving start/end.
intervalNoSeries sampling step: 1 hour, 4 hours, 12 hours, 1 day or 1 week.1d
time_utcNoSeries: UTC time of day of the first sample, HH:MM.00:00
timezoneNoIANA zone, e.g. 'Asia/Kolkata'. Optional: resolved from the coordinates, with the historical offset (DST, Local Mean Time) of that date.
perspectiveNoGeocentric, heliocentric, or both in one call (default).both
average_methodNo'arithmetic' mean of the 0-360 longitude values or 'circular' (vector) mean of the directions.arithmetic
include_declinationNoSeries: also a declination column per body.

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?

Goes well beyond the safety annotations by disclosing the computation source (JPL DE440, deterministic, no LLM), the result integrity mechanism (meta.result_sha256), hard limits (max 1000 samples), and crucially the cost/auth model: $0.20 per call, always paid, x402 or MPP, with the concrete REST endpoint. These are exactly the operational facts an agent needs before invoking.

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 core purpose is front-loaded, but the text repeats itself: 'pandas-ready columns' appears twice and 'at a moment, or as a series of up to 1000 samples' restates the opening sentence. The pricing/auth sentence is valuable, but the duplication costs efficiency.

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?

For a 14-parameter, zero-required-parameter tool with an output schema and full annotations, the description covers the essential decision points: snapshot vs. series, sample cap, output layout, determinism, and payment. Remaining gaps (what validation errors occur, how timezone resolution interacts with start/end) are minor given the rich schema.

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 description coverage is 100%, so all 14 parameters are already documented, including enum meanings and defaults. The description adds a worked example and illustrates what the output columns represent (speeds, retrograde flags, declinations), but does not clarify the trickier parameters (timezone resolution, average_method interaction) beyond what the schema says.

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?

States a specific verb+resource (planetary longitude time series) with a clear scope: geocentric and heliocentric degrees at a moment or sampled every hour to every week. It is distinguishable from generic position tools, but it never names a sibling (e.g. body_positions or planetary_phenomena) to make the boundary explicit.

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 mode is implied rather than prescribed: snapshot vs. series is conveyed through 'at a moment' and 'Omit when giving start/end', and an example call is provided. There is no explicit statement of when to prefer this over the related position/phenomena siblings, so the agent must infer the choice.

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.