Skip to main content
Glama

sun_position

Read-only

Computes solar compass direction, elevation, and shadow direction/length for a place and time to verify whether a photo or video’s claimed time matches its shadows.

Instructions

Compute where the sun was at a place and time: compass direction, height above the horizon, and the direction and relative length of shadows. Use to check a claimed time of a photo or video against its shadows.

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>",
      "time": "<time>"
    },
    "name": "sun_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeYesISO time with UTC offset, e.g. 2026-11-16T10:30+05:30
latitudeYesDecimal degrees, north positive
longitudeYesDecimal degrees, east positive

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe, side-effect-free read, so the bar is lower. The description adds that it reconstructs past positions and what quantities come back, but says nothing about precision, edge cases (polar day/night), or units for shadow length.

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 sentences, zero filler, with the computed outputs front-loaded before the use case. Every clause carries information an agent needs.

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 three required, fully documented parameters and no output schema, the description usefully enumerates the return values and gives a motivating scenario. Minor gaps remain around precision and degenerate geographic cases, but nothing essential to calling it correctly is missing.

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% and the schema already documents the ISO time format with UTC offset and the sign conventions for latitude/longitude. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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 ("Compute where the sun was at a place and time") and enumerates the outputs: compass direction, height above horizon, shadow direction and relative length. It does not name the closely related sibling shadow_times, so the agent must infer the split from the use-case sentence rather than an explicit contrast.

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?

Gives a concrete when-to-use context: verifying a claimed time of a photo or video against its shadows. There are no exclusions or named alternatives (e.g. shadow_times), so the agent gets clear positive guidance but no routing rules.

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