Skip to main content
Glama
Weather MCP Server

Weather MCP Server

by shayrylmae

get_hourly_weather

Retrieve hour-by-hour weather forecasts for up to 7 days by city or coordinates, including temperature, precipitation, wind, and conditions to plan daily activities and track changes.

Instructions

Get hour-by-hour weather forecast for up to 7 days (168 hours). Returns detailed hourly predictions including temperature, feels-like temperature, humidity, precipitation, weather conditions, wind speed, direction, and gusts. Perfect for planning daily activities or tracking weather changes throughout the day. Accepts either city name OR latitude/longitude coordinates.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_hourly_weather"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity name. Required if latitude/longitude not provided.
hoursNoNumber of hours to forecast (1-168, default: 24)
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does cover the forecast horizon cap and the fields returned. However, it omits practical behavioral details an agent would want: the units used (metric vs imperial), timezone of the hourly timestamps, and what happens when a city name is ambiguous or unmatched. For a read-only weather lookup these are moderate rather than severe gaps.

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?

The definition is four sentences and front-loads the core purpose and limit before enumerating return fields. The 'Perfect for planning daily activities' sentence is the weakest link and could be cut without loss, but nothing is confusing or buried.

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?

There is no output schema for a five-parameter tool, so the description must describe returns, and it does so by enumerating temperature, feels-like, humidity, precipitation, conditions, wind speed/direction/gusts. Combined with the disclosed 168-hour ceiling, this is nearly sufficient; missing units and timestamp timezone are the remaining gaps.

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 all five parameters (city, country, latitude, longitude, hours) are already documented with their constraints and the city-OR-coordinates requirement. The description's closing sentence restates that mutual exclusivity, adding confirmation but no new meaning, so the baseline 3 applies.

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 description uses a specific verb and resource ('Get hour-by-hour weather forecast') and pins down the granularity and horizon (up to 7 days / 168 hours). That hour-by-hour framing implicitly separates it from a daily-granularity sibling like get_weather_forecast, but no sibling is ever named, so the agent must infer the distinction from the name alone.

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?

'Perfect for planning daily activities or tracking weather changes throughout the day' gives loose usage context, but it is marketing framing rather than routing logic. There is no explicit instruction such as 'use get_current_weather for right now' or 'use get_weather_forecast for daily summaries,' and no stated exclusions.

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