Skip to main content
Glama

get_forecast

Retrieve weather forecasts for US locations in daily, hourly, or raw gridpoint modes. Supports unit conversion and configurable time periods.

Instructions

Get forecast for a US location.

Use when: "What's the forecast?", "Will it rain?", "Weather this week?"

mode="daily": 12-hour day/night periods with narrative forecasts (default). mode="hourly": hour-by-hour temperature, precip chance, wind. mode="raw": gridpoint time-value series for temperature, dewpoint, wind, precip, sky cover.

days (1-7) controls daily mode. hours (1-48) controls hourly mode. Omit lat/lon to use configured primary location.

Note: the main temperature and wind fields in daily/hourly periods come from NWS pre-formatted data and are always in Fahrenheit/mph. The units parameter affects enriched fields: dewpoint/frost_point, feels_like, pressure, and snow/ice accumulation. Use mode="raw" for full unit-agnostic gridpoint data.

units: "us" or "si" for base system, with optional field overrides: "us,pressure:mb,wind:kt". Fields: temperature (f|c), pressure (inhg|mb), wind (mph|kt|kmh|ms), distance (mi|km), accumulation (in|mm|cm).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latitudeNo
longitudeNo
modeNodaily
daysNo
hoursNo
unitsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations provided, so description fully discloses behavior: explains modes (daily, hourly, raw), default settings, units system, and that main temperature/wind are always in Fahrenheit/mph due to NWS data.

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?

Well-structured with front-loaded purpose and use cases, but somewhat long. Every sentence adds value, so slight deduction for verbosity.

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?

Given 6 parameters, no required fields, multiple modes, and units system, description covers all aspects. Output schema exists, so output format not needed. Complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 0% description coverage; description compensates by explaining each parameter: lat/lon optional, modes, days/hours ranges, and detailed unit overrides. Adds significant meaning.

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?

Clearly states it gets a forecast for US locations, uses specific verb and resource. Differentiates from sibling tools like get_conditions and get_alerts by specifying 'forecast'.

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

Usage Guidelines4/5

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

Provides example queries for when to use ('What's the forecast?', 'Will it rain?'). Does not explicitly state when not to use or compare to alternatives, but context signals imply differentiation.

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/thornjad/stormscope'

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