Skip to main content
Glama

astronomy-mcp-server: get moon phase

astronomy_get_moon_phase
Read-onlyIdempotent

Report the Moon phase for an instant: illuminated fraction, phase name, synodic age in days since the new moon, phase angle, and the next four quarter phases (new, first quarter, full, last quarter) with timestamps. Answers "what is the moon phase tonight" and "when is the next full moon" in one call without iteration. The time defaults to now; pass an IANA timezone to also receive observer-local timestamps. The phase is geocentric — no observer location is needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeNoInstant to evaluate as an ISO 8601 UTC string, e.g. "2024-12-15T00:00:00Z". Defaults to now. A value with no zone designator is read as UTC, not the local zone of the server process.
timezoneNoIANA timezone for localized output, e.g. "America/Los_Angeles". When omitted, output is UTC-only.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
age_daysNoSynodic age in days since the previous new moon.
time_utcNoThe instant the phase was computed for, in ISO 8601 UTC.
phase_nameNoHuman-readable phase name (New Moon, Waxing Crescent, First Quarter, …, Waning Crescent).
time_localNoThe same instant in the observer-local timezone with offset, present only when a timezone was supplied.
next_quartersNoThe next four lunar quarter phases (new/first/full/last) in chronological order.
phase_angle_degreesNoMoon phase angle in degrees: 0 = new, 90 = first quarter, 180 = full, 270 = last quarter.
illuminated_fractionNoFraction of the lunar disc illuminated, 0 to 1.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, signaling safe read-only behavior. The description adds valuable context beyond annotations: the phase is 'geocentric — no observer location is needed', which clarifies an important assumption for callers. It also explains the default-time behavior and that time without a zone is read as UTC. These details supplement the annotation-provided safety profile without contradicting it.

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

Conciseness4/5

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

The description is moderately long but each sentence earns its place: it front-loads the core outputs, then adds use cases, defaults, and geocentric context. The structure is logical and not redundant; while it could be tightened slightly, the information density is high and well-ordered. There is no filler, and the key facts appear early.

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?

Given the tool's complexity (returns multiple data points) and the presence of an output schema, the description sufficiently covers all necessary context: what the tool returns, how to invoke it (default time, optional timezone), and the geocentric nature that removes the need for an observer location. It also clarifies the default-to-now behavior and the UTC interpretation. No critical information is missing for an agent to call it correctly.

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% – both 'time' and 'timezone' have detailed descriptions covering defaults, format, and semantics. The tool description adds minimal extra meaning beyond the schema: it reiterates time defaults and explains that timezone yields observer-local timestamps, but these are already implied in the schema descriptions. At high coverage, the baseline of 3 is appropriate; the description does not materially improve parameter comprehension beyond the schema.

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 clearly states the tool 'Report[s] the Moon phase for an instant' and enumerates specific outputs: illuminated fraction, phase name, synodic age, phase angle, and next four quarter phases. It also names the concrete user questions ('what is the moon phase tonight', 'when is the next full moon') it answers, making its purpose distinct from the sibling astronomy tools such as get_ephemeris or get_sky_position. The verb-resource pairing is specific and unambiguous.

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?

The description provides clear usage context: it defaults to current time, explains the timezone parameter for localized output, and emphasizes that the tool answers two common questions 'in one call without iteration', implying it is the right choice for these requests. However, it does not explicitly name alternative tools or state when NOT to use it, which would fully distinguish it from siblings. The guidance is clear but not exhaustive on exclusions.

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.

TDQS

A4.6/5.0
Disambiguation5/5

Each tool targets a clearly distinct aspect of astronomy: event lookup, ephemeris for small bodies, moon phase, rise/set times, satellite passes, sky position for bodies/stars, and a visible-objects summary. Even overlapping capabilities (e.g., get_sky_position vs. get_ephemeris) are separated by scope (single instant vs. time series, major bodies vs. small bodies). No ambiguity in choosing between tools.

Naming Consistency5/5

All tool names follow a consistent pattern: 'astronomy_' prefix + descriptive verb ('find', 'get', 'list') + object. The verbs are homogeneous (mostly 'get_', plus 'find_events' and 'list_visible'), and the snake_case style is uniform. Predictable and easy to navigate.

Tool Count5/5

Seven tools is a well-scoped number for an astronomy server. Each tool covers a distinct major query type, and none feel redundant or unnecessary. This is within the ideal 3–15 range and feels neither too thin nor too heavy.

Completeness5/5

The tool set covers the full range of common astronomy asks: positions, phases, events, rise/set, satellite passes, and a 'what's up' overview. Small-body ephemerides fill the gap for non-major objects. There are no obvious dead ends; an agent can answer most user questions with these tools alone.