Skip to main content
Glama
Yr MCP
by Sam-Akla

Calculate sun or moon events, as seen from a specific location on Earth

get_sun_moon_events

Get time and direction of sun or moon rise, set, highest, and lowest points for a date and location as GeoJSON to support outdoor planning.

Instructions

Returns a GeoJSON document indicating time and direction to when the sun (or moon) is on its highest point on a given date (defaults to today) as seen from a specified point on Earth, as well as the preceding sun/moonrise and following sun/moonset (which may not be on the same date). The lowest point in the cycle is also returned. Note that any or all of these may be null.

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": {
      "longitude": "<longitude>",
      "latitude": "<latitude>",
      "date": "<date>"
    },
    "name": "get_sun_moon_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
offsetNo
latitudeYes
longitudeYes
usage_methodNosun

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description does real work: it discloses the return format (GeoJSON), that rise/set may fall on a different date than requested, and that any result value may be null — the latter is valuable for polar/no-event cases. It omits any statement of accuracy model, data source, or failure modes, so not a 5.

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 output and scope are front-loaded, and the parentheses about default date and possible cross-date rise/set are well placed. The phrasing 'preceding sun/moonrise and following sun/moonset' is slightly awkward and the 'lowest point' sentence could be merged, but there is no substantive waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return structure needn't be spelled out, and the description goes further than required by flagging nullability. However, for a five-parameter geospatial tool with zero schema coverage, the unaddressed 'offset' parameter and unstated coordinate/date conventions are meaningful gaps an agent must guess at.

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

Parameters2/5

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

Schema coverage is 0%, so the description must carry parameter meaning, and it only partially does: it explains that date defaults to today and that the target body is sun or moon, plus that latitude/longitude define 'a specified point'. The 'offset' parameter and 'usage_method' are never explained, nor are coordinate units/conventions or accepted date format.

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 result (GeoJSON of the sun/moon's highest point, plus preceding rise and following set and the cycle's lowest point) for a specific input (a point on Earth, a date, sun or moon). This is clearly distinct from sibling forecast/alert/nowcast tools, which report weather rather than astronomical events.

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: the parenthetical '(defaults to today)' and '(or moon)' hint that the tool is optional-argument driven, but there is no explicit when-to-use guidance, no statement of when NOT to use it, and no routing versus get_location_forecast or get_now_cast.

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