omni_macro
Calculate daily protein, carbohydrate, and fat targets in grams and calories from calorie intake and macro percentages for cutting, lean bulk, or maintenance.
Instructions
Macronutrient Split (Carbs, Protein, Fats) Calculator. Calculate daily macronutrient targets in grams and calories based on fitness goals (cutting, lean bulk, or maintenance). Discipline: HEALTH. Governing mathematical model / formula: Total Calories = (Protein × 4) + (Carbohydrates × 4) + (Fats × 9).
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of protein_grams (Daily Protein Target), carbs_grams (Daily Carbohydrate Target), fats_grams (Daily Fats Target), macro_ratio (Macronutrient Split) using daily_calories (Daily Calorie Target in kcal), protein_pct (Protein Percentage (%) in %), fats_pct (Fats Percentage (%) in %). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
SIBLING ROUTING: Use this dedicated specialist tool for 'Macronutrient Split (Carbs, Protein, Fats) Calculator' rather than generic dispatchers like omni_universal_query. For cross-discipline dynamic dispatch, see omni_universal_query.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "macro"
category (string): "health"
name (string): "Macronutrient Split (Carbs, Protein, Fats) Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.protein_grams (Daily Protein Target): Formatted display string (e.g. '180 g (720 kcal)')
metrics.carbs_grams (Daily Carbohydrate Target): Formatted display string (e.g. '270 g (1,080 kcal)')
metrics.fats_grams (Daily Fats Target): Formatted display string (e.g. '67 g (600 kcal)')
metrics.macro_ratio (Macronutrient Split): Formatted display string (e.g. '45C / 30P / 25F')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_macro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fats_pct | No | Fats Percentage (%) (%). 9 kcal/gram (25% for hormone balance). Default: 25. Min: 15. Max: 45. | |
| protein_pct | No | Protein Percentage (%) (%). 4 kcal/gram (30% recommended for lifting). Default: 30. Min: 15. Max: 50. | |
| daily_calories | No | Daily Calorie Target (kcal). Target daily caloric intake. Default: 2400. Min: 1000. Max: 6000. |