Add Consumed Item
add_user_consumed_itemLogs a consumed food item to a user's nutrition diary with product, meal type, amount, and date/time, returning the entry ID for later removal.
Instructions
Add a food item to user consumption log. Pass date with time ("YYYY-MM-DD HH:mm:ss") to keep the time of the entry; date only (YYYY-MM-DD) logs it at 00:00. Returns the entry ID for remove_user_consumed_item.
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": {
"product_id": "<product_id>",
"date": "<date>",
"daytime": "<daytime>",
"amount": "<amount>"
},
"name": "add_user_consumed_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date and time when the food was consumed in "YYYY-MM-DD HH:mm:ss" format (e.g., "2025-12-18 12:30:00"), or date only in YYYY-MM-DD format | |
| amount | Yes | Amount of the product consumed in base units (g or ml) | |
| daytime | Yes | Type of meal (breakfast, lunch, dinner, snack) | |
| serving | No | Serving type (e.g. portion, fruit, glass, cup, slice, piece, bar, gram, bottle, can, etc.) | |
| product_id | Yes | Product UUID v1/v4 (e.g. 4ceff6e9-78ce-441b-964a-22e81c1dee92) | |
| serving_quantity | No | Quantity of servings |