joiva_log_water
Log plain water, sparkling water or salt water the signed-in user drank, in millilitres. Water lives in its own ledger: no macros, never breaks a fast. Drinks with content (coffee, tea, milk, cocoa, juice, spritzer, cola, beer, wine, broth) are not water: they belong in the food log with caffeine, alcohol and energy, and their water still counts towards the hydration target. For backwards compatibility kind: 'coffee' is logged as a plain coffee in the food log. The daily hydration target and its breakdown are part of the day view under water. kind: 'salt_water' records the salted water of an extended fast with its sodium, which the fasting safety rule depends on. 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": {
"ml": "<ml>"
},
"name": "joiva_log_water"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ml | Yes | Amount in millilitres, e.g. 250 for a glass | |
| tz | No | IANA timezone, default Europe/Berlin | |
| kind | No | Drink type, default 'water'; 'salt_water' = salted water during a fast; 'sparkling_water' = sparkling water, counts like water (sodium unknown). | |
| loggedAt | No | ISO 8601 timestamp with offset, defaults to now | |
| sodiumMg | No | Sodium in mg, for salt water | |
| plannedDate | No | YYYY-MM-DD: a drink planned for a future day |