Round Raw Nutrient Numbers per FDA 21 CFR 101.9
round_fda_nutrition_valueApplies FDA 21 CFR 101.9 rounding increments and calculates % Daily Value from raw per-serving nutrient numbers for nutrition label reference calculations.
Instructions
Apply official US FDA 21 CFR 101.9 legal rounding increments and compute % Daily Value (%DV) for raw per-serving nutrient numbers. Pure numeric reference calculation (no label graphics or recipe parsing).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"nutrients": "<nutrients>"
},
"name": "round_fda_nutrition_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nutrients | Yes | Map of FDA nutrient keys to raw per-serving numbers in official FDA units (calories in kcal; fats/carbs/fiber/sugars/protein in g; cholesterol/sodium/calcium/iron/potassium in mg; vitamin_d in mcg). |