Skip to main content
Glama

Amanecer, atardecer y duración del día

sun-times
Read-onlyIdempotent

Calcula la salida y puesta del sol, mediodía solar, crepúsculo civil y duración del día (aprox. ±1-2 min) para una ubicación y fecha. Cuándo: un resultado de fechas, zonas horarias o calendario tiene que ser exacto (desfases, horario de verano, fines de mes, bisiestos). No para: convertir entre UTC y fechas julianas (julian-day). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Computes the approximate sunrise, sunset, solar noon, civil twilight and day length for a latitude/longitude and date (astronomical formulas, about ±1-2 min), shown in UTC and a chosen time zone. When: a date, time-zone or calendar result has to be exact (offsets, daylight saving, month ends, leap years). Not for: converting between UTC and Julian dates (julian-day). [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
dateYesDate YYYY-MM-DD (string; required; up to 10 chars; format date).
latitudeYesLatitude (number; required; min -90; max 90).
timezoneNoIANA time zone, e.g. America/Bogota (default UTC) (string; optional; default "UTC"; up to 64 chars).UTC
longitudeYesLongitude (number; required; min -180; max 180).

Output Schema

NameRequiredDescriptionDefault
dateNo
polarNo
sunsetNo
sunriseNo
timezoneNo
civil_dawnNo
civil_duskNo
solar_noonNo
day_length_minutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / date / examples
      Added value: +[
      +  "2026-10-31"
      +]
    • addedInput schema / properties / latitude / examples
      Added value: +[
      +  4.711
      +]
    • addedInput schema / properties / longitude / examples
      Added value: +[
      +  -74.0721
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Computes the approximate sunrise, sunset, solar noon, civil twilight and day length for a latitude/longitude and date (astronomical formulas, about ±1-2 min), shown in UTC and a chosen time zone. When: a date, time-zone or calendar result has to be exact (offsets, daylight saving, month ends, leap years). Not for: converting between UTC and Julian dates (julian-day). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4.2/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=false, so the safety profile is covered; the description still adds real context: no network, no stored state, determinism, ±1-2 min accuracy, and hard limits (64 KB input, 1 s, 1 MB result). Minor redundancy in restating 'solo lectura' keeps it from 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The labeled structure (Cuándo / No para / Efectos / Límites) is well front-loaded, but the entire content is duplicated verbatim in Spanish and English, effectively doubling length without adding information. Every sentence earns its place individually, yet half of them are repeats.

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 values need not be described; the description still covers computations, accuracy, limits and exclusions, which is enough for a 4-parameter read-only tool. The lone soft spot is the 'Cuando' framing, which implies exactness for a tool that is itself approximate (±1-2 min).

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% and each parameter (date, latitude, longitude, timezone with default UTC) is documented in the schema itself. The description only gestures at 'a latitude/longitude and date' and 'a chosen time zone', adding no syntax or format detail beyond that.

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 precise verb+resource set (sunrise, sunset, solar noon, civil twilight, day length) with the inputs (latitude/longitude, date) and an accuracy bound (±1-2 min). It also names the sibling it is not for (julian-day), so an agent can distinguish it without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit 'Cuándo' section gives the triggering condition (date/time-zone/calendar results that must be exact: DST, month ends, leap years) and an explicit 'No para' exclusion pointing at julian-day. Both when-to-use and when-not-to-use are covered.

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