Skip to main content
Glama

Astro Agents - research-grade astronomical data API

Astronomical summary of the day for a place

day_summary
Read-onlyIdempotent

Today's sky for a place in one call: sunrise, sunset, twilight, golden and blue hour, the Moon's phase and moonrise, the planets visible tonight, the next lunations and the next eclipse. E.g. {date: '2026-08-10', latitude: 48.8566, longitude: 2.3522}. The daily sky block of a weather, calendar or outdoor app, in one request: the Sun (rise, solar noon, set, civil / nautical / astronomical dawn and dusk, day length, golden and blue hour), the Moon (phase, illuminated fraction, age, distance, moonrise, transit, moonset, the next principal phase), the planets observable that night (window, best time, altitude, azimuth, magnitude; brightest first), the lunations and planetary stations of the next 7 days, and the next solar or lunar eclipse anywhere on Earth. Local times with offset, UTC and unix timestamps; each block follows the conventions of its own route. 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/day (x402 or MPP); each client gets 1 free call on the $0.01-0.02 tools, this one included.

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": {
      "date": "<date>",
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "day_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe local calendar day at the place, YYYY-MM-DD (1800-01-02..2199-12-30).
latitudeYesDecimal degrees, north positive.
timezoneNoIANA zone for local times, e.g. 'Europe/Paris'. Optional: resolved from the coordinates (with its historical DST rules).
longitudeYesDecimal degrees, east positive.
elevation_mNoHeight above the WGS84 ellipsoid, metres (no terrain or horizon dip is modelled).

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

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: declares determinism (JPL DE440, no LLM), a verifiable meta.result_sha256 per result, local/UTC/unix time conventions with the note that each block follows its own route's conventions, and the commercial terms ($0.02 per call, endpoint, x402/MPP, one free call). These are exactly the operational facts an agent cannot see in the schema or annotation hints.

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 and states the payoff immediately. However, the long second sentence re-enumerates the same blocks already listed (sun, moon, planets, lunations, eclipse) with more detail, so roughly half the text is restatement; the pricing/endpoint sentence is useful but appended rather than structured.

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 5-parameter read-only aggregate with an output schema available, the description supplies everything an agent needs: scope, example invocation, time-convention behavior, determinism and hashing, cost, and how to obtain a free first call. Return-value detail is rightly left to the output 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 date bounds, latitude/longitude sign conventions, optional IANA timezone with historical DST, and elevation in metres are already fully documented. The description adds only an example call ({date, latitude, longitude}) and the promise of local times with offset, which is marginal beyond the schema — the baseline 3 applies.

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 resource (the astronomical day for a place) and enumerates its contents: Sun rise/set/twilight/golden hour, Moon phase and rise, visible planets, coming lunations and the next eclipse. The phrase 'in one call' distinguishes it from granular siblings such as moon_details, rise_set_times or planetary_phenomena, so an agent can tell it is the aggregate tool without opening a schema.

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 concrete usage context — 'the daily sky block of a weather, calendar or outdoor app, in one request' — which tells the agent when this bundle is the right pick over piecemeal calls. It does not state what the call is not for (e.g. 'use moon_details for a single-body deep dive' or 'use local_eclipse for eclipse circumstances at a site'), so no explicit exclusion or alternative routing is provided.

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.