add_nutrition_item
Add a food item and its calories, protein, carbs, and fat to an existing nutrition log to track meals and daily intake.
Instructions
Add a food item to an existing nutrition log
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": {
"log_id": "<log_id>",
"name": "<name>",
"calories": "<calories>",
"protein_grams": "<protein_grams>",
"carbs_grams": "<carbs_grams>",
"fat_grams": "<fat_grams>"
},
"name": "add_nutrition_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the food | |
| brand | No | Brand name (optional) | |
| log_id | Yes | ID of the nutrition log | |
| calories | Yes | Calories per serving | |
| fat_grams | Yes | Fat in grams | |
| carbs_grams | Yes | Carbs in grams | |
| fiber_grams | No | Fiber in grams | |
| serving_size | No | Serving size in grams | |
| protein_grams | Yes | Protein in grams | |
| serving_quantity | No | Number of servings |