Skip to main content
Glama

Get Sun Position

astro_get_sun_position
Read-onlyIdempotent

Get the sun's position for a date, time, and location: azimuth (degrees clockwise from north as rendered here), altitude above the horizon (degrees), plus approximate declination and right ascension.

Use for: shadow/lighting analysis, solar exposure. Computed locally with suncalc; declination/RA are approximate.

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": "astro_get_sun_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate in YYYY-MM-DD format. Defaults to today.
timeNoTime of day (HH:MM[:SS], interpreted in the local runtime timezone). Defaults to now.
latitudeYesLatitude in decimal degrees (-90 to 90).
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.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description correctly focuses on what they cannot say: the computation is local via suncalc and declination/RA are approximate — a real accuracy caveat for an agent. It does not address timezone edge cases beyond what the schema states.

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 short blocks, front-loaded with the purpose and output list, then use cases and provenance. Minor awkwardness in 'as rendered here' for azimuth, which is vague 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?

With a full schema, an output schema, and rich annotations, the description only needs to supply provenance, output meaning, and accuracy caveats — and it does. Only the missing alternative-tool routing keeps it from being fully complete.

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 description coverage is 100%, so the schema already defines date, time, latitude, longitude format and bounds, and the response_format enum. The description's 'date, time, and location' framing adds nothing beyond the schema; parameter meaning is left entirely to structured fields.

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 resource ('Get the sun's position') and enumerates the returned quantities (azimuth, altitude, declination, right ascension), which distinguishes it from time-of-event siblings such as astro_get_sun_times. It never names a sibling to contrast against, so it stops short of a 5.

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?

'Use for: shadow/lighting analysis, solar exposure' gives positive use cases, but there is no when-not guidance and no routing to alternatives like astro_get_sun_times or astro_get_next_sun_event when the caller wants events rather than a position. Usage is implied rather than delimited.

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.