Skip to main content
Glama

Forecast for a time period

get_forecast
Read-onlyIdempotent

The forecast for a stretch of time: "What's Saturday looking like?", "What will conditions be between 6 PM and midnight?", "this weekend". Give start_time (and optionally end_time or duration_hours). Returns a one-line summary, the temperature range, rain, wind, any conditions worth acting on, and the hourly and daily rows. The forecast reaches about seven days. Beyond that it says so and does not guess.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitsNoimperial (F, mph, inches) or metric (C, km/h, mm). Defaults to imperial in the United States and metric elsewhere.
end_timeNoWhen the period ends, in the same formats as start_time. "midnight" means the next midnight.
latitudeNoLatitude in degrees. Use with longitude instead of location.
locationNoA place name such as "Glenbeulah, WI" or "Greenbush, Wisconsin", or coordinates as "43.79,-88.05". Add the state or country for small towns, because a bare "Greenbush" matches several places.
longitudeNoLongitude in degrees, west negative. Use with latitude instead of location.
start_timeNoWhen the period starts. Defaults to now. An ISO 8601 time such as 2026-10-03T18:00:00-05:00 (read in the place's own time zone when it has no offset), or plain words: "now", "tonight", "tomorrow morning", "Saturday", "6 PM", "between 6 PM and midnight". A bare hour with no AM or PM is refused rather than guessed.
duration_hoursNoInstead of end_time: how many hours to cover.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), and the description still adds real behavioral context: the ~7-day horizon, that the tool admits rather than guesses beyond it, and that a bare hour without AM/PM is refused instead of inferred. This is exactly the kind of guardrail behavior an agent needs.

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?

Front-loads the purpose with illustrative phrasing, then moves to parameters, return shape, and the horizon limit. The example phrases cost a little space but earn it by clarifying accepted time formats; overall tight and well-ordered.

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?

No output schema exists, so the description carries the burden of describing returns and it does so (one-line summary, temperature range, rain, wind, actionable conditions, hourly and daily rows). Combined with the horizon caveat and time-format guidance, an agent has everything needed to call it correctly.

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%, so the baseline is 3, but the description adds value by specifying the intended invocation pattern (start_time required in practice, end_time or duration_hours as optional alternatives). It complements rather than repeats the rich per-parameter schema text.

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?

States a specific verb+resource (forecast over a time period) and illustrates scope with concrete query examples ('this weekend', 'between 6 PM and midnight'). It implies a distinction from the current-conditions sibling get_weather via the time-range framing, but never names an alternative explicitly.

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?

Gives clear context for invocation ('What's Saturday looking like?', 'this weekend') and tells the agent the canonical call shape: give start_time, optionally end_time or duration_hours. It stops short of naming when to prefer sibling tools like find_best_weather_window or get_trail_weather.

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.

Resources