Log what was eaten
log_mealLog a meal or a snack as FOODS, one per food with its amount and your calorie and macro estimate. Kove looks each food up (its food table, the product for a brand, the person's own saved figures) and uses those over your estimate when it knows the food, then adds the day up and writes the journal line itself. From a photo, send a pack's barcode or a label's per_100 figures on the food: they beat any estimate. Never send a day total. Answers with what changed and a write_id; tell the person what was logged in a sentence.
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": {
"idempotency_key": "<idempotency_key>"
},
"name": "log_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Omit for today. | |
| meal | No | Only when the person said which meal. | |
| foods | No | Foods eaten, one each. Never a total. | |
| kove_foods | No | Foods found in Kove's table or products with search_foods; Kove uses its own figures. | |
| saved_foods | No | Foods from their saved list; Kove uses their own figures. | |
| idempotency_key | Yes | A new random string per write (8-128 of A-Z a-z 0-9 - _ . :); send the same one to retry, never a new one. | |
| figures_from_person | No | True when the person gave the calories or macros themselves (a label, their own number): Kove keeps yours as sent instead of looking the foods up. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| written | Yes | ||
| replayed | No | ||
| write_id | No |