Skip to main content
Glama

tool_get_sunrise_sunset

Calculate sunrise, sunset, solar noon, twilight times and day length for a location using latitude and longitude, with an optional date, returned in UTC.

Instructions

Sunrise, sunset, solar noon, twilight and day length for a location (UTC times).

Args: latitude: Location latitude longitude: Location longitude date: YYYY-MM-DD or "today"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNotoday
latitudeYes
longitudeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.5

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses that times are in UTC and lists the computed outputs, but it does not state read-only/no-side-effect behavior, permission needs, error cases, or handling of polar day/night.

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 front-loaded with the returned values, then gives a compact parameter list. Every sentence and line serves a purpose, with no redundant or misleading text.

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?

For a simple read-only calculation with no output schema, the description adequately names the returned fields and the date format. It could be more complete on numeric bounds, required parameters, and return structure, but it is sufficient for basic invocation.

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 0%, so the description must compensate. It adds the date format 'YYYY-MM-DD' or 'today', which is valuable, but latitude and longitude entries only restate schema titles and omit ranges, required status, and decimal-degree expectations.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific outputs: sunrise, sunset, solar noon, twilight, and day length, along with location and UTC scope. It is distinguishable from travel-domain siblings, but it does not explicitly name alternatives or state a verb like 'calculate' or 'get'.

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?

There is no when-to-use guidance, no exclusions, and no named alternatives. The argument list implies it is for a location and date, but the agent receives no routing help versus tools like get_weather or convert_timezone.

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

Deploy Server

Other Tools