Skip to main content
Glama

sun_moon_times

Read-onlyIdempotent

skypeek: Get sunrise, sunset, twilight, moonrise and moon phase for a place and date. For satellite passes use satellite_passes. Returns sunrise, sunset, solar noon, day length and civil / nautical / astronomical twilight, plus moonrise, moonset, moon phase, illumination and distance, for a point and a local date, in a time zone you choose. Computed locally (Meeus series; no upstream call): sun and twilight times within about 1 minute, moonrise and moonset within about 3 minutes; sea-level horizon, terrain and weather not modelled. A bad date or time zone is a 422 (not charged). Typically under 0.2 s. Price: USD 0.001. Free: 5 skypeek calls per IP per UTC day. Docs: https://tanod.dev/learn/sunrise-sunset-moon-phase-api.html

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": {
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "sun_moon_times"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNoIANA time zone for the date and the output (such as Asia/Manila); default UTC.
latYesLatitude in degrees (-90 to 90).
lonYesLongitude in degrees (-180 to 180).
dateNoLocal date YYYY-MM-DD (1900-2100); default today.

Output Schema

NameRequiredDescriptionDefault
tzNo
latNo
lonNo
sunNo
dateNo
moonNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
methodNo
accuracyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / properties / date / default
      Removed value: -null
    • removedInput schema / properties / date / title
      Removed value: -"Date"
    • removedInput schema / properties / lat / title
      Removed value: -"Lat"
    • removedInput schema / properties / lon / title
      Removed value: -"Lon"
    • removedInput schema / properties / tz / default
      Removed value: -null
    • removedInput schema / properties / tz / title
      Removed value: -"Tz"
    • removedInput schema / title
      Removed value: -"sun_moon_timesArguments"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "accuracy": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "date": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "lat": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "lon": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "method": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "moon": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "sun": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "tz": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources