Skip to main content
Glama
meteo-swiss-mcp

meteo-swiss-mcp

by cuolm

astronomy_sun

Read-only

Get sunrise, sunset, and civil twilight start/end times for a Swiss location on a given date to answer daylight and darkness questions.

Instructions

        Get when the Sun rises and sets at a place on a day, and when civil twilight begins and ends.

        Use this for "when does the sun rise tomorrow" or "until when is it light tonight". Civil
        twilight is the light before sunrise and after sunset; outside it, artificial light is
        normally needed outdoors. The times are for a level horizon, so in a valley the Sun
        appears later behind the mountains.

        Args:
            location (str): Name of a place in Switzerland, e.g. "Zürich".
            date (str): The day, e.g. "2026-09-23".

        Returns:
            dict: the place, the date, civil twilight begin, sunrise, sunset and civil twilight end.

        Examples:
            astronomy_sun("Zürich", "2026-09-23")
        

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": {
      "location": "<location>",
      "date": "<date>"
    },
    "name": "astronomy_sun"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
nearNoOnly when several places share the name: a village next to the place the user means. For "the Blausee near Bettmeralp" use location "Blausee" and near "Bettmeralp". Leave it out otherwise.
locationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the description's job is to add interpretation context, which it does: times assume a level horizon and in a valley the Sun appears later behind mountains. That is genuinely useful caveat information an agent would otherwise get wrong. It does not state the timezone of returned times, which is a notable omission for a time-of-day tool.

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 core purpose, then usage, caveats, and args in a predictable order. The Args/Returns/Examples block partially restates schema types and an example the agent could infer, so it is slightly longer than necessary but nothing is confusing or padded with filler.

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 correctly names the returned fields (place, date, civil twilight begin, sunrise, sunset, civil twilight end), and it covers horizon caveats and geography. Remaining gaps are the omitted near parameter and the timezone convention for returned times, both minor for a read-only lookup.

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 description coverage is only 33%, so the description must carry weight, and it does for two of three parameters: location is constrained to 'a place in Switzerland' with a concrete example, and date is illustrated in ISO format. It never mentions the third parameter, near, though the schema does document it, so coverage is adequate but not complete.

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 first sentence gives a specific verb plus resource and its exact scope: sunrise/sunset times and civil twilight start/end at a place on a day. That resource (astronomical event times) is clearly separable from the forecast_* and measurements_* siblings, which return forecast metrics rather than event times.

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?

It gives concrete user phrasings that select this tool ('when does the sun rise tomorrow', 'until when is it light tonight') and defines civil twilight with a practical rule (artificial light needed outdoors outside it). It stops short of naming an alternative tool or an explicit when-not-to-use case, so it lands at clear-context rather than full routing.

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