Skip to main content
Glama

Sunrise sunset times, day length: sunrise and sunset times and day length for a place and date

sun
Read-only

Sunrise, sunset, solar noon, civil dawn and dusk (UTC) and day length for any place and date, computed with the standard solar equations; handles polar day and night. No outside service. Use for photography, events and outdoor planning. Example: lat=59.33, lon=18.07. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
latYesLatitude (-90 to 90)
lonYesLongitude (-180 to 180)
dateNoDate (default today)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.6/5.0
Behavior1/5

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

The description contains a clear annotation contradiction: annotations declare openWorldHint=true, but the description says 'No outside service' and 'reads or computes only.' The read-only and destructive hints are consistent, and the pricing/repeat-charge note is useful, but the openWorld conflict is a serious inconsistency.

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?

The purpose is front-loaded, and the description is generally dense with useful details such as polar handling, billing, and output fields. It is somewhat long for a three-parameter computation tool, and the pricing sentence could be tightened, but there is little pure filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only computation tool with a fully documented schema and no output schema, the description is complete. It lists the computed values, notes UTC, covers polar edge cases, and explains billing behavior, so an agent has enough context to call it correctly.

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 the parameter meanings are already documented in the schema. The description adds a useful coordinate example (lat=59.33, lon=18.07) and notes UTC output, but it does not add date-format guidance beyond what the schema implies.

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?

The description states a specific verb-and-resource combination: it computes sunrise, sunset, solar noon, civil dawn/dusk, and day length for a place and date. It also distinguishes the scope by mentioning UTC output and polar day/night handling, which makes the tool's purpose unambiguous relative to generic date/time or weather siblings.

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?

It gives explicit use cases: photography, events, and outdoor planning. It does not name alternatives such as weather or moon tools or state when not to use this tool, so it falls short of the top score, but the intended context is clear.

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.