Skip to main content
Glama

ClockCrest time tools

Sunrise and sunset

get_sunrise_sunset
Read-onlyIdempotent

Sunrise, sunset, solar noon, day length and twilight times for coordinates on a date, in the given time zone. Reports polar day or polar night explicitly instead of inventing times. Use search_city to get coordinates and the zone of a city.

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": {
      "lat": "<lat>",
      "lon": "<lon>",
      "date": "<date>",
      "tz": "<tz>"
    },
    "name": "get_sunrise_sunset"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzYesIANA time zone of the place, e.g. Africa/Cairo
latYesLatitude in decimal degrees, north positive (−90 to 90)
lonYesLongitude in decimal degrees, east positive (−180 to 180)
dateYesLocal date at the place, YYYY-MM-DD (1900–2100)

Output Schema

NameRequiredDescriptionDefault
latYes
lonYes
dateYesCalendar date, YYYY-MM-DD
notesYesCaveats and conventions that apply to this response.
polarYes
sourceYesWhere the data or the algorithm comes from.
sunsetYes
sunriseYes
timeZoneYesIANA time zone name
twilightYes
dayLengthYesHH:MM:SS
polarNoteYes
solarNoonYes
sourceUrlYes
dayLengthSecondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral value beyond that by disclosing the polar day/polar night edge case and stating it is reported explicitly rather than fabricated. It stops short of describing error behavior or output shape, the latter being covered by the output schema.

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?

Two sentences, front-loaded with the primary capability, then the edge-case behavior, then the prerequisite tool. Every clause carries information; nothing is restated from the title or annotations.

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 a full input schema, an output schema, and rich annotations, the description only needs to cover what the structured fields can't. It handles the notable edge case and the parameter-sourcing workflow, but says nothing about failure modes for out-of-range dates or how the time zone affects the returned values.

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 coverage is 100%, with each parameter's meaning, range, and format documented inline, so the baseline is 3. The description only adds that the coordinates and zone should come from search_city, which is a sourcing hint rather than new semantic detail about the parameters themselves.

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 the exact resource set (sunrise, sunset, solar noon, day length, twilight) and the scoping inputs (coordinates, date, time zone), which is far more specific than the title alone. It doesn't explicitly distinguish itself from nearby siblings such as get_moon_phase or get_weather, though the enumerated outputs make the domain obvious.

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?

There is one concrete workflow hint: 'Use search_city to get coordinates and the zone of a city,' which tells the agent how to satisfy required parameters. There is no guidance on when to prefer this over sibling astronomy/time tools, or on the acceptable date range beyond what the schema already enforces.

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.

Resources