Skip to main content
Glama
tumuml28

NWS Weather MCP Sample

by tumuml28

get_alerts

Retrieve active National Weather Service alerts for any US state by providing its two-letter state code. Submit a state code to see current weather warnings and advisories in that state.

Instructions

Get active National Weather Service alerts for a US state.

Args: state: Two-letter US state code (e.g. CA, NY, TX).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It's a read-only query tool, and the description does communicate this is a retrieval operation ('Get active... alerts'). However, it doesn't disclose what NWS data is included, whether alerts are current-hour only, response format, or any rate-limit considerations. Adequate but minimal behavioral disclosure.

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 description is two lines with a docstring-style format including an Args section. Every sentence earns its place: purpose statement plus parameter explanation with examples. No wasted words. The formatting is clean and front-loaded.

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 single-parameter read tool with an output schema present, this description is reasonably complete. The state param is documented with examples, the purpose is clear, and output schema handles return values. Slight gap: no mention of what alert types/categories are returned or how to handle states without active alerts, but these are minor for a simple tool.

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?

The input schema has 0% description coverage, so the description must compensate. It does explain the 'state' parameter as 'Two-letter US state code (e.g. CA, NY, TX)', which adds format and examples beyond the schema's bare 'State' title. However, 'state' is a simple self-explanatory single param, so the added value is modest.

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 clearly states the verb (Get) + resource (active National Weather Service alerts) + scope (for a US state). It distinguishes from the sibling tool get_forecast since it specifies alerts rather than forecast data. Could improve by explicitly contrasting with get_forecast.

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 implies usage via 'active' alerts for a US state, but doesn't explicitly state when to use this versus get_forecast. It also doesn't mention any prerequisites, limitations, or what 'active' means (excludes expired/historical alerts). Basic context present, but no alternatives or exclusions named.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tumuml28/McpWeatherSample'

If you have feedback or need assistance with the MCP directory API, please join our Discord server