{
  "tool_id": "macro_calculator",
  "slug": "macro-calculator",
  "path": "/macro-calculator/",
  "mode": "engine_module",
  "usage": "Client-side calculator. Open https://aifithub.io/macro-calculator/ and fill in the inputs; results render in-browser. Also importable as ES module from https://aifithub.io/engines/macro-calculator.js — call compute(input) with the JSON shape below.",
  "methodology": "https://aifithub.io/methodology/macro-calculator/",
  "sample_input": {
    "tool": "macro_calculator",
    "calories": 2200,
    "weight_kg": 80
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "calories": {
        "type": "number"
      },
      "weight_kg": {
        "type": "number"
      }
    },
    "required": [
      "tool",
      "calories",
      "weight_kg"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "targetCalories": {
        "type": "number"
      },
      "proteinGrams": {
        "type": "number"
      },
      "carbGrams": {
        "type": "number"
      },
      "fatGrams": {
        "type": "number"
      }
    }
  }
}
