Skip to main content
Glama

sun-position

Sun position. Any latitude and longitude in, a deterministic NOAA solar card out: sunrise, sunset, and solar noon, the morning and evening golden hour windows, civil dawn and dusk, day length, and the polar day and night states, rendered in the caller's UTC offset for any date from 1970 to 2099. Price: $0.02 per call, paid in USDC on Base mainnet over x402; an unpaid call answers HTTP 402 with the exact machine-readable payment terms.

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-position"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesThe latitude, a number between -90 and 90, e.g. 39.74.
lonYesThe longitude, a number between -180 and 180, east positive, e.g. -104.99.
dateNoOptional calendar date as YYYY-MM-DD between 1970-01-01 and 2099-12-31 (default: today UTC).
offsetNoOptional UTC offset in hours between -12 and 14, fractional allowed, e.g. -7 or 5.5, for the rendered clock (default 0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full load and does it well: it discloses determinism, the supported date window, the timezone-rendering behavior, the exact price ($0.02 in USDC on Base mainnet via x402), and the failure mode for unpaid calls (HTTP 402 with machine-readable terms). Those are precisely the traits an agent cannot get from structured fields here.

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 sentences, front-loaded with the capability, then the commercial terms. The output enumeration is dense but every item earns its place by defining the response shape. The payment sentence is long but carries distinct, necessary information.

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?

No annotations and no output schema exist, so the description must cover behavior, limits, cost, and returns — and it does all four. An agent knows what inputs are valid, what comes back, and what happens on an unpaid call, so nothing needed to invoke 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%, so lat, lon, date, and offset are already fully documented with ranges and examples. The description only restates the latitude/longitude input and the 1970–2099 / UTC-offset constraints, adding no meaning beyond the schema. Baseline 3 is appropriate.

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 uses a concrete verb+resource framing ('Any latitude and longitude in, a deterministic NOAA solar card out') and then enumerates exactly what the card contains — sunrise, sunset, solar noon, golden hour windows, civil dawn/dusk, day length, polar day/night. That output list alone separates it from every listed sibling (fee snapshots, calendars, dst-state, agent-time) without needing a named alternative.

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?

Scope boundaries are explicit: any lat/lon, any date from 1970 to 2099, rendered in the caller's UTC offset. That tells an agent when the tool applies and when it doesn't (out-of-range dates). It stops short of naming any alternative or saying what to do when the request falls outside those bounds, so it isn't a full when/when-not statement.

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