Save food
metri_save_foodCreate a reusable non-batch food, or update one by foodId: only the fields passed change. Does not log consumption.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "metri_save_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Food name. Required when creating. | |
| foodId | No | The saved food to update. Omit to create a new food. | |
| nutritionPer100g | No | Nutrition per 100 g. Required when creating. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| foodId | Yes | ||
| warnings | No | ||
| nutritionPer100g | Yes |