Add Quick Entry
add_quick_entryLog a one-off nutrition entry by providing a name and total macros, creating a direct diary record without needing to add a new product to the database.
Instructions
Log a one-off diary entry with a name and total nutrition of the eaten amount (Yazio "quick add"), without creating a product. Shows up in get_user_consumed_items as simple_products and is removed with 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": {
"name": "<name>",
"date": "<date>",
"daytime": "<daytime>",
"energy": "<energy>"
},
"name": "add_quick_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fat | No | Total fat in g | |
| carb | No | Total carbohydrates in g | |
| 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 | |
| name | Yes | Entry name, e.g. "Тартин Pinch" | |
| energy | Yes | Total energy of the eaten amount in kcal (not per 100 g) | |
| daytime | Yes | Type of meal (breakfast, lunch, dinner, snack) | |
| protein | No | Total protein in g | |
| extra_nutrients | No | Other nutrients by Yazio key, e.g. {"nutrient.sugar": 5, "nutrient.dietaryfiber": 2, "nutrient.saturated": 1.5, "nutrient.salt": 0.8}; same scale as the main values |