Skip to main content
Glama
Weather MCP Server

Weather MCP Server

by shayrylmae

get_weather_alerts

Checks current conditions for weather warnings and alerts, including extreme temperatures, high winds, heavy precipitation, and thunderstorms, using a city name or latitude/longitude.

Instructions

Check for weather warnings and alerts based on current conditions. Detects extreme temperatures, high winds, heavy precipitation, and severe weather like thunderstorms. 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_weather_alerts"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity name. Required if latitude/longitude not provided.
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

B3.2/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. It usefully reveals that alerts are derived by detecting conditions ('Detects extreme temperatures...'), implying computed thresholds rather than a pass-through official alert feed, but it says nothing about return format, severity levels, whether an empty result is possible, or any rate/auth constraints.

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?

Three sentences, front-loaded with the purpose and followed by the detection scope and input modes. No filler; the only minor inefficiency is that the input-mode sentence largely restates what the schema already declares.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter, fully documented, read-only lookup tool this is close to adequate, but with no output schema the description should say what an alert response looks like (list of alerts? severity? empty case?). That gap is the main thing an agent would still have to discover by calling it.

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 four parameters including their conditional requirements. The description reinforces the city-OR-lat/long alternative, which adds a small amount of routing clarity but no syntax, format, or precedence detail beyond 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 description states a specific verb and resource ('Check for weather warnings and alerts') and enumerates the hazard classes it covers (extreme temperatures, high winds, heavy precipitation, thunderstorms). It is distinguishable from the weather-fetching siblings by being alert-oriented, though it never names a sibling or explicitly contrasts itself with get_current_weather or get_weather_forecast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to call this versus the sibling weather tools, nor any prerequisites or exclusions. The closest thing to guidance is 'based on current conditions', which hints at data source but does not tell an agent when this is the right tool to pick.

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