Skip to main content
Glama

weather_forecast

Weather forecast by city name, lat/lon or US ZIP: current conditions plus a 1 to 7 day forecast with highs, lows, rain chance and wind. NOAA in the U.S., MET Norway elsewhere. Paid via x402 ($0.002 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Includes asOf and source. Invalid input is rejected without payment. Free trial: 3 unpaid calls/day per IP on this tool (HTTP: header X-Free-Trial: 1; MCP: automatic when no payment is sent).

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": "weather_forecast"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude in decimal degrees (with lon).
lonNoLongitude in decimal degrees (with lat).
zipNoUS ZIP code instead of lat/lon.
cityNoCity name, optionally with state or country, e.g. "Austin, TX", "Lyon, France" or "Tokyo" (34,000 cities). Use instead of lat/lon.
daysNoForecast days (default 3).
hoursNoAlso return this many hourly steps (default 0).
stateNoOptional state or region to disambiguate city, e.g. TX.
countryNoOptional country (ISO code or name) to disambiguate city, e.g. FR.
timezoneNoIANA timezone for day boundaries outside the U.S. (default UTC).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / city
      Added value: +{
      +  "description": "City name, optionally with state or country, e.g. \"Austin, TX\", \"Lyon, France\" or \"Tokyo\" (34,000 cities). Use instead of lat/lon.",
      +  "type": "string"
      +}
    • addedInput schema / properties / country
      Added value: +{
      +  "description": "Optional country (ISO code or name) to disambiguate city, e.g. FR.",
      +  "type": "string"
      +}
    • addedInput schema / properties / state
      Added value: +{
      +  "description": "Optional state or region to disambiguate city, e.g. TX.",
      +  "type": "string"
      +}
  2. Added

TDQS

A3.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses cost ($0.002 USDC on Base mainnet, also Polygon/Arbitrum/Solana), that payment is per tools/call, that invalid input is rejected without charge, the free-trial quota (3 unpaid calls/day per IP) and how it is triggered on HTTP vs MCP. It also names the upstream data sources (NOAA in the U.S., MET Norway elsewhere) and the returned metadata fields asOf and source.

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 core capability is front-loaded in the first sentence, followed by sourcing and then the commercial terms. It is dense but nearly every clause carries information; the only cost is the awkwardly nested parenthetical about chains and payment modes, which slows parsing.

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 nine-parameter, zero-required, no-output-schema tool with no annotations, the description covers the essential unknowns: cost, payment path, free trial, failure handling on bad input, data providers and returned metadata. It does not explain the hours parameter's effect on output size or timezone day-boundary behavior, but the schema handles both adequately.

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?

Schema description coverage is 100%, so every one of the nine parameters is already documented in the schema, including the city examples and 'use instead of lat/lon' guidance. The description restates the input modes and the 1-7 day range without adding syntax or edge-case meaning, so the baseline of 3 applies.

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 names a specific resource and scope: current conditions plus a 1-7 day forecast with highs, lows, rain chance and wind, plus the input modes (city, lat/lon, US ZIP). It does not explicitly contrast with the sibling weather_history, so an agent must infer the forecast/history split from the tool names alone.

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?

It explains which input modes to use (city vs lat/lon vs ZIP) and the payment/trial path, but gives no explicit when-to-use-this-vs-alternatives guidance. Nothing tells the agent when to prefer this over weather_history for past data, and there is no statement about required vs alternative parameter combinations beyond the schema.

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