Skip to main content
Glama
Weather MCP Server

Weather MCP Server

by shayrylmae

get_historical_weather

Retrieve historical weather statistics for a specific month across multiple years, including temperatures, precipitation, and wind speed. Supports city or coordinates, up to 10 years back.

Instructions

Retrieve historical weather data for a specific month over multiple years. Returns monthly statistics including average, max, and min temperatures, total precipitation, and average wind speed. Default retrieves data for the past year, up to 10 years available. Accepts either city name OR latitude/longitude coordinates.

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": {
      "month": "<month>"
    },
    "name": "get_historical_weather"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity name. Required if latitude/longitude not provided.
monthYesMonth number (1-12, where 1=January, 12=December)
countryNoOptional country code
latitudeNoLatitude coordinate. Must be provided with longitude if city is not specified.
longitudeNoLongitude coordinate. Must be provided with latitude if city is not specified.
years_backNoNumber of years back to retrieve (1-10, default: 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it does well to enumerate the returned statistics (avg/max/min temperature, precipitation, wind speed) and the 1-to-10-year window. It omits meaningful behavioral facts such as the unit system returned, what happens if both city and coordinates are supplied, and error behavior for unresolvable locations.

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 short sentences, front-loaded with what the tool returns, followed by limits and accepted location forms. Every sentence contributes new information and nothing is padded.

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 and no annotations, the description steps up by describing the returned statistics and the data horizon, which is the core of what an agent needs. The remaining gap is the unit convention and handling of ambiguous location input, which matters for a weather tool but is a narrower omission.

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 100%, so the schema already documents all six parameters and the baseline is 3. The description restates the city-OR-coordinate choice and the years_back default, adding little meaning beyond the field-level descriptions in the schema.

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 first sentence gives a specific verb (retrieve) plus resource (historical weather data) and scope (single month across multiple years), which separates it from get_current_weather and get_weather_forecast by implication. It never names a sibling explicitly, so the differentiation is inferred from the word "historical" rather than stated.

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?

The description discloses operational limits (default one year, up to 10) and the either/or location input, which implies when the tool is appropriate. However, it never tells the agent when to prefer this over get_weather_forecast or get_hourly_weather, and no exclusions or prerequisites are stated.

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