Skip to main content
Glama

Get Next Sun Event

astro_get_next_sun_event
Read-onlyIdempotent

Find the next occurrence(s) of a sun event (sunrise, sunset, dawn, dusk, solarNoon, night, nightEnd, goldenHourStart, goldenHourEnd, nauticalDawn, nauticalDusk, astronomicalDawn, astronomicalDusk) at a location from a starting date.

Use for: "when is sunset today?", planning golden-hour photography or dawn fishing around tide windows.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "event": "<event>",
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "astro_get_next_sun_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoSearch start date. Defaults to today.
countNoHow many occurrences to return.
eventYesSun event to find.
latitudeYesLatitude in decimal degrees (-90 to 90).
timezoneNoIANA timezone for output times (e.g. "America/New_York"). Defaults to UTC ISO timestamps.
longitudeYesLongitude in decimal degrees (-180 to 180).
response_formatNoOutput format: "markdown" for a readable summary table, "json" for the complete structured payload.markdown

Output Schema

NameRequiredDescriptionDefault
_responseYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "_response": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "contractVersion": {
      +          "const": "2026-09-29.1",
      +          "type": "string"
      +        },
      +        "status": {
      +          "const": "complete",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "contractVersion",
      +        "status"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "_response"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is fully covered without description help. The description adds that results are searched forward from a starting date, which is mild extra context, but says nothing about pagination limits, default event windows, or how count interacts with the search direction. Adequate, not rich.

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?

Two compact paragraphs with the core action front-loaded and the usage contexts clearly separated. The long parenthetical event enumeration partially duplicates the schema enum and could be trimmed, but overall there is little waste.

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?

With full annotation coverage, 100% parameter documentation, and an output schema, the description only needs to convey purpose and use cases, which it does. Nothing critical to correct invocation is 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 coverage is 100%: date default, count bounds, latitude/longitude bounds, timezone and response_format all carry descriptions, so the schema does the heavy lifting. The description merely restates the event list and starting-date concept rather than clarifying anything new, so the baseline of 3 applies.

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 states a specific verb and resource ('Find the next occurrence(s) of a sun event ... at a location from a starting date') and enumerates the supported events, so the agent knows exactly what it computes. It does not, however, distinguish itself from the close sibling astro_get_sun_times or astro_get_sun_position, leaving the boundary to be inferred.

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 'Use for' examples ('when is sunset today?', golden-hour photography, dawn fishing around tide windows) give concrete usage contexts, which is more than a bare tool statement. But there is no when-not guidance and no named alternative for the overlapping sun-times tool, so selection between siblings remains implicit.

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.