Skip to main content
Glama

Get hourly forecast

get_hourly_forecast
Read-onlyIdempotent

Blended hourly forecast: temperature, feels-like, humidity, wind, precipitation probability/amount, conditions, and icon per hour. hourly[0] is the current or next hour; hourly_coverage.first_time says which. Timestamps are UTC ISO 8601; convert to the local timezone before presenting. Ask for the days you need up front -- one call with days: 4 beats four calls. ALWAYS check hourly_coverage before answering about a specific hour: it reports first_time and last_time (the window the rows actually span), sample_interval_hours (past the first day rows are every 2-3h, not every hour), and truncated: true when upstream returned less than you asked for. If the hour the user cares about is after last_time, say the forecast does not reach that far yet rather than answering from the nearest row you do have. For one stretch of time ask for that stretch with hours_from/hours_to: it comes back hour by hour even where the full range would be sampled. Accepts a place name or coordinates. Examples: {"location": "Portland, OR", "days": 2} or {"lat": 41.88, "lon": -87.63, "hours_from": 36, "hours_to": 48}.

Input Schema

NameRequiredDescriptionDefault
latNoLatitude in decimal degrees (-90 to 90). Most tools also accept a `location` place-name string instead of lat/lon.
lonNoLongitude in decimal degrees (-180 to 180). For continental US use negative values (west of the prime meridian).
daysNoDays of hourly data (1-7). Default 2. Widened when hours_to reaches further.
viewNoconcise (default) samples past 24h; detailed adds CAPE, ceiling, UV, gust and thunderstorm probability for 48h.
unitsNoUnits of every value in and out: imperial (default; °F, mph, in) or metric (°C, km/h, mm). si is deprecated and will be removed; use metric.imperial
hours_toNoWindow end, in hours from now, exclusive. 36 to 48 is hours 36-47.
locationNoFree-text place: "City, ST" (e.g. "Portland, OR"), US ZIP, venue/address where enabled, or "lat,lon". Use this OR lat+lon, not both.
hours_fromNoWindow start, in hours from now (0 = the current hour).
detail_levelNoDeprecated alias of view.

Output Schema

NameRequiredDescriptionDefault
unitsYes
widgetNosw-ui-spec widget block rendered by the MCP Apps weather widget (ui://weather-widget/v1/index.html). Additive; safe to ignore.
forecastYes
locationYes
data_statusNoPresent only when the platform reports degraded/outage data sources: overall state, a caveat note, and the affected sources. Absent means no advisory was available -- not a freshness guarantee. See get_platform_status for the full document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Changed4 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / properties / data_status / properties
      Added value: +{}
    • addedOutput schema / properties / forecast / properties
      Added value: +{}
    • addedOutput schema / properties / widget / properties / entries / items / properties / props / properties
      Added value: +{}
  3. Changed2 schema fields changed
    • changedInput schema / properties / location / description
      Previous value: -"Free-text place: city (\"Denver\"), city+state (\"Portland, OR\"), US ZIP, venue/address where enabled, or \"lat,lon\". Use this OR lat+lon, not both."New value: +"Free-text place: \"City, ST\" (e.g. \"Portland, OR\"), US ZIP, venue/address where enabled, or \"lat,lon\". Use this OR lat+lon, not both."
    • changedInput schema / properties / units / description
      Previous value: -"Unit system for all values in the request and response: imperial (°F, mph, inches), metric (°C, km/h, mm), or si (K, m/s, mm). Defaults to imperial."New value: +"Units of every value in and out: imperial (default; °F, mph, in) or metric (°C, km/h, mm). si is deprecated and will be removed; use metric."
  4. Changed3 schema fields changed
    • removedInput schema / properties / detail_level / default
      Removed value: -"standard"
    • changedInput schema / properties / detail_level / description
      Previous value: -"standard: compact hourly data (sampled past 24h). detailed: preserves CAPE, ceiling, UV, gust, thunderstorm probability for the first 48h."New value: +"Deprecated alias of view."
    • addedInput schema / properties / view
      Added value: +{
      +  "description": "concise (default) samples past 24h; detailed adds CAPE, ceiling, UV, gust and thunderstorm probability for 48h.",
      +  "enum": [
      +    "concise",
      +    "detailed"
      +  ],
      +  "type": "string"
      +}
  5. Changed2 schema fields changed
    • changedInput schema / properties / location / description
      Previous value: -"Free-text place: city (\"Denver\"), city+state (\"Portland, OR\"), US ZIP (\"50219\"), or \"lat,lon\" (\"39.74,-104.99\"). Provide either this OR explicit lat+lon, not both."New value: +"Free-text place: city (\"Denver\"), city+state (\"Portland, OR\"), US ZIP, venue/address where enabled, or \"lat,lon\". Use this OR lat+lon, not both."
    • addedOutput schema / properties / location / properties / matched_via
      Added value: +{
      +  "enum": [
      +    "autosuggest",
      +    "fuzzy"
      +  ],
      +  "type": "string"
      +}
  6. Changed3 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"Days of hourly data (1-7). Default 2 (48 hours)."New value: +"Days of hourly data (1-7). Default 2. Widened when hours_to reaches further."
    • addedInput schema / properties / hours_from
      Added value: +{
      +  "description": "Window start, in hours from now (0 = the current hour).",
      +  "maximum": 168,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / hours_to
      Added value: +{
      +  "description": "Window end, in hours from now, exclusive. 36 to 48 is hours 36-47.",
      +  "maximum": 168,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  7. Changed1 schema field changed
    • addedOutput schema / properties / data_status
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present only when the platform reports degraded/outage data sources: overall state, a caveat note, and the affected sources. Absent means no advisory was available -- not a freshness guarantee. See get_platform_status for the full document.",
      +  "type": "object"
      +}
  8. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent annotations: it discloses that rows beyond the first day are sampled every 2-3h, that hourly_coverage exposes first_time/last_time/sample_interval_hours/truncated, that timestamps are UTC, and that out-of-window hours should be refused rather than substituted. This is the kind of behavior an agent could not learn from the schema alone.

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-loaded with the payload summary, then escalating operational rules, ending with examples. Fairly long at roughly 180 words, and the coverage/truncation guidance repeats the same idea across two sentences, but nearly every clause is actionable rather than filler.

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?

For a 9-parameter, fully-annotated, output-schema-backed read tool, nothing an agent needs is missing: coverage semantics, sampling caveats, timezone handling, and call-shaping advice are all present, and return-value shape is left to the output schema.

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; the description adds real meaning on top by explaining that hours_from/hours_to returns a dense hour-by-hour window even where the full range would be sampled, and by showing worked examples for both location and lat/lon invocation styles.

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?

Opens with a specific verb+resource+field list: "Blended hourly forecast: temperature, feels-like, humidity, wind, precipitation..." and clarifies row zero semantics ("hourly[0] is the current or next hour"). The hourly granularity and 'blended' framing distinguish it from sibling daily/current tools like get_forecast and get_current_conditions.

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 concrete when-to-use rules: batch days up front ("one call with days: 4 beats four calls"), and use hours_from/hours_to for a contiguous stretch. It does not explicitly name sibling tools such as get_forecast or get_current_conditions, so the agent must infer the boundary itself.

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.