Add Favorite Product
add_user_favorite_productAdd a product to the user's favorites with the amount and optional serving usually consumed, enabling quick reuse in food logging.
Instructions
Add a product to the user's favorites, with the amount (and optionally serving) it is usually eaten in.
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": {
"product_id": "<product_id>",
"amount": "<amount>"
},
"name": "add_user_favorite_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in base units (g or ml) the product is favorited with | |
| serving | No | Serving type (e.g. portion, fruit, glass, cup, slice, piece, bar, gram, bottle, can, etc.) | |
| product_id | Yes | Product UUID v1/v4 (e.g. 4ceff6e9-78ce-441b-964a-22e81c1dee92) | |
| serving_quantity | No | Quantity of servings |