Skip to main content
Glama

ScorpTech x402 Tools

Sun Times

sun_times
Read-onlyIdempotent

Sunrise, sunset, solar noon, day length, civil / nautical / astronomical twilight, golden hour and blue hour for any place and date (NOAA solar calculator equations, about a minute of accuracy), with polar day / night handling, observer elevation correction and local times in any IANA zone. Optionally the sun's azimuth and elevation (refraction-corrected) at a given moment. Offline. Returns JSON with: date, tz, solarNoon, sunrise, sunset, dayLengthSeconds, dayLength, state. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/sun-times

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

Input Schema

NameRequiredDescriptionDefault
atNoISO 8601 moment for sun position (azimuth / elevation), or "now"
tzNoIANA time zone for the outputUTC
latYes
lonYes
dateNoLocal date YYYY-MM-DD (default today in tz)
elevationNoObserver height above the horizon in metres (earlier sunrise / later sunset)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: discloses the computational basis (NOAA equations), accuracy (~1 minute), edge-case handling (polar day/night, observer elevation correction), timezone semantics, that it works offline, and a per-call price with payment rails. That is materially more than readOnly/idempotent/openWorld already convey.

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?

Front-loads the capability and output list before operational details, with no filler sentences. The pricing and HTTPS-endpoint sentence is longer than strictly needed for tool selection but is legitimately useful invocation context.

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?

With no output schema, the description enumerates the returned JSON keys (date, tz, solarNoon, sunrise, sunset, dayLengthSeconds, dayLength, state), so an agent knows what to expect. Combined with accuracy, edge-case handling, and pricing disclosure, nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the description compensates for the gap by explaining what `at` is for, that outputs are in any IANA zone, that `date` defaults to local today, and that azimuth/elevation are refraction-corrected. It does not restate numeric bounds, which the schema already handles.

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?

States a specific verb-set and resource: sunrise, sunset, solar noon, day length, twilight phases, golden/blue hour for any place and date, plus optional azimuth/elevation at a moment. The enumerated outputs make it unmistakable what the tool returns, and no sibling in the list overlaps with this domain.

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?

Clearly distinguishes the two usage modes: daily event data (date/tz) versus 'optionally the sun's azimuth and elevation at a given moment' which maps to the `at` parameter. It also names an alternative access path (the HTTPS GET endpoint). It stops short of explicit when-not guidance, but there is no plausible sibling alternative to route away from.

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