Skip to main content
Glama

get_weather

Read-onlyIdempotent

weatherpeek: hourly weather forecast for a point or a city. For airport observations use get_metar. Input: either lat and lon together, or place alone, plus optional hours. place matches cities of 15,000+ people offline ("City" or "City, CC" with an ISO country code); no match is a 404 place_not_found (not charged). Upstream errors are a 5xx and are not charged. Typically 0.1-2 s. Price: USD 0.002. Free: 5 weather forecasts per IP per UTC day. Data: MET Norway and GeoNames, both CC BY 4.0; credit them when you show or republish it (see attribution). Forecasts are numerical weather model output and can be wrong: not for safety-critical decisions (aviation, marine, severe-weather warnings); use official services for those. Docs: https://tanod.dev/learn/weather-api-no-key.html

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

Input Schema

NameRequiredDescriptionDefault
latNoLatitude (-90..90); give lat and lon together, or place.
lonNoLongitude (-180..180); give lat and lon together, or place.
hoursNoHourly rows to return.
placeNoCity name, optionally "City, CC" with an ISO country code (cities with 15,000+ people); give place alone, or lat and lon.

Output Schema

NameRequiredDescriptionDefault
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
hoursNo
unitsNo
cachedNo
hourlyNo
locationNo
updated_atNo
attributionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • changedInput schema / properties / hours / description
      Previous value: -"Hourly rows to return (1-48, default 24)."New value: +"Hourly rows to return."
    • removedInput schema / properties / hours / title
      Removed value: -"Hours"
    • removedInput schema / properties / lat / default
      Removed value: -null
    • removedInput schema / properties / lat / title
      Removed value: -"Lat"
    • removedInput schema / properties / lon / default
      Removed value: -null
    • removedInput schema / properties / lon / title
      Removed value: -"Lon"
    • removedInput schema / properties / place / default
      Removed value: -null
    • removedInput schema / properties / place / title
      Removed value: -"Place"
    • removedInput schema / title
      Removed value: -"get_weatherArguments"
    • removedOutput schema / properties / attribution / properties
      Removed value: -{
      -  "license": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "places": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "weather": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / hourly / items
      Removed value: -{
      -  "properties": {
      -    "air_temperature": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "cloud_area_fraction": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "precipitation_amount": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "relative_humidity": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "symbol_code": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "time": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "wind_from_direction": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "wind_speed": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / location / properties
      Removed value: -{
      -  "lat": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "lon": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "place": {
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  }
      -}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "attribution": {
      +      "properties": {
      +        "license": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "places": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "weather": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "cached": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "hourly": {
      +      "items": {
      +        "properties": {
      +          "air_temperature": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "cloud_area_fraction": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "precipitation_amount": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "relative_humidity": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "symbol_code": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "time": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "wind_from_direction": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "wind_speed": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "hours": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "location": {
      +      "properties": {
      +        "lat": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "lon": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "place": {
      +          "type": [
      +            "object",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "units": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "updated_at": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources