Skip to main content
Glama

weather_forecast

Idempotent

Official German Weather Service (DWD) forecast for about 5,600 places worldwide (densest in Europe): the current hour (temperature, rain, wind, clouds) plus one summary per day for 1 to 10 days (min/max temperature, rain total and probability, wind and gusts, cloud cover, sunshine). Give a city name or coordinates. Returns: JSON with simulated, source, forecast_issued_at, station, match, now, days_requested, days_returned, days, time_zone_note, attribution, coverage. PAID: 0.003 USDC per call (USDC on eip155:8453, x402 v2). Requires an x402-capable MCP client that attaches the payment in _meta["x402/payment"] (e.g. createx402MCPClient from @x402/mcp). Without a payment this tool returns a "payment required" result and charges nothing. NOTE: Weather comes straight from the German Weather Service (DWD) Open Data; the request contains only a station id, no coordinates. Unknown place names and points without a DWD station within 40 km are refused before payment. Sandbox results are simulated.

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
daysNoNumber of days starting today, 1 to 10. Default 3.
placeNoCity or place name, e.g. Munich, Wien, London, New York. Matched against official DWD station names (cities and airports). Use latitude/longitude instead for small towns.
latitudeNoDecimal degrees. Give latitude and longitude, or place.
longitudeNoDecimal degrees.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"Number of days starting today (Europe/Berlin), 1 to 10. Default 3."New value: +"Number of days starting today, 1 to 10. Default 3."
    • changedInput schema / properties / latitude / description
      Previous value: -"Decimal degrees. Germany and border regions (Austria, Switzerland, Benelux) with a DWD forecast station within 40 km."New value: +"Decimal degrees. Give latitude and longitude, or place."
    • changedInput schema / properties / latitude / maximum
      Previous value: -55.3New value: +90
    • changedInput schema / properties / latitude / minimum
      Previous value: -47New value: +-90
    • changedInput schema / properties / longitude / description
      Previous value: -"Decimal degrees (5.5 to 15.4)."New value: +"Decimal degrees."
    • changedInput schema / properties / longitude / maximum
      Previous value: -15.4New value: +180
    • changedInput schema / properties / longitude / minimum
      Previous value: -5.5New value: +-180
    • addedInput schema / properties / place
      Added value: +{
      +  "description": "City or place name, e.g. Munich, Wien, London, New York. Matched against official DWD station names (cities and airports). Use latitude/longitude instead for small towns.",
      +  "maxLength": 60,
      +  "minLength": 2,
      +  "pattern": "^[^\\x00-\\x1f\\x7f]+$",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "latitude",
      -  "longitude"
      -]
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes far beyond the annotations: discloses a paid model (0.003 USDC on eip155:8453, x402 v2), the exact client capability required (_meta["x402/payment"]), and that no charge occurs without payment. It also names the upstream data source, states the request carries only a station id (privacy-relevant), documents refusal conditions before payment, and flags that sandbox results are simulated.

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 return fields are front-loaded, then payment mechanics, then caveats — a sensible order. It is dense and slightly overpacked (the parenthetical client example and inline returns list lengthen it), but nearly every clause carries operational information.

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 paid, open-world, no-output-schema tool, the description supplies everything an agent needs: what is returned field-by-field, payment and client prerequisites, failure modes that avoid being charged, and data provenance. No annotation contradiction and no material gap.

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 earns a point by explaining the resolution model — coordinates and place names are collapsed to a DWD station id, coordinates matter for small towns, and out-of-coverage points are refused pre-payment. That adds meaning the schema alone does not convey.

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+resource: 'Official German Weather Service (DWD) forecast' and enumerates the exact payload (current hour temperature/rain/wind/clouds plus 1-10 daily summaries with named fields). The scope ('about 5,600 places worldwide, densest in Europe') and the two input modes (city name or coordinates) let an agent distinguish it immediately from the SEO/data siblings.

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?

Clear conditions for use are given: supply a city name or coordinates, 1-10 days, and refusal happens for unknown place names and points without a DWD station within 40 km. It does not compare against a weather alternative, but no comparable sibling exists in the catalog, so the missing-exclusions gap is minor.

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