Skip to main content
Glama

weather_history

Historical daily weather from the nearest NOAA station to a city, lat/lon or ZIP: temperature, precipitation, snow and wind for up to 62 days. Paid via x402 ($0.003 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_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoLast day YYYY-MM-DD (default today).
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.
startNoFirst day YYYY-MM-DD (default: 13 days before end).
stateNoOptional state or region to disambiguate city, e.g. TX.
countryNoOptional country (ISO code or name) to disambiguate city, e.g. FR.
stationNoGHCN-Daily station id, e.g. USW00094728, instead of a location.

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
Behavior4/5

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

With no annotations provided, the description carries the full burden and does substantial work: it discloses the x402 paid path with price and chains, states that invalid input is rejected without payment, and documents a 3-calls/day free trial with the exact HTTP header and MCP fallback. Gaps remain around failure modes (e.g., what happens when no NOAA station is near the given city) and data latency, so it stops short of a 5.

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?

Purpose and scope are front-loaded in the first sentence, and the payment, error and trial details follow in a logical order. The nested parenthetical around the pricing chains ("$0.003 USDC on Base mainnet (also Polygon...)") is dense and slightly awkward, costing a point.

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 9-parameter, no-annotation, no-output-schema tool, the definition covers the commercial and access model thoroughly and mentions the asOf and source fields an agent will see in the response. It is close to complete, with only station-fallback behavior and response shape left implicit.

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 the schema already documents every parameter including defaults and ranges, making 3 the baseline. The description adds only marginal meaning by presenting city, lat/lon, ZIP and station as alternative location inputs and by noting the 62-day ceiling, which the schema does not state.

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?

The opening clause states a specific verb+resource ("Historical daily weather from the nearest NOAA station") and enumerates the returned measures (temperature, precipitation, snow, wind) plus the 62-day scope. The word "Historical" implicitly separates it from the sibling weather_forecast without needing a schema lookup.

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?

Usage context is implied through the location-input options (city, lat/lon, ZIP, station) and the up-to-62-day window, but the description never says when to reach for this instead of weather_forecast or which of the four location modes to prefer beyond "instead of lat/lon" in the schema. No exclusions or prerequisites for the paid path are spelled out beyond payment mechanics.

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