Skip to main content
Glama

astronomy sun

astronomy_sun
Read-only

Sunrise, sunset, solar noon, day length, civil / nautical / astronomical twilight and golden hour for any place and date in its local time, plus the moon phase, illumination and next full and new moon. Costs $0.002 USDC per call (x402).

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": "astronomy_sun"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYes
lonYes
dateNo
timezoneNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish read-only and open-world behavior, so the safety profile is covered. The description adds a genuinely useful non-annotation behavior: the tool is paid, costing $0.002 USDC per call via x402, which materially affects an agent's decision to call it. It still omits precision/accuracy, error behavior for invalid coordinates, and response format.

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 what the tool returns and ending with the cost, with no filler. The output enumeration is long but each item carries information; the main deduct is that the first sentence is a run-on list rather than a scannable structure.

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 no output schema, the description does the work of enumerating the returned fields, which is exactly what an agent needs to judge relevance. Combined with the pricing note and the open-world annotation, the picture is largely complete; only parameter formats and precision/error behavior remain unstated.

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 0% across four parameters, so the description carries the burden and only partially compensates: 'any place' loosely maps to lat/lon and 'date in its local time' gestures at date and timezone. It never states that lat/lon are decimal degrees, that date is an ISO string, or that timezone is an IANA identifier, leaving real ambiguity.

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?

The description names the exact quantities returned (sunrise, sunset, solar noon, day length, three twilight bands, golden hour, moon phase/illumination/next full and new moon), which is far more specific than the vague name 'astronomy_sun'. It does not explicitly distinguish itself from the ambiguous sibling 'solar', but the enumerated content makes the tool's scope unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no alternative tool is named, despite siblings like 'solar', 'time', and 'weather' that could plausibly overlap. The phrase 'for any place and date' hints at general applicability but gives no routing criteria.

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