Skip to main content
Glama

sunrise.compute

Calculate sunrise, sunset, solar noon, and twilight times for any latitude, longitude, and date.

Instructions

Astronomically compute sunrise, sunset, solar noon, and civil/nautical/astronomical twilights for a coord + date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYes
lonYes
dateYesYYYY-MM-DD (required).
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. It only states the tool computes times but does not explain the output format, timezone of results, or handling of edge cases like polar regions. This is insufficient for a compute tool.

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 description is a single sentence that efficiently conveys the tool's purpose and outputs. No redundant information. However, it could benefit from slight structuring to separate parameters and outputs.

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

Completeness2/5

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

Given no output schema, no annotations, and three parameters, the description is incomplete. It does not specify return values, units, or error conditions. Additional details are needed for an agent to use the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is low (33%), with only the 'date' parameter having a description in the schema. The tool's description mentions 'coord + date' but does not explain the meaning, units, or valid ranges for lat and lon. It adds little 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 clearly states the tool computes sunrise, sunset, solar noon, and twilights for a given coordinate and date. The verb 'compute' is specific and the resource is well-defined. No sibling tools overlap with this functionality, so it is well-distinguished.

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?

The description does not provide explicit guidance on when to use this tool versus alternatives. However, since no sibling tools perform similar astronomical calculations, the context is clear. It lacks any 'when not to use' or prerequisite information.

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/2s-io/sdk'

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