Skip to main content
Glama
meteo-swiss-mcp

meteo-swiss-mcp

by cuolm

forecast_sunshine

Read-only

Retrieve forecast sunshine hours for a Swiss location over a selected period, from one hour to an afternoon, for today or up to eight days ahead.

Instructions

        Get the sunshine hours at a place over a period.

        Use this for "how sunny is it at 15:00" or "how sunny is it this afternoon". Without end
        it returns the one hour starting at start.

        Args:
            location (str): Name of a place in Switzerland, e.g. "Zürich".
            start (str): Start of the period, a full hour, e.g. "2026-09-23T06:00". Today or up to 8 days ahead.
            end (str): Optional. End of the period, a full hour after start, e.g. "2026-09-23T18:00".

        Returns:
            dict: data_from when the forecast point is far away or at a significantly different
                height, the place, the period, the model run and the sunshine hours.

        Examples:
            forecast_sunshine("Zürich", "2026-09-23T15:00")                        # one hour
            forecast_sunshine("Zürich", "2026-09-23T12:00", "2026-09-23T18:00")    # the afternoon
        

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>",
      "start": "<start>"
    },
    "name": "forecast_sunshine"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
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.
startYes
locationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.4.0
    • addedInput schema / properties / end / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / end / default
      Added value: +null
    • removedInput schema / properties / end / type
      Removed value: -"string"
    • changedInput schema / required
      Previous value: -[
      -  "location",
      -  "start",
      -  "end"
      -]New value: +[
      +  "location",
      +  "start"
      +]
  2. Addedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations, it discloses the single-hour default when end is absent, the forecast horizon (today up to 8 days ahead), and the data_from caveat when the forecast point is far or at a different height. That is meaningful operational context not present in structured fields; return format details are only loosely sketched.

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?

Front-loaded one-line purpose, then behavior, then Args/Returns/Examples; each section adds something the schema does not (horizon, default window, ambiguity handling via examples). Examples are compact and directly actionable.

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?

For a four-parameter tool with no output schema, the description explains what comes back (place, period, model run, sunshine hours, data_from) and the key constraints on inputs. Only the disambiguation parameter near is undocumented here, which the schema itself covers adequately.

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 low (25% – only near is documented inline), so the description must carry the load and largely does: it defines location, start, end with format examples, the full-hour requirement, ordering constraint, and the 8-day horizon. The near parameter is left entirely to the schema, a minor gap.

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?

States a specific verb and resource: "Get the sunshine hours at a place over a period." The measured quantity (sunshine hours) distinguishes it cleanly from siblings like forecast_cloud_cover or forecast_rain, though it never names an alternative explicitly.

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?

Gives concrete use-case phrasings ("how sunny is it at 15:00", "how sunny is it this afternoon") and explains the default when end is omitted, which is the main usage fork for this tool. It does not state when to prefer a sibling forecast tool instead, so it stops short of full routing guidance.

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