Skip to main content
Glama
GeoSphere MCP Server

GeoSphere MCP Server

by Singh-Akesh

get_sunrise_sunset

Retrieves sunrise, sunset, solar noon, golden hour, and twilight times for any location and date, including day length and timezone-aware results.

Instructions

    Get sunrise, sunset, golden hour, twilight, and solar noon for any location and date.

    Args:
        latitude:  Decimal degrees latitude  (e.g. 40.7128 for New York City).
        longitude: Decimal degrees longitude (e.g. -74.0060 for New York City).
        date:      Date in YYYY-MM-DD format, or "today" (default) or "tomorrow".
        timezone:  IANA timezone name (e.g. "America/New_York", "Asia/Tokyo"). Defaults to "UTC".

    Returns:
        Sunrise, sunset, solar noon, golden hour start/end, civil/nautical/astronomical
        twilight times, and day length.
    

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": {
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "get_sunrise_sunset"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNotoday
latitudeYes
timezoneNoUTC
longitudeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose the return payload and the timezone default of UTC. However, it omits notable behavioral traits: what happens at polar latitudes where no sunrise/sunset occurs, how invalid coordinates or unknown IANA zones are handled, and whether results are computed locally or fetched remotely.

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 purpose sentence is front-loaded and the Args/Returns blocks are scannable and waste-free in content. The docstring framing (artificial indentation, 'Args:'/'Returns:' labels) is slightly heavier than needed but not harmful.

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 4-parameter computation tool with no output schema, the description supplies both the input contract and the return shape, which is what an agent needs. The remaining gap is edge-case behavior for polar day/night and error conditions.

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

Parameters4/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, and it does document all four parameters with format guidance and examples (decimal degrees, YYYY-MM-DD or 'today'/'tomorrow', IANA names). It stops short of stating valid ranges (e.g. -90..90 latitude) or how out-of-range values are rejected.

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?

States a specific verb and a concrete set of resources (sunrise, sunset, golden hour, twilight, solar noon) scoped to 'any location and date', so the agent knows exactly what it returns. It does not distinguish itself from possibly overlapping siblings such as get_weather, which is the only missing piece.

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?

Usage is implied by the resource itself (you need sun times for a place and day), but there is no explicit when-to-use/when-not guidance, no mention of preferring get_weather for combined conditions, and no prerequisites stated. Minimum viable rather than helpful.

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