{
  "tool_id": "ffmi_calculator",
  "slug": "ffmi-calculator",
  "path": "/ffmi-calculator/",
  "mode": "engine_module",
  "usage": "Client-side calculator. Open https://aifithub.io/ffmi-calculator/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aifithub.io/engines/ffmi-calculator.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aifithub.io/methodology/ffmi-calculator/",
  "sample_input": {
    "tool": "ffmi_calculator",
    "weight_kg": 80,
    "height_cm": 178,
    "body_fat_pct": 15
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "weight_kg": {
        "type": "number"
      },
      "height_cm": {
        "type": "number"
      },
      "body_fat_pct": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "weight_kg",
      "height_cm",
      "body_fat_pct"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "ffmi": {
        "type": "number"
      },
      "adjustedFfmi": {
        "type": "number"
      },
      "fatFreeMassKg": {
        "type": "number"
      },
      "interpretation": {
        "type": "string"
      }
    }
  }
}
