Skip to main content
Glama

geo_sun

Read-only

Sunrise and sunset times — Sunrise, sunset, solar noon, civil dawn and dusk, and day length for any location and date (up to 14 days), computed astronomically. Accepts coordinates or a place name. Times are UTC. Price: $0.002 USDC (Base, via 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": "geo_sun"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYeslatitude (or use place)
lonYeslongitude
dateNooptional YYYY-MM-DD (default today)
daysNooptional 1-14 (default 1)
placeNooptional place name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"optional YYYY-MM-DD"New value: +"optional YYYY-MM-DD (default today)"
    • addedInput schema / properties / days
      Added value: +{
      +  "description": "optional 1-14 (default 1)",
      +  "type": "string"
      +}
    • changedInput schema / properties / lat / description
      Previous value: -"latitude (alternative)"New value: +"latitude (or use place)"
    • changedInput schema / properties / lon / description
      Previous value: -"longitude (alternative)"New value: +"longitude"
    • changedInput schema / properties / place / description
      Previous value: -"city or place name"New value: +"optional place name"
    • changedInput schema / required
      Previous value: -[
      -  "place",
      -  "lat",
      -  "lon"
      -]New value: +[
      +  "lat",
      +  "lon"
      +]
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint true, destructiveHint false, openWorldHint true), so the description's real contribution is the added context: UTC output, a 14-day cap, astronomical computation, and a paid call at $0.002 USDC via x402. The paid invocation is material information an agent needs before calling and would not learn from annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact sentences, front-loaded with what the tool returns, then inputs, then output convention and price. Nothing is padded and no sentence restates the tool name.

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 carries the burden of describing returns and does so by enumerating the fields and specifying UTC. Minor gaps remain — no note on error behavior for out-of-range dates or how the paid flow completes — but the essentials for correct invocation are present.

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 the baseline is 3, but the description adds value by resolving a schema ambiguity: required lat/lon alongside an optional 'place' is clarified as 'coordinates or a place name'. It also restates the 1-14 day range in prose, reinforcing the constraint.

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 the exact resource and its full output set — sunrise, sunset, solar noon, civil dawn and dusk, day length — plus the scope ('any location and date (up to 14 days)') and the computation basis. No sibling in the catalog returns astronomical times, so the identity is unambiguous without needing to name an alternative.

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?

Input modes are implied ('Accepts coordinates or a place name') and the 14-day horizon sets a boundary, but there is no explicit when-to-use or when-not guidance and no named alternative for related needs. Adequate for a niche single-purpose tool, but the agent is inferring usage rather than being told.

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