Skip to main content
Glama

Sun and moon

get_astronomy
Read-onlyIdempotent

Retrieve sunrise, sunset, solar noon, twilight, golden hour, day length, and moon phase/illumination plus moonrise/moonset for a location and date, including polar conditions.

Instructions

Get comprehensive sun and moon data: sunrise/sunset, precise solar noon with altitude, civil/nautical/astronomical twilight, golden hour, day length, moon phase/illumination, moonrise/moonset. Computed locally — no API key needed. Handles Nordic polar conditions (midnight sun, polar night, white nights).

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": {
      "location": "<location>"
    },
    "name": "get_astronomy"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate in YYYY-MM-DD format (default: today)
locationYesCity name, coordinates (lat,lon), or Finnish city alias
timezoneNoIANA timezone (default: Europe/Helsinki)

Output Schema

NameRequiredDescriptionDefault
sunYes
dateYes
moonYes
locationYesResolved location
timezoneYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety bar is low; the description still adds real value by disclosing that computation happens locally with no API key requirement and that polar edge cases (midnight sun, polar night, white nights) are handled rather than returning errors or nulls. It stops short of describing failure behavior for unresolvable locations, which is the remaining behavioral gap.

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?

Two sentences, front-loaded with the payload enumeration, and every listed item is a real return field rather than filler. The dense comma list is long but scannable and appropriate for a data-returning 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 an output schema present, the description need not explain return structures, and annotations cover the safety profile; what remains is scope, computation model and edge cases, all of which are stated. Only error/fallback behavior for ambiguous locations is left 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 description coverage is 100% — date format, default of today, accepted location forms (city, lat/lon, Finnish alias) and the Europe/Helsinki default timezone are all documented in the schema. The description adds no parameter-level meaning beyond the schema, which is the expected baseline when the schema carries the load.

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 verb ('Get') and resource ('sun and moon data'), then enumerates the exact returns: sunrise/sunset, solar noon with altitude, three twilight bands, golden hour, day length, moon phase/illumination, moonrise/moonset. This is unmistakably distinct from the weather, air-quality, aurora and marine siblings, which none of those fields describe.

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 is only implied: an agent infers it should call this when it needs solar/lunar timings. The polar-conditions sentence gives useful applicability context for Nordic locations, but there is no explicit when-to-use/when-not guidance and no named alternative (e.g. use get_weather_forecast for cloud cover that would obscure a sunrise).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.