joiva_add_food_rule
Record a food rule for the user ('Bananen soll ich laut Bericht meiden'), e.g. when transferring a list from a report or from a doctor. Stores the user's statement; Joiva adds no foods and establishes no tolerances on its own. An existing rule for the same food is replaced (one rule per food).
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": {
"kind": "<kind>",
"label": "<label>"
},
"name": "joiva_add_food_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | The user's stance: 'avoid', 'caution' (small amounts), 'prefer' (explicitly fine, e.g. a report says 'avoid oranges, lemons are okay') | |
| note | No | The reason in the user's own words | |
| label | Yes | The food as the user names it, e.g. 'Bananen' | |
| reason | No | Reason category as it follows from what the user said; omitted when unclear. | |
| source | No | Where the rule comes from, e.g. 'Viome-Bericht 08/2026' | |
| aliases | No | Further spellings the rule matches. Matters for short names: 'Pute' alone matches only that word; the alias 'Puten' also catches Putenbrust. | |
| excludes | No | Names not meant despite similarity, e.g. 'Kokosnuss' under a nut rule, as stated by the user. |