joiva_log_meal
Log a saved Joiva meal in one call: every component becomes a log entry sharing one meal, labeled with the meal's name. The meal is found by mealName (case-insensitive, e.g. 'Power-Bowl') or by savedMealId. factor scales the portion (0.5 = half, 2 = double). Time defaults to now. With plannedDate the meal is scheduled for a day that has not happened yet ('plane meine Power-Bowl für morgen'): the entries are written as planned, not eaten, and stay out of that day's balance until confirmed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "joiva_log_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | IANA timezone, default Europe/Berlin | |
| factor | No | Portion factor, default 1 | |
| loggedAt | No | ISO 8601 timestamp with offset, defaults to now | |
| mealName | No | The meal's saved name | |
| plannedDate | No | YYYY-MM-DD. Schedules the meal for this day instead of logging it as eaten | |
| savedMealId | No | Id of the saved meal |