Skip to main content
Glama

x402_sunapi_get_v1_sun

Retrieve sunrise, sunset, solar noon, day length, and golden hour times for any coordinates and date.

Instructions

sunapi — Sunrise, sunset, solar noon, day length and golden hour for any coordinates/date (sunrise-sunset.org). [GET /v1/sun] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/sun?lat=52.52&lng=13.41&date=2026-06-21

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402_sunapi_get_v1_sun"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: HTTP method (GET), the endpoint path, and the exact cost ($0.005 USDC) across four chain IDs. It does not explain the payment flow, what happens on payment failure, whether calls are idempotent, or how failures surface — gaps the generic restart/operationId schema fields hint at but do not resolve.

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-loaded and dense: capability first, endpoint and price second, example last. Nothing is wasted, though the chain list 'eip155:8453+137+42161+480' is cryptic shorthand and the bracketed route/price block competes with the natural-language purpose sentence.

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?

For a single-endpoint paid GET with no output schema, the description does the important work: it enumerates the returned quantities (sunrise, sunset, solar noon, day length, golden hour) and demonstrates the query shape. The main omission is requiredness of lat/lng, which the schema leaves at zero required fields and the description never corrects.

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 100%, so restart and operationId are already documented; the description's real contribution is naming the actual domain query keys (lat, lng, date) with a concrete value set, which the generic additionalProperties query object cannot convey on its own. It stops short of stating formats, ranges, or which of those keys are mandatory.

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 names a specific verb+resource set — sunrise, sunset, solar noon, day length and golden hour for given coordinates/date — plus the upstream source and the concrete endpoint (GET /v1/sun). An agent can immediately tell this is a solar-ephemeris lookup distinct from any of the unrelated sibling APIs (adsb, airquality, aladhan, etc.).

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?

Usage is implied rather than prescribed: 'for any coordinates/date' plus a worked example URL shows the intended call shape, and the price line signals this is a paid invocation. There is no explicit statement of when to prefer this over alternatives, no prerequisites, and no note that lat/lng are effectively required despite the schema declaring zero required parameters.

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

Deploy Server

Other Tools