add_favorite
Save a food and its nutrition details to favorites so you can reuse it in future meal logging.
Instructions
Add a food to favorites
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": {
"name": "<name>",
"calories": "<calories>",
"protein_grams": "<protein_grams>",
"carbs_grams": "<carbs_grams>",
"fat_grams": "<fat_grams>"
},
"name": "add_favorite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Food name | |
| brand | No | Brand (optional) | |
| barcode | No | ||
| calories | Yes | ||
| fat_grams | Yes | ||
| carbs_grams | Yes | ||
| fiber_grams | No | ||
| serving_size | No | Serving size | |
| protein_grams | Yes |