add_product
Add a product to the catalog with nutritional macros per 100g. Specify source as verified or estimated; verified ensures reliability. Returns the new product ID.
Instructions
Add a Product to the Catalog. Macros are per 100g. source is "verified"
(transcribed from a package label) or "estimated" (general knowledge) — verified is
the standard for anything worth trusting. Returns the new product id.
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>",
"kcal_100g": "<kcal_100g>",
"protein_100g": "<protein_100g>",
"carbs_100g": "<carbs_100g>",
"fat_100g": "<fat_100g>"
},
"name": "add_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | No | ||
| brand | No | ||
| source | No | verified | |
| fat_100g | Yes | ||
| kcal_100g | Yes | ||
| salt_100g | No | ||
| carbs_100g | Yes | ||
| fibre_100g | No | ||
| sugar_100g | No | ||
| protein_100g | Yes | ||
| sat_fat_100g | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |