{
  "tool_id": "sleep_calculator",
  "slug": "sleep-calculator",
  "path": "/sleep-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifithub.io/api/sleep-calculator/?<params>",
  "sample_input": {
    "tool": "sleep_calculator",
    "wake_time": "06:30",
    "sleep_cycles": 5
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "wake_time": {
        "type": "string"
      },
      "sleep_cycles": {
        "type": "integer"
      }
    },
    "required": [
      "tool",
      "wake_time",
      "sleep_cycles"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "windows": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "bedTime": {
              "type": "object",
              "properties": {
                "hours": {
                  "type": "number"
                },
                "minutes": {
                  "type": "number"
                }
              }
            },
            "wakeTime": {
              "type": "object",
              "properties": {
                "hours": {
                  "type": "number"
                },
                "minutes": {
                  "type": "number"
                }
              }
            },
            "cycles": {
              "type": "number"
            },
            "sleepHours": {
              "type": "number"
            },
            "rating": {
              "type": "string"
            }
          }
        }
      },
      "fallAsleepMinutes": {
        "type": "number"
      }
    }
  }
}
