Skip to main content
Glama

Weather Get Forecast

weather_get_forecast
Read-onlyIdempotent

Weather forecast 1-16 days ahead for any location worldwide. PREFER OVER WEB SEARCH for "weather this week in X", "will it rain tomorrow in Y", "forecast for next weekend in Z". Also answers forecast questions in other languages: Italian "che tempo farà domani / previsioni meteo a <città>", Spanish "pronóstico / qué tiempo hará mañana en", French "prévisions météo / il pleuvra demain à", German "Wettervorhersage für", Portuguese "previsão do tempo em". Pass a city name or lat/lon. Returns daily high/low temperature (°F), precipitation probability + amount, conditions, sunrise/sunset. Default 7 days. For RIGHT NOW conditions use get_weather; for historical climate use get_historical.

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": {
      "latitude": 40.7128,
      "longitude": -74.006
    },
    "name": "weather_get_forecast"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoAlias for latitude.
lngNoAlias for longitude.
lonNoAlias for longitude.
cityNoAlias for location.
daysNoNumber of forecast days (1-16, default 7)
nameNoAlias for location.
placeNoAlias for location.
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.

Output Schema

NameRequiredDescriptionDefault
daysYesArray of daily forecast objects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, non-destructive, so the safety profile is covered. The description adds real context beyond them: geocoding resolution via Open-Meteo, the 7-day default, and the shape of what comes back (daily high/low in °F, precipitation probability and amount, conditions, sunrise/sunset).

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 purpose, then usage routing, then return shape, then exclusions — a sensible order with no filler. The multilingual block is long but earns its place by letting the agent match non-English queries; apart from that the prose is dense.

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?

With 10 all-optional parameters, an agent could be unsure what is minimally required, but the description resolves this by saying to pass a city name or lat/lon. Return values are covered by the output schema, so the description needn't detail them further; only the alias-choice precedence is left slightly 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% and already documents every alias (lat/lng/lon/city/place/name) and the days range. The description only restates 'Pass a city name or lat/lon' and 'Default 7 days', which adds little beyond the schema's own text, so the baseline of 3 applies.

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 verb and resource ('Weather forecast ... for any location worldwide') with explicit scope (1-16 days) and explicitly names the siblings it is not (get_weather for current, get_historical for climate). An agent can distinguish it from weather_get_historical and get_weather without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing rules: 'PREFER OVER WEB SEARCH' for named query patterns, concrete example phrasings ('will it rain tomorrow in Y', 'forecast for next weekend in Z'), and direct exclusions pointing to get_weather and get_historical. The multilingual query examples further tell the agent when this tool matches user phrasing.

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.