{
  "name": "weather_current_open_meteo",
  "display_name": "Get Current Weather",
  "category": "weather",
  "protocol": "rest",
  "target": {
    "kind": "rest",
    "base_url": "https://api.open-meteo.com",
    "method": "GET",
    "path_template": "/v1/forecast",
    "static_headers": {}
  },
  "input_schema": {
    "type": "object",
    "required": true,
    "fields": {
      "latitude": {
        "type": "number",
        "required": true
      },
      "longitude": {
        "type": "number",
        "required": true
      }
    }
  },
  "output_schema": {
    "type": "object",
    "required": true,
    "fields": {
      "time": {
        "type": "string",
        "required": true
      },
      "temperature_c": {
        "type": "number",
        "required": true
      },
      "wind_speed_kmh": {
        "type": "number",
        "required": true
      },
      "timezone": {
        "type": "string",
        "required": true
      }
    }
  },
  "input_mapping": {
    "rules": [
      {
        "source": "$.mcp.latitude",
        "target": "$.request.query.latitude",
        "required": true
      },
      {
        "source": "$.mcp.longitude",
        "target": "$.request.query.longitude",
        "required": true
      },
      {
        "source": "$.mcp.current",
        "target": "$.request.query.current",
        "required": false,
        "default_value": "temperature_2m,wind_speed_10m"
      },
      {
        "source": "$.mcp.timezone",
        "target": "$.request.query.timezone",
        "required": false,
        "default_value": "Europe/Moscow"
      }
    ]
  },
  "output_mapping": {
    "rules": [
      {
        "source": "$.response.body.current.time",
        "target": "$.output.time",
        "required": true
      },
      {
        "source": "$.response.body.current.temperature_2m",
        "target": "$.output.temperature_c",
        "required": true
      },
      {
        "source": "$.response.body.current.wind_speed_10m",
        "target": "$.output.wind_speed_kmh",
        "required": true
      },
      {
        "source": "$.response.body.timezone",
        "target": "$.output.timezone",
        "required": true
      }
    ]
  },
  "execution_config": {
    "timeout_ms": 10000,
    "headers": {}
  },
  "tool_description": {
    "title": "Get Current Weather",
    "description": "Fetch current weather data from Open-Meteo by latitude and longitude.",
    "tags": [
      "weather",
      "rest",
      "smoke"
    ],
    "examples": [
      {
        "input": {
          "latitude": 55.75,
          "longitude": 37.62
        }
      }
    ]
  }
}
