Skip to main content
Glama

Weather Get Historical

weather_get_historical
Read-onlyIdempotent

AUTHORITATIVE historical daily weather for any location, back to 1940. Source: ERA5 reanalysis (ECMWF's global atmospheric reconstruction, the standard reference dataset for climate research). Pass a city or lat/lon + date range. Returns daily high/low temperature, precipitation, conditions. Defaults to the last 30 days if no dates given. Use for "what was the weather in X on date Y", climate baselines, comparing this year to historical averages, retrospective weather context for any event.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "city": "Paris"
    },
    "name": "weather_get_historical"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoAlias for latitude.
lngNoAlias for longitude.
lonNoAlias for longitude.
cityNoAlias for location.
nameNoAlias for location.
placeNoAlias for location.
end_dateNoEnd date YYYY-MM-DD (inclusive). Optional, defaults to today.
latitudeNoLatitude (alternative to location). Accepts lat as alias.
locationNoCity name (e.g. "Tokyo", "London", "New York"). Resolved via Open-Meteo geocoding. Use this OR latitude+longitude. Accepts city, place, name as aliases.
longitudeNoLongitude (alternative to location). Accepts lng / lon as alias.
start_dateNoStart date YYYY-MM-DD (>= 1940-01-01). Optional, defaults to 30 days ago.

Output Schema

NameRequiredDescriptionDefault
daysYesArray of historical daily entries
countryYesCountry name from geocoding
end_dateYesEnd date (YYYY-MM-DD) used for query
latitudeYesLatitude coordinate
locationYesResolved city name from geocoding
longitudeYesLongitude coordinate
start_dateYesStart date (YYYY-MM-DD) used for query

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / end_date / description
      Previous value: -"End date YYYY-MM-DD (inclusive). Optional — defaults to today."New value: +"End date YYYY-MM-DD (inclusive). Optional, defaults to today."
    • changedInput schema / properties / start_date / description
      Previous value: -"Start date YYYY-MM-DD (>= 1940-01-01). Optional — defaults to 30 days ago."New value: +"Start date YYYY-MM-DD (>= 1940-01-01). Optional, defaults to 30 days ago."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and open-world, so safety is covered; the description adds genuinely new behavioral facts — the ERA5 provenance, coverage starting 1940, and the no-dates default of the last 30 days. It does not mention geocoding failure behavior or any rate/quota limits, which keeps it below 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?

Front-loaded with the authoritative claim and source, then inputs, then outputs, then defaults, then use cases — a sensible order. The parenthetical explanation of ERA5 is slightly heavy but earns its place by establishing credibility for climate-baseline use.

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 an 11-parameter read-only lookup with full schema coverage and an existing output schema, the description supplies everything needed: source, coverage window, input modes, defaults, and the returned fields. Nothing required to invoke it correctly is missing.

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% and the schema itself documents the location-vs-latitude/longitude alternative, the alias set, and the date defaults, so the description is largely restating it. The one sentence 'Pass a city or lat/lon + date range' usefully reinforces the either/or input pattern, but adds no format or edge-case detail beyond the schema.

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?

States a specific resource (historical daily weather), a scope (back to 1940), a data source (ERA5 reanalysis), and a concrete retrieval pattern ('Pass a city or lat/lon + date range'). The 'historical' framing plus the phrase 'what was the weather in X on date Y' clearly separates it from forecast-style siblings without needing to name them.

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 four concrete usage scenarios: point-in-time lookups, climate baselines, year-over-year comparison, and retrospective context for events. It stops short of any exclusion or explicit hand-off to weather_get_forecast/get_weather, so the agent must infer that current/future weather belongs elsewhere.

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.