Skip to main content
Glama

Alomo: Lookups

Sunrise, sunset, twilight and day length

sunrise_sunset
Read-onlyIdempotent

Computes sunrise, sunset, solar noon, day length and civil, nautical and astronomical twilight for a latitude, longitude and date, using NOAA's solar equations, with times in UTC and an optional IANA time zone. Reports polar day or night where the sun doesn't rise or set.

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

Input Schema

NameRequiredDescriptionDefault
dateNoYYYY-MM-DD (default today, UTC).
latitudeYesLatitude in degrees, -90 to 90 (north positive).
longitudeYesLongitude in degrees, -180 to 180 (east positive).
time_zoneNoIANA time zone for local times, e.g. 'Europe/London' (default UTC).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open world), so the lower bar applies. The description still adds real context: the NOAA solar equations as the computation basis, that returned times are in UTC with an optional IANA zone for local conversion, and that polar day/night is reported rather than erroring. It stops short of noting precision or refraction/altitude assumptions.

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?

One dense opening sentence front-loads the verb, the computed quantities, the required inputs and the time basis, followed by a single short sentence for the polar edge case. There is no filler and nothing important is buried.

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 no output schema, the description carries the return-value burden and does so: it lists every computed quantity, the time basis, and the polar-day/night output case. Only minor gaps remain, such as the solar altitude/refraction convention used, which matter for precision-sensitive callers.

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 each of the four parameters documented (formats, ranges, sign conventions, defaults), so the baseline of 3 applies. The description only restates that time zone is optional and UTC is the default, adding no syntax or semantics beyond the schema.

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 ("Computes") and enumerates exactly the resources produced: sunrise, sunset, solar noon, day length, and three twilight bands. The scope is unambiguous and no sibling tool in the list overlaps with solar computation, so an agent can select it on the first read.

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 implied rather than stated: the description makes clear you supply latitude, longitude and a date, and it flags the polar day/night edge case. It gives no explicit when-to-use or when-not-to-use guidance and names no alternative (e.g. a weather or timezone sibling) for adjacent needs, so it sits at minimum viable.

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