Log a meal to the Nutrista diary
log_mealUse this when the user wants a meal in their Nutrista food diary, for example from a photo of what they ate or a list like 'chicken, rice and salad'. Takes each food in plain words with estimated grams, matches every item to the Nutrista food database and shows the matched list, which the user can change before pressing Save. Nothing is saved until the user presses Save.
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": {
"items": "<items>",
"meal_type": "<meal_type>"
},
"name": "log_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| eaten_at | No | ||
| language | No | ||
| meal_type | Yes |