Skip to main content
Glama

Get sunrise and sunset

get_sun_events

Retrieve sunrise, sunset, and solar noon times for any global coordinate and date. Specify latitude, longitude, and UTC offset to get accurate solar event times.

Instructions

Sunrise, sunset, and solar noon for a coordinate and date. Works worldwide.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesDate as YYYY-MM-DD
latitudeYesLatitude in decimal degrees
longitudeYesLongitude in decimal degrees
utc_offsetNoUTC offset for the returned times, e.g. '+02:00' for Norwegian summer time+00:00
Behavior2/5

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

With no annotations, the description carries the full burden. It mentions 'works worldwide' but omits behavioral details such as how times are formatted, the effect of utc_offset on returned times, handling of polar day/night, or error conditions. The description understates the tool's behavior.

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 a single, concise sentence that front-loads the core outputs and adds a scope note. No filler or redundancy exists.

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

Completeness3/5

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

The tool is relatively simple, but the description omits details like the return format (e.g., time strings) and how utc_offset influences results. Given no output schema, the agent lacks clarity on what to expect. The description is adequate but not fully complete.

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 all parameters are documented. The description adds minimal value beyond restating 'coordinate and date'; it does not elaborate on utc_offset or the relationship between parameters. Baseline 3 is appropriate as the schema does the heavy lifting.

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 explicitly states the tool returns sunrise, sunset, and solar noon for a given coordinate and date, and notes global coverage. This clearly differentiates it from weather-based sibling tools like get_forecast or get_historical_weather.

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

Usage Guidelines2/5

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

No guidance is provided on when to choose this tool over alternatives. It does not mention that it is specific to solar events, nor does it advise against using weather tools for this purpose. The lack of exclusion or alternative routing leaves the agent to infer usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/trondbjoroy/met-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server