Skip to main content
Glama

Sun

sun
Read-only

Sunrise, sunset, solar noon and day length for a coordinate and date (default today), with the moonrise, moonset and phase. Times are ISO 8601 with the offset MET Norway gives (+00:00 is UTC). Attribution: data from MET Norway (CC BY 4.0). Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault
latYesLatitude, -90 to 90
lonYesLongitude, -180 to 180
dateNoDate, YYYY-MM-DD (default today)

Output Schema

NameRequiredDescriptionDefault
latNo
lonNo
sunNo
dateNo
moonNo
timesNo
sourceNo
checkedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly and openWorld annotations, the description discloses the data source and license, the time format and offset behavior, the default date, and precise billing details: $0.002 USDC per successful x402 call and no charge for failures. This gives the agent important operational context before invocation.

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?

The description is compact and front-loaded with what the tool returns, followed by necessary time-format, attribution, and pricing notes. Every sentence adds useful information without repetition.

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?

Given the output schema exists and the input schema is fully documented, the description supplies the remaining context an agent needs: data source, timezone offset behavior, default date, and billing model. Nothing material for correct invocation appears to be 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%, so lat, lon, and date are already well documented. The description repeats the coordinate/date framing and default-today behavior but adds no new parameter-level syntax or constraints 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?

The description names a specific resource and the exact outputs: sunrise, sunset, solar noon, day length, moonrise, moonset, and phase for a coordinate and date. This clearly distinguishes it from weather, tides, timezone, and date_calc siblings by focusing on solar and lunar astronomical data.

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?

It states the core usage context, a coordinate and date with today as default, which implies when the tool is appropriate. However, it does not explicitly say when to use this instead of weather, tides, timezone, or date_calc, nor does it provide exclusions or alternatives.

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