Save a food
save_foodSave a food to the person's own list with its figures (per 100 g by default; send per for a label's own amount and Kove rebases), or change one by its id: figures sent are merged in. It can then be logged by name. A recipe goes in with its ingredients instead, plus servings and cooked_weight: Kove looks each one up and counts it, and a recipe changes by sending its whole ingredient list back. Kove's own foods keep Kove's figures and name; only their portion can be set.
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": {
"idempotency_key": "<idempotency_key>",
"name": "<name>"
},
"name": "save_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | To change one of their foods, its id (from search_foods). Omit to create a new one. | |
| per | No | The amount the figures are for (default 100), as a label states it. | |
| name | Yes | Its name; for a change, the new name. | |
| unit | No | ||
| fat_g | No | ||
| carbs_g | No | ||
| fiber_g | No | ||
| calories | No | ||
| servings | No | With ingredients: how many portions it makes. | |
| protein_g | No | ||
| collection | No | A collection to file it in, made if it doesn't exist. | |
| source_url | No | The link the recipe came from: the same link again updates that recipe. | |
| description | No | Ingredients, preparation, anything about it, in markdown. | |
| ingredients | No | For a recipe: its ingredients. Kove looks each one up and counts the dish itself, so send no figures or `per` with them. | |
| portion_name | No | What the portion is called: "pot", "slice". | |
| cooked_weight | No | With ingredients: the dish's weight once cooked, in grams: theirs if weighed, else your estimate. | |
| portion_amount | No | Its usual portion in its unit, when it has one (a 150 g pot). | |
| idempotency_key | Yes | A new random string per write (8-128 of A-Z a-z 0-9 - _ . :); send the same one to retry, never a new one. | |
| cooked_weight_estimated | No | True when cooked_weight is your estimate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| written | Yes | ||
| replayed | No | ||
| write_id | No |