Skip to main content
Glama

Kildeverk

Sunrise, sunset and the moon

sun_and_moon
Read-onlyIdempotent

When the sun rises and sets at a place on a date, in which direction, how high it gets at noon and how long the day is (or whether it is polar night or midnight sun), with moonrise, moonset and the moon's phase. From MET Norway.

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

Input Schema

NameRequiredDescriptionDefault
latYesLatitude in decimal degrees.
lonYesLongitude in decimal degrees.
dateNoDefault today.
utc_offsetNoOffset for the times: '+01:00' Norwegian winter time, '+02:00' summer time.+01:00

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, but the description adds real value: it discloses edge-case behavior (polar night / midnight sun instead of a normal sunrise) and names the upstream data source. It does not cover units or whether times are local vs UTC, which the utc_offset parameter implies but the prose never states.

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?

A single dense sentence plus a short attribution, front-loaded with the primary output (sunrise/sunset) and ordered by importance. The output list reads as a run-on clause chain, but no sentence is wasted.

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 only four fully documented parameters, annotations covering safety, and no output schema, the description does enough: it enumerates return content and flags the polar edge cases. Minor gaps are the local-vs-UTC semantics for returned times and the date default, both of which the schema partially covers.

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 coverage is 100% and every parameter carries its own description (lat/lon ranges, date default, utc_offset pattern and meaning). The description adds nothing parameter-specific, so baseline 3 applies; the polar-night/midnight-sun note hints at high-latitude edge cases but does not explain inputs.

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 enumerates the specific outputs: sunrise/sunset times and directions, solar noon altitude, day length, polar night/midnight sun, moonrise/moonset and lunar phase, plus the data source (MET Norway). An agent can tell exactly what this tool returns without opening the schema.

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 only implied by 'at a place on a date' – there is no explicit when-to-use or when-not guidance, and no mention of how date/utc_offset interact with returned times. Since no sibling tool covers astronomy, the lack of an alternative reference is understandable.

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.