{
  "tool_id": "sweat_rate_calculator",
  "slug": "sweat-rate-calculator",
  "path": "/sweat-rate-calculator/",
  "mode": "url_api",
  "api_usage": "GET https://aifithub.io/api/sweat-rate-calculator/?<params>",
  "sample_input": {
    "tool": "sweat_rate_calculator",
    "pre_weight_kg": 70,
    "post_weight_kg": 69.2,
    "duration_minutes": 60,
    "fluid_consumed_ml": 500,
    "urine_produced_ml": 0
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": { "type": "string" },
      "pre_weight_kg": {
        "type": "number",
        "description": "Body weight before exercise in kilograms"
      },
      "post_weight_kg": {
        "type": "number",
        "description": "Body weight after exercise in kilograms"
      },
      "duration_minutes": {
        "type": "number",
        "description": "Exercise duration in minutes"
      },
      "fluid_consumed_ml": {
        "type": "number",
        "description": "Total fluid consumed during exercise in millilitres"
      },
      "urine_produced_ml": {
        "type": "number",
        "description": "Urine produced during exercise in millilitres (typically 0 for sessions under 90 min)"
      }
    },
    "required": ["pre_weight_kg", "post_weight_kg", "duration_minutes", "fluid_consumed_ml"]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "sweatRateLPerHr": {
        "type": "number",
        "description": "Sweat rate in litres per hour"
      },
      "totalFluidLostL": {
        "type": "number",
        "description": "Total fluid lost during exercise in litres"
      },
      "weightLostKg": {
        "type": "number",
        "description": "Body weight lost during exercise in kg"
      },
      "weightLostPercent": {
        "type": "number",
        "description": "Body weight lost as a percentage of pre-exercise weight"
      },
      "hydrationStatus": {
        "type": "string",
        "enum": ["well_hydrated", "mild_dehydration", "moderate_dehydration", "severe_dehydration"],
        "description": "Hydration classification based on ACSM body weight loss thresholds"
      },
      "hydrationLabel": {
        "type": "string",
        "description": "Human-readable hydration classification label"
      },
      "fluidReplacePerHourMl": {
        "type": "number",
        "description": "Recommended fluid intake per hour for next session in mL (80% of sweat rate)"
      },
      "sodiumLossMgPerHr": {
        "type": "number",
        "description": "Estimated sodium loss per hour in mg (based on GSSI median of 920 mg/L)"
      },
      "recommendation": {
        "type": "string",
        "description": "Hydration recommendation based on dehydration level"
      }
    }
  }
}
