Skip to main content
Glama

Earth clock

earth_clock
Read-onlyIdempotent

The same facts as earth_tonight, shaped for automation: ISO 8601 times with the place's UTC offset, plus booleans for right now (is_sun_up, is_dark_now = sun more than 6 degrees below the horizon, is_fully_dark_now = more than 18 degrees, is_moon_up) and the next sunset and sunrise. For scripting lights and evening routines.

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_clock"
  }
}

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
nowYes
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

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world and non-destructive, so the bar is lower; the description still adds real semantics by defining the thresholds behind the booleans (sun more than 6 degrees below horizon for is_dark_now, more than 18 for is_fully_dark_now) and by specifying times carry the place's UTC offset. It does not discuss rate limits or failure behavior, but for a read-only computation tool that is minor.

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 core differentiator (machine-shaped ISO 8601 facts) before the parenthetical field definitions. The nested parenthetical threshold clauses are dense, but every clause carries information an agent would otherwise have to guess.

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 five optional params, an output schema present and full annotation coverage, the description supplies what is needed: output semantics, the automation use case, and the sibling relationship. The schema already answers the city-vs-coordinates and timezone-default questions, so nothing essential is missing.

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%, with city, date, timezone and coordinates all documented in the schema, so the baseline of 3 applies. The description's only parameter-adjacent value is the mention of the place's UTC offset, which loosely reinforces the timezone semantics already in the schema; it adds no new meaning about the five inputs.

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 resource and shape: the same facts as earth_tonight but rendered as ISO 8601 times with UTC offset plus booleans and next sunset/sunrise. It explicitly distinguishes itself from its sibling by output format (machine-shaped vs. presumably human-readable), so an agent can choose between them without opening a schema.

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?

'For scripting lights and evening routines' plus 'shaped for automation' gives a clear usage context and implicitly routes human-facing reads to earth_tonight. It stops short of an explicit 'use earth_tonight when you want prose' exclusion, so it is clear but not fully enumerated.

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.