joiva_log_drink
Log a drink the signed-in user had from Joiva's drink templates: coffee, tea, milk, cocoa, orange juice, apple spritzer, cola, cola zero, beer or white wine; coffee and tea optionally with milk, oat drink, coffee cream, sugar or butter. Writes food-log entries (the drink plus one row per addition, linked as one drink) with caffeine and alcohol from a cited source, energy and nutrients. Drinks are listed in ml under 'Getrunken', never as a meal. Drinks and additions over 50 kcal end a fast like any food (fasting automation, 50 kcal rule). Its water counts towards the day's hydration target. Plain and sparkling water are not logged here; a drink without a template here is logged like food. Time defaults to now.
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": {
"drink": "<drink>"
},
"name": "joiva_log_drink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ml | No | Amount in millilitres; defaults to the usual size | |
| drink | Yes | Which drink: 'kaffee' (200 ml), 'espresso' (40 ml), 'schwarztee', 'gruentee', 'kraeutertee' (250 ml each), 'entkoffeiniert' (decaf coffee, 200 ml), 'milch' (a glass of whole milk, 200 ml), 'kakao' (cocoa, 250 ml), 'orangensaft' (orange juice, 200 ml), 'apfelschorle' (apple spritzer, 330 ml), 'cola' (330 ml), 'cola_zero' (330 ml), 'bier' (beer, 500 ml), 'weisswein' (white wine, 150 ml). Drinks over 50 kcal end a fast like any food. | |
| loggedAt | No | ISO 8601 timestamp with offset, defaults to now | |
| additions | No | Additions: 'milch' (30 g), 'haferdrink' (30 g), 'sahne' (coffee cream, 15 g), 'zucker' (5 g), 'butter' (10 g). None when black. |