Skip to main content
Glama

Sunrise, sunset and moon

perigee_get_sun_moon
Read-onlyIdempotent

Get sunrise, sunset, first and last light, golden hour, moonrise, moonset and moon phase for any place on Earth, for one day or up to two weeks, plus the next new, quarter and full moons. Use for "what time is sunset in …", "when is golden hour", "moon phase tonight", "next full moon". Works worldwide from latitude + longitude (add time_zone outside the US); a US coastal place name or station_id also works.

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": "perigee_get_sun_moon"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoLocal calendar date at the place, YYYY-MM-DD. Defaults to today there.
daysNoHow many consecutive local days to return, 1–14.
placeNoThe coastal place being asked about — a beach, harbor, bay, or town, optionally with a state: "Santa Cruz, CA".
latitudeNoLatitude of the place being asked about, decimal degrees. Use with longitude when a place name is not recognised; approximate is fine.
longitudeNoLongitude of the place, decimal degrees (negative west).
time_zoneNoIANA time zone for the place, e.g. "Europe/Lisbon". Recommended for coordinates outside the US; inferred when omitted.
station_idNo7-digit NOAA tide station ID, when already known from an earlier result.

Output Schema

NameRequiredDescriptionDefault
kindYes
linksYes
summaryYesOne or two sentences that answer the question directly.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered without prose. The description adds genuinely useful behavioral context — worldwide coverage, the US-only limitation on place-name resolution, and the need to supply time_zone for non-US coordinates. It says nothing about rate limits, error behavior when a place name is unrecognised, or how coordinates and place interact when both are given.

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

Conciseness5/5

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

Three sentences, front-loaded with the capability and its scope, then the intent examples, then the input requirements. Every clause carries information an agent needs; there is no restatement of the name or filler.

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 seven parameters, none required, and an output schema present, the description needs mainly to explain how to pick an input path, which it does. Defaults (date to today there, days to 1) live in the schema and need not be repeated. Minor remaining gap is the interaction between competing location parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a baseline of 3 applies, and the description goes beyond it by explaining which parameters combine ('works worldwide from latitude + longitude (add time_zone outside the US); a US coastal place name or station_id also works'). That routing guidance about place vs. coordinates vs. station_id is not recoverable from the schema alone. It does not clarify precedence when both place and latitude/longitude are supplied.

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?

The description opens with a specific verb and a full enumeration of the resources returned (sunrise, sunset, first/last light, golden hour, moonrise, moonset, phase) plus the horizon length (one day to two weeks) and the extra moon-phase events. That scope makes it distinguishable in practice from narrower siblings like astro_get_sun_times or astro_get_moon_phase, but no sibling is named explicitly, so it stops short of the top band.

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 supplies concrete trigger phrases ('what time is sunset in …', 'when is golden hour', 'moon phase tonight', 'next full moon'), which tells an agent exactly what user intents this covers. It also explains the input path: latitude + longitude with time_zone outside the US, or a US coastal place name / station_id. It stops short of stating when to prefer the narrower astro_* tools instead.

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.