Skip to main content
Glama

Forecast

get_forecast
Read-onlyIdempotent

NWS forecast for Crosby, TX: the 7-day day/night forecast (temperatures °F, wind in mph), or upcoming hourly periods if hours is given (1–48, about two days out). For hazards already in effect, use get_alerts first; for flooding, get_river_levels; for Atlantic systems, get_tropical_outlook.

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_forecast"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNoReturn this many upcoming hourly periods instead of the daily forecast.

Output Schema

NameRequiredDescriptionDefault
hourlyNoUpcoming hourly periods (only when `hours` was given).
forecastNo7-day day/night periods (daily mode).
locationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / hours / maximum
      Previous value: -12New value: +48
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "forecast": {
      +      "description": "7-day day/night periods (daily mode).",
      +      "items": {
      +        "description": "An NWS forecast period, passed through (startTime, temperature, shortForecast, windSpeed, probabilityOfPrecipitation, ...) plus computed feelsLike °F where applicable. Full schema: https://crosbynews.com/openapi.json",
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "hourly": {
      +      "description": "Upcoming hourly periods (only when `hours` was given).",
      +      "items": {
      +        "description": "An NWS forecast period, passed through (startTime, temperature, shortForecast, windSpeed, probabilityOfPrecipitation, ...) plus computed feelsLike °F where applicable. Full schema: https://crosbynews.com/openapi.json",
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "location": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "location"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered; the description adds units (°F, mph) and the scope of the hourly window (~two days out). It does not describe the response payload, but an output schema exists, so that omission is acceptable rather than a gap.

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?

Two tightly packed sentences with zero filler: the core behavior and units come first, the sibling routing follows. Every clause carries information an agent would otherwise have to infer.

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

Completeness5/5

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

With one optional parameter, full schema coverage, an output schema, and complete annotations, the remaining burden on the description is mode selection and routing — both fully addressed. Nothing needed to call this correctly is missing.

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 100% and the schema already documents `hours` as returning N upcoming hourly periods, so baseline applies. The description adds genuine meaning beyond the schema by glossing the 1–48 range as 'about two days out' and clarifying that supplying it switches modes rather than augmenting the daily forecast.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (NWS forecast) plus the locale (Crosby, TX), and immediately splits the two modes: 7-day day/night forecast vs. hourly periods when `hours` is supplied. An agent can distinguish it from get_current_conditions or get_radar without opening any schema.

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

Usage Guidelines5/5

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

Explicitly routes to alternatives with conditions: get_alerts for hazards already in effect, get_river_levels for flooding, get_tropical_outlook for Atlantic systems. This is a clear when-not/when-instead instruction set rather than implied usage.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.