Skip to main content
Glama

Earth tonight

earth_tonight
Read-onlyIdempotent

Tonight's sky for a place: sunset, end of astronomical twilight (fully dark), sunrise, moon phase and illumination, moonrise and moonset, the next new and full moon, and current geomagnetic activity (planetary Kp from NOAA). Give a major city or latitude and longitude, and optionally a date.

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

Input Schema

NameRequiredDescriptionDefault
cityNoA major city from the built-in list, e.g. "Melbourne" or "Portland, United States". Use latitude and longitude for anywhere else.
dateNoThe night to describe, YYYY-MM-DD in the place's time zone (default: today there). Sunset is on this date, sunrise the next morning.
latitudeNoLatitude in decimal degrees, north positive (-90 to 90)
timezoneNoIANA time zone, e.g. "Australia/Melbourne". Optional: a city brings its own; for coordinates the nearest listed city within 300 km is used, otherwise UTC.
longitudeNoLongitude in decimal degrees, east positive (-180 to 180)

Output Schema

NameRequiredDescriptionDefault
sunYes
dateYes
moonYes
placeYes
accuracyYes
geomagneticYesCurrent planetary Kp from NOAA SWPC (a reading for now, not for the requested date)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered; the description adds real value on top by naming the data provenance (planetary Kp from NOAA) and the precise set of computed values. It does not mention edge behavior such as what happens at high latitudes where sunset/twilight may not exist, nor any rate or caching limits. With annotations carrying the safety burden, this is solid but not exhaustive.

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 returned data and followed by the input contract, with no filler. The enumeration of outputs is long but each item is a distinct computed value rather than padding. Structure is clean and easy to scan.

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?

An output schema exists, so return-value formatting need not be explained, and annotations cover mutability; the description is nonetheless complete enough for an agent to know what it will get and how to address a location. The main gap is geographic edge cases (polar day/night where sunset or twilight may not occur), which matter for a sky tool but are unaddressed. For a five-parameter, zero-required read tool this is close to adequate.

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%, so every parameter (city, date, latitude, longitude, timezone) is already documented in the schema, including the timezone fallback to the nearest listed city or UTC. The description only echoes the city-or-coordinates choice and the optional date, adding no format or semantic detail beyond the schema. Baseline 3 applies where the schema does the heavy lifting.

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 names a specific resource and enumerates exactly what is computed for it: sunset, end of astronomical twilight, sunrise, moon phase and illumination, moonrise/moonset, next new/full moon, and Kp index. That is far more than a restatement of the name, and it is clear this is a computed astronomy report for a location. It does not explicitly contrast itself with the nearby earth_clock sibling, so it stops short of a 5.

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?

"Give a major city or latitude and longitude, and optionally a date" tells the agent how to invoke it, which is useful invocation guidance but not when-to-use guidance. There is no statement of when to prefer this over earth_clock or any other sibling, and no exclusions or prerequisites. Usage is implied by the content list rather than stated as a selection rule.

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.