[
  {
    "name": "current_weather",
    "description": "Get the current weather for a city or coordinates: temperature, \"feels like\", conditions, humidity, wind speed, and cloud cover. Example: current_weather({ city: \"London\", units: \"metric\" })",
    "inputSchema": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string",
          "description": "City name, optionally with country code, e.g. \"London\" or \"London,GB\". Provide this OR lat/lon."
        },
        "lat": {
          "type": "number",
          "description": "Latitude. Use with lon instead of city."
        },
        "lon": {
          "type": "number",
          "description": "Longitude. Use with lat instead of city."
        },
        "units": {
          "type": "string",
          "enum": [
            "metric",
            "imperial",
            "standard"
          ],
          "description": "Temperature units: \"metric\" (C, default), \"imperial\" (F), or \"standard\" (K)."
        },
        "_apiKey": {
          "type": "string",
          "description": "Optional — your own OpenWeatherMap API key for higher limits; omit to use the shared Pipeworx key."
        }
      },
      "required": []
    }
  },
  {
    "name": "openweather_forecast",
    "description": "Get a multi-step weather forecast (3-hour intervals) for a city or coordinates: temperature, conditions, wind speed, and precipitation probability over time. Example: forecast({ city: \"Tokyo\", count: 8 })",
    "inputSchema": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string",
          "description": "City name, optionally with country code, e.g. \"Tokyo\" or \"Tokyo,JP\". Provide this OR lat/lon."
        },
        "lat": {
          "type": "number",
          "description": "Latitude. Use with lon instead of city."
        },
        "lon": {
          "type": "number",
          "description": "Longitude. Use with lat instead of city."
        },
        "units": {
          "type": "string",
          "enum": [
            "metric",
            "imperial",
            "standard"
          ],
          "description": "Temperature units: \"metric\" (C, default), \"imperial\" (F), or \"standard\" (K)."
        },
        "count": {
          "type": "number",
          "description": "Number of 3-hour forecast steps to return (default 8 = next 24h, max 40 = 5 days)."
        },
        "_apiKey": {
          "type": "string",
          "description": "Optional — your own OpenWeatherMap API key for higher limits; omit to use the shared Pipeworx key."
        }
      },
      "required": []
    }
  },
  {
    "name": "openweather_air_quality",
    "description": "Get the current air quality for a set of coordinates: an air quality index (AQI, 1=Good to 5=Very Poor) plus pollutant component concentrations (CO, NO2, O3, PM2.5, PM10, etc.). Example: air_quality({ lat: 51.5, lon: -0.12 })",
    "inputSchema": {
      "type": "object",
      "properties": {
        "lat": {
          "type": "number",
          "description": "Latitude."
        },
        "lon": {
          "type": "number",
          "description": "Longitude."
        },
        "_apiKey": {
          "type": "string",
          "description": "Optional — your own OpenWeatherMap API key for higher limits; omit to use the shared Pipeworx key."
        }
      },
      "required": [
        "lat",
        "lon"
      ]
    }
  },
  {
    "name": "openweather_geocode",
    "description": "Resolve a place name (city, optionally with state/country) to geographic coordinates (latitude/longitude). Useful before calling air_quality, which needs lat/lon. Example: geocode({ query: \"Paris\", limit: 5 })",
    "inputSchema": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "description": "Place name to look up, e.g. \"Paris\", \"Springfield,IL,US\"."
        },
        "limit": {
          "type": "number",
          "description": "Maximum number of matching locations to return (default 5)."
        },
        "_apiKey": {
          "type": "string",
          "description": "Optional — your own OpenWeatherMap API key for higher limits; omit to use the shared Pipeworx key."
        }
      },
      "required": [
        "query"
      ]
    }
  }
]
