Skip to main content
Glama

Golden and blue hour windows

plan_golden_hour
Read-onlyIdempotent

Compute UTC start and end times of golden hour (solar elevation -4° to +6°), blue hour (-6° to -4°) and conventional sunrise and sunset (-0.833°) for one UTC day at a latitude and longitude, 1900–2100. Purely geometric: no refraction, terrain or weather. Numerical tolerance is not astronomical accuracy.

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

Input Schema

NameRequiredDescriptionDefault
date_utcYesReal Gregorian UTC midnight, year 1900–2100. Rust also validates month/day and leap years. Other hours are rejected, never truncated; this is not a local civil day.
latitudeYesDegrees, North positive.
longitudeYesDegrees, East positive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "bands": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "high_deg": {
      -            "type": "number"
      -          },
      -          "low_deg": {
      -            "type": "number"
      -          },
      -          "name": {
      -            "enum": [
      -              "golden",
      -              "blue"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "name",
      -          "low_deg",
      -          "high_deg"
      -        ],
      -        "type": "object"
      -      },
      -      "maxItems": 2,
      -      "minItems": 2,
      -      "type": "array"
      -    },
      -    "contract_version": {
      -      "const": "0.1.0",
      -      "type": "string"
      -    },
      -    "crossings": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "direction": {
      -            "enum": [
      -              "rising",
      -              "setting"
      -            ],
      -            "type": "string"
      -          },
      -          "threshold_deg": {
      -            "anyOf": [
      -              {
      -                "const": 6,
      -                "type": "number"
      -              },
      -              {
      -                "const": -4,
      -                "type": "number"
      -              },
      -              {
      -                "const": -6,
      -                "type": "number"
      -              },
      -              {
      -                "const": -0.833,
      -                "type": "number"
      -              }
      -            ]
      -          },
      -          "time_utc": {
      -            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "threshold_deg",
      -          "direction",
      -          "time_utc"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "date_utc": {
      -      "description": "Real Gregorian UTC midnight, year 1900–2100. Rust also validates month/day and leap years. Other hours are rejected, never truncated; this is not a local civil day.",
      -      "maxLength": 20,
      -      "minLength": 20,
      -      "pattern": "^(?:19\\d{2}|20\\d{2}|2100)-\\d{2}-\\d{2}T00:00:00Z$",
      -      "type": "string"
      -    },
      -    "elapsed_ms": {
      -      "minimum": 0,
      -      "type": "number"
      -    },
      -    "elevation_convention": {
      -      "type": "string"
      -    },
      -    "latitude": {
      -      "maximum": 89,
      -      "minimum": -89,
      -      "type": "number"
      -    },
      -    "limitations": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "longitude": {
      -      "maximum": 180,
      -      "minimum": -180,
      -      "type": "number"
      -    },
      -    "notes": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "numerical": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "evaluations": {
      -          "maximum": 20000,
      -          "minimum": 1441,
      -          "type": "integer"
      -        },
      -        "extremum_refinements": {
      -          "maximum": 9007199254740991,
      -          "minimum": 0,
      -          "type": "integer"
      -        },
      -        "sampled_points": {
      -          "const": 1441,
      -          "type": "number"
      -        },
      -        "time_tolerance_s": {
      -          "const": 0.25,
      -          "type": "number"
      -        },
      -        "timestamp_resolution_s": {
      -          "const": 0.001,
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "time_tolerance_s",
      -        "timestamp_resolution_s",
      -        "sampled_points",
      -        "evaluations",
      -        "extremum_refinements"
      -      ],
      -      "type": "object"
      -    },
      -    "period_end_utc": {
      -      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
      -      "type": "string"
      -    },
      -    "period_start_utc": {
      -      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
      -      "type": "string"
      -    },
      -    "provenance": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "client": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "name": {
      -              "type": "string"
      -            },
      -            "version": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "name",
      -            "version"
      -          ],
      -          "type": "object"
      -        },
      -        "identity_source": {
      -          "type": "string"
      -        },
      -        "model": {
      -          "type": "null"
      -        },
      -        "server": {
      -          "const": "scorecompute",
      -          "type": "string"
      -        },
      -        "tool": {
      -          "const": "plan_golden_hour",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "tool",
      -        "server",
      -        "client",
      -        "identity_source",
      -        "model"
      -      ],
      -      "type": "object"
      -    },
      -    "status": {
      -      "const": "computed",
      -      "type": "string"
      -    },
      -    "sun_max_elevation_deg": {
      -      "maximum": 90,
      -      "minimum": -90,
      -      "type": "number"
      -    },
      -    "sun_min_elevation_deg": {
      -      "maximum": 90,
      -      "minimum": -90,
      -      "type": "number"
      -    },
      -    "sunrise_convention": {
      -      "type": "string"
      -    },
      -    "windows": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "azimuth_defined": {
      -            "type": "boolean"
      -          },
      -          "azimuth_mid_deg": {
      -            "anyOf": [
      -              {
      -                "maximum": 360,
      -                "minimum": 0,
      -                "type": "number"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "band": {
      -            "enum": [
      -              "golden",
      -              "blue"
      -            ],
      -            "type": "string"
      -          },
      -          "duration_s": {
      -            "exclusiveMinimum": 0,
      -            "maximum": 86400,
      -            "type": "number"
      -          },
      -          "end_utc": {
      -            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
      -            "type": "string"
      -          },
      -          "ends_at_period_end": {
      -            "type": "boolean"
      -          },
      -          "start_utc": {
      -            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
      -            "type": "string"
      -          },
      -          "starts_at_period_start": {
      -            "type": "boolean"
      -          },
      -          "sun_motion_at_mid": {
      -            "enum": [
      -              "rising",
      -              "setting",
      -              "flat"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "band",
      -          "start_utc",
      -          "end_utc",
      -          "duration_s",
      -          "starts_at_period_start",
      -          "ends_at_period_end",
      -          "azimuth_mid_deg",
      -          "azimuth_defined",
      -          "sun_motion_at_mid"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "contract_version",
      -    "status",
      -    "date_utc",
      -    "period_start_utc",
      -    "period_end_utc",
      -    "latitude",
      -    "longitude",
      -    "elevation_convention",
      -    "sunrise_convention",
      -    "bands",
      -    "windows",
      -    "crossings",
      -    "sun_min_elevation_deg",
      -    "sun_max_elevation_deg",
      -    "numerical",
      -    "notes",
      -    "limitations",
      -    "elapsed_ms",
      -    "provenance"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, so the safety profile needs no restating. The description adds genuinely useful behavioral caveats beyond them: geometric-only model (no refraction, terrain or weather) and an explicit accuracy disclaimer. It stops short of covering edge behavior such as what happens during polar day/night when a window may not exist.

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?

Two dense sentences: the computation and its exact thresholds come first, then the model caveats. Every clause carries information an agent cannot get from the schema or annotations, and nothing is padded.

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?

With no output schema, the description carries the return-value burden and does so by enumerating what is computed (start and end times for three solar windows). Missing is any note on output encoding or on degenerate cases (sun never reaching a threshold at high latitudes), which matters given latitude is capped at ±89.

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%, with date_utc, latitude and longitude each fully documented in the schema, so baseline is 3. The description reinforces the key semantics (single UTC day, fixed point, 1900–2100) but adds no syntax or meaning beyond what the schema already states.

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?

Names a specific verb ('Compute') and precise resources (UTC start/end of golden hour, blue hour, sunrise/sunset) with the exact solar-elevation thresholds and the lat/lon/day scope. The identity of the tool is unmistakable; the only gap is that it never names or contrasts a sibling such as plan_observation, so differentiation relies on the description's own specificity.

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 rather than stated: 'for one UTC day at a latitude and longitude, 1900–2100' and 'Purely geometric: no refraction, terrain or weather' tell an agent the conditions under which the result is meaningful. There is no explicit when-to-use/when-not or routing to an alternative tool.

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.

Resources