Skip to main content
Glama

Sunrise, sunset, solar noon (paid: 0.001 RLUSD / 0.001 USDC on Base / 0.001 RLUSD on Base via x402)

solar_times
Read-only

Paid: 0.001 RLUSD per call via x402 on XRPL mainnet (xrpl:0), or 0.001 USDC on Base (eip155:8453). Pay per call, solves one question: When are sunrise, solar noon and sunset at this point on this date? Sunrise, solar noon and sunset as explicit UTC instants, computed locally from the published NOAA/GML solar-calculator equations (after Meeus), with stated accuracy (about 1 minute within 72 degrees latitude, up to 10 minutes beyond). A calculation, not an observation; not NOAA data and not endorsed by NOAA. Without payment this returns isError with the x402 PaymentRequired object (fresh invoiceId); retry with the signed payload in _meta["x402/payment"] or the payment_signature argument. Unpaid calls cost nothing.

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>",
      "date": "<date>"
    },
    "name": "solar_times"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesdecimal degrees, -90..90
lonYesdecimal degrees, -180..180, east positive
dateYesYYYY-MM-DD (local mean solar date at the longitude)
payment_signatureNoOptional. Base64 x402 PAYMENT-SIGNATURE value (signed RLUSD or USDC PaymentPayload) for hosts that cannot set _meta["x402/payment"]. Omit on the first call to receive the payment requirements.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, non-destructive), but the description adds substantial context they cannot: the price and payment rails, the error shape on unpaid calls, the fresh invoiceId per call (which explains idempotentHint=false), and the stated accuracy bounds (~1 min within 72 degrees latitude, up to 10 min beyond). The provenance disclosure (NOAA/GML equations after Meeus, not NOAA-endorsed) is exactly the kind of behavior an agent needs. It stops short of describing output field structure, but no output schema exists and UTC instants are already named.

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 with the cost and rails, then the question answered, then provenance and accuracy, then the payment failure path — a sensible order for a paid tool. Minor waste: 'Sunrise, solar noon and sunset' is restated in consecutive sentences, and the payment rail information is duplicated between title and description.

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?

For a paid, open-world calculation tool with no output schema, the description covers cost, rails, retry mechanics, error behavior, computation source, and accuracy limits — everything an agent needs to call it correctly and interpret the result. Nothing material 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 payment_signature are already documented, including range and date format. The description only reinforces the payment_signature fallback path and adds no syntax or interpretation detail 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?

Names a specific resource (sunrise, solar noon, sunset) and the exact scope (this point, this date), and explicitly frames the output as UTC instants. The line 'A calculation, not an observation; not NOAA data' separates it from observation-style siblings such as get_current_conditions without requiring the agent to inspect another schema.

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?

States the single question the tool answers and gives the invocation protocol: first call without payment returns PaymentRequired, then retry with the signed payload in _meta["x402/payment"] or payment_signature. It does not name a non-paid alternative for solar times, so the when-not guidance is only implicit.

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