Skip to main content
Glama

Astro Agents - research-grade astronomical data API

Local circumstances of solar and lunar eclipses

local_eclipse
Read-onlyIdempotent

Solar and lunar eclipses seen from a place: local type, contact times (C1-C4, P1-P4, U1-U4), magnitude, obscuration, duration of totality and the Sun's or Moon's altitude. E.g. {start: '2026-08-01', end: '2026-08-31', latitude: 39.47, longitude: -0.38}. For eclipse chasers, planetariums, schools and travel apps: solar eclipses from the place's own viewpoint (local type: total, annular, partial or none; contacts C1, C2, maximum, C3, C4 with the Sun's altitude and azimuth; magnitude, obscuration, duration, duration of totality or annularity) and lunar eclipses (penumbral and umbral contacts P1, U1, U2, maximum, U3, U4, P4 with the Moon's altitude, umbral and penumbral magnitude, durations), each marked visible when the body is above the horizon. Matches NASA's predictions to a few seconds (2024-04-08 at Dallas, 2025-03-14 lunar eclipse). 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/eclipse-local (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>",
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "local_eclipse"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesLast UTC date, YYYY-MM-DD, at most 366 days after start.
kindsNoEclipse kinds to return. Default: both.
startYesFirst UTC date, YYYY-MM-DD (1800-01-08..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

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description does not need to restate safety. It adds substantial beyond-schema behavior: JPL DE440 determinism, accuracy matching NASA to a few seconds, a per-result meta.result_sha256, and commercial terms ($0.10 per call, x402/MPP, always paid, never free). The only omissions are result-shape and rate/latency behavior, which the output schema largely covers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded but heavily redundant: contact identifiers (C1-C4, P1-P4, U1-U4) are introduced in the first sentence, then re-expanded in full in the second. The audience list and pricing/endpoint details push length well past what an agent needs to select and invoke the tool.

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 a rich output schema, full parameter documentation and descriptive annotations, the definition covers nearly everything needed to invoke the tool correctly, including accuracy expectations and the paid-call constraint. Only explicit sibling routing is missing, which is a modest gap given the tool's clarity.

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 the schema already carries parameter meaning with bounds, defaults and formats. The description's only parameter contribution is a concrete example object showing start/end/latitude/longitude usage, which adds little semantic depth beyond what the schema provides.

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?

The description names a specific verb and resource — local circumstances of solar and lunar eclipses at a given place — and enumerates the concrete outputs (local type, C1-C4/P1-P4/U1-U4 contacts, magnitude, obscuration, totality duration, altitude). This clearly separates it from siblings such as rise_set_times or celestial_events, which do not compute per-location eclipse contact geometry.

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 context is implied through an example call and an audience list ('eclipse chasers, planetariums, schools and travel apps'), which conveys the intended scenario. However, it never states when NOT to use this tool or names an alternative sibling (e.g. a global eclipse catalog) for cases outside a specific place, leaving routing to inference.

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.