Skip to main content
Glama

Get Times

get_times
Read-onlyIdempotent

Get today's sunrise, sunset, dawn, dusk, solar noon, golden hour, and day length for a given latitude and longitude. Returns all times in the location's local timezone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYesLatitude of the location (e.g., 40.7128)
lngYesLongitude of the location (e.g., -74.0060)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYesLatitude of the location
lngYesLongitude of the location
dateYesDate string (literal 'today')
dawnYesDawn time
duskYesDusk time
sunsetYesSunset time
sunriseYesSunrise time
timezoneYesTimezone identifier
day_lengthYesDuration of daylight
last_lightYesLast light time
solar_noonYesSolar noon time
utc_offsetYesUTC offset in hours
first_lightYesFirst light time
golden_hourYesGolden hour time

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "date": {
      +      "description": "Date string (literal 'today')",
      +      "type": "string"
      +    },
      +    "dawn": {
      +      "description": "Dawn time",
      +      "type": "string"
      +    },
      +    "day_length": {
      +      "description": "Duration of daylight",
      +      "type": "string"
      +    },
      +    "dusk": {
      +      "description": "Dusk time",
      +      "type": "string"
      +    },
      +    "first_light": {
      +      "description": "First light time",
      +      "type": "string"
      +    },
      +    "golden_hour": {
      +      "description": "Golden hour time",
      +      "type": "string"
      +    },
      +    "last_light": {
      +      "description": "Last light time",
      +      "type": "string"
      +    },
      +    "lat": {
      +      "description": "Latitude of the location",
      +      "type": "number"
      +    },
      +    "lng": {
      +      "description": "Longitude of the location",
      +      "type": "number"
      +    },
      +    "solar_noon": {
      +      "description": "Solar noon time",
      +      "type": "string"
      +    },
      +    "sunrise": {
      +      "description": "Sunrise time",
      +      "type": "string"
      +    },
      +    "sunset": {
      +      "description": "Sunset time",
      +      "type": "string"
      +    },
      +    "timezone": {
      +      "description": "Timezone identifier",
      +      "type": "string"
      +    },
      +    "utc_offset": {
      +      "description": "UTC offset in hours",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "lat",
      +    "lng",
      +    "date",
      +    "sunrise",
      +    "sunset",
      +    "first_light",
      +    "last_light",
      +    "dawn",
      +    "dusk",
      +    "solar_noon",
      +    "golden_hour",
      +    "day_length",
      +    "timezone",
      +    "utc_offset"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "lat": 40.7128,
      +    "lng": -74.006
      +  },
      +  {
      +    "lat": 51.5074,
      +    "lng": -0.1278
      +  }
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint false, so the safety profile is covered. The description adds value by specifying the output includes all listed times and that they are in the location's local timezone, which is a useful behavioral detail beyond what annotations provide.

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 a single, well-structured sentence that immediately lists the outputs and the input requirement. Every word contributes to understanding, with no fluff or repetition. It is concise and front-loaded with the core functionality.

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?

The tool is simple with two fully described parameters and an output schema, so the description does not need to explain return values. The description covers the essential context: what data is returned, for what location, and in what timezone. Combined with the annotations and schema, it is fully complete for an agent to select and invoke correctly.

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?

The input schema has 100% coverage for the two parameters (lat and lng) with descriptions and examples. The description only repeats 'given latitude and longitude' without adding new meaning or clarifying format beyond the schema, so the baseline score of 3 applies.

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

Purpose5/5

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

The description clearly states the tool 'Get today's sunrise, sunset, dawn, dusk, solar noon, golden hour, and day length for a given latitude and longitude.' This is a specific verb (Get) with a specific resource (times for a location), and the inclusion of 'today's' differentiates it from the sibling tool get_times_date, which likely handles other dates.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context: it is for getting today's times at a specific latitude/longitude, and returns local timezone times. However, it does not explicitly mention when not to use this tool or suggest alternatives like get_times_date for other dates. Thus, it has clear context but no exclusions or alternative references.

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.