log_food
Creates a nutrition log entry for a meal or snack by recording foods and their calories, protein, carbs, and fat; requires serving sizes estimated in grams.
Instructions
Log a food item or meal. Creates a nutrition log entry with the specified foods. IMPORTANT: Always estimate serving_size in grams (e.g., '150g') - never use abstract units like cups, servings, or pieces.
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": {
"meal_type": "<meal_type>",
"items": "<items>"
},
"name": "log_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Array of food items to log | |
| logged_at | No | Optional ISO timestamp for when the food was eaten (default: now) | |
| meal_type | Yes | Type of meal |