nutrition_score
Calculate a 0-100 nutrition score for daily eating by analyzing calories, protein, carbs, and fat against your targets. Receive letter grades and actionable recommendations to assess diet quality and fix nutrient gaps.
Instructions
Calculate a nutrition quality score (0–100) for a day's eating based on macros and optional micronutrient data. Returns a breakdown by category, a letter grade, and actionable recommendations. Use this when someone wants to rate their diet, check if they're eating well, or get feedback on a day's meals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calories_eaten | Yes | Total calories eaten today | |
| calorie_target | Yes | Daily calorie target | |
| protein_g | Yes | Protein eaten today (grams) | |
| protein_target_g | Yes | Daily protein target (grams) | |
| carbs_g | Yes | Carbohydrates eaten today (grams) | |
| fat_g | Yes | Fat eaten today (grams) | |
| fiber_g | No | Fibre eaten today (grams) — optional | |
| vegetable_servings | No | Number of vegetable/fruit servings today — optional (1 serving = ~80g) | |
| water_ml | No | Water consumed today (ml) — optional |