{
  "tool_id": "macro_cycling",
  "slug": "macro-cycling-calculator",
  "path": "/macro-cycling-calculator/",
  "mode": "engine_module",
  "usage": "Client-side calculator. Open https://aifithub.io/macro-cycling-calculator/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aifithub.io/engines/macro-cycling-calculator.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aifithub.io/methodology/macro-cycling-calculator/",
  "sample_input": {
    "tool": "macro_cycling",
    "body_weight_kg": 80,
    "body_fat_pct": 18,
    "goal": "recomp",
    "training_days_per_week": 4,
    "tdee": 2500,
    "activity_level": "moderate"
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "body_weight_kg": {
        "type": "number"
      },
      "body_fat_pct": {
        "type": "number"
      },
      "goal": {
        "type": "string",
        "enum": [
          "recomp",
          "lean_bulk",
          "cut"
        ]
      },
      "training_days_per_week": {
        "type": "number"
      },
      "tdee": {
        "type": "number"
      },
      "activity_level": {
        "type": "string",
        "enum": [
          "sedentary",
          "light",
          "moderate",
          "very",
          "athlete"
        ]
      }
    },
    "required": [
      "tool",
      "body_weight_kg",
      "goal",
      "training_days_per_week"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "trainingDay": {
        "type": "object"
      },
      "restDay": {
        "type": "object"
      },
      "weeklyAvgCalories": {
        "type": "number"
      },
      "proteinPerKg": {
        "type": "number"
      },
      "tdeeUsed": {
        "type": "number"
      }
    }
  }
}
