Add a food or recipe to the Nutrista diary
log_foodUse this when the user asks to log, track or add one food or recipe they ate to their Nutrista diary. Takes a Nutrista food id or recipe id, an amount and the meal. The entry shows up in the Nutrista mobile app.
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": {
"amount": "<amount>",
"meal_type": "<meal_type>"
},
"name": "log_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | ||
| amount | Yes | ||
| food_id | No | ||
| eaten_at | No | ||
| language | No | ||
| meal_type | Yes | ||
| recipe_id | No |