Skip to main content
Glama

Astro Agents - research-grade astronomical data API

Solunar periods: lunar transits, moonrise and moonset

solunar_periods
Read-onlyIdempotent

Solunar periods for a place and day: major periods around the Moon's upper and lower transits, minor periods around moonrise and moonset, in local time. E.g. {date: '2026-06-21', latitude: 48.8566, longitude: 2.3522}. For fishing, hunting and outdoor apps that use the solunar timing convention: for one local day at a place, each major period (centred on the Moon's upper transit overhead and lower transit underfoot, 2 h by default) and minor period (centred on moonrise and moonset, 1 h by default) with its start, centre and end in local time, the Moon's altitude at its transits and its phase. The events are exact (astronomy/rise-set conventions); the windows are the convention's, adjustable. No rating attached. Deterministic (JPL DE440, no LLM); every result carries meta.result_sha256. Price $0.01 per call via REST POST https://astro-agent.dev/v1/astronomy/solunar (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": "solunar_periods"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe local calendar day at the place, YYYY-MM-DD (1800-01-02..2199-12-30).
optionsNoWindow lengths.
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/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world behavior, and the description adds real value beyond that: JPL DE440 determinism, no LLM, meta.result_sha256 for verification, and per-call pricing/free-call terms. The only gaps are edge-case behavior (e.g. days with no moonrise at high latitudes) and whether windows are clipped to the local day.

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 the example helps, but the description repeats itself substantially: 'for a place and day' and the major/minor period definitions are stated twice in adjacent sentences. Pricing and determinism details are useful but could be compressed into one clause.

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 an output schema present, return values need not be described, and the definition covers cost, determinism, verifiability and conventions well. It is nearly complete for a 6-parameter astronomy tool; only polar/no-rise edge cases and window clipping semantics are unaddressed.

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 date, latitude, longitude, timezone, elevation and the options object are all already documented with ranges and defaults. The description restates the defaults (2 h major, 1 h minor) and notes windows are adjustable, but adds little parameter meaning the schema does not already carry.

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 resource and computation: major periods around the Moon's upper/lower transits and minor periods around moonrise/moonset, in local time, for a place and day. A small worked example ({date, latitude, longitude}) makes the input/output shape immediately recognizable and distinguishes it from siblings like rise_set_times or celestial_events.

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?

It states the target audience and convention explicitly ('for fishing, hunting and outdoor apps that use the solunar timing convention') and clarifies 'No rating attached', which preempts a common expectation. However, it gives no when-not guidance or named alternatives (e.g. use rise_set_times for raw rise/set values), 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.