Edit an entry
edit_entryCorrect one entry by its id, in Marrow and Apple Health. A food entry (id from nutrition_log, the user's own or one you added): give scale to multiply it (0.5 = half), or grams for a new portion (calories and macros follow unless you also give them), or the numbers, or meal. A weight, water or body fat entry you logged (id from metric_samples or from the log call): give kg or lb, ml or oz, or body_fat_percent. Entries of the last 30 days. undo_entry with the returned id puts it back as it was.
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": {
"entry_id": "<entry_id>"
},
"name": "edit_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kg | No | Weight entry: the corrected weight | |
| lb | No | ||
| ml | No | Water entry: the corrected amount | |
| oz | No | ||
| kcal | No | ||
| meal | No | ||
| fat_g | No | ||
| grams | No | ||
| scale | No | Food: multiply portion and nutrients by this | |
| carbs_g | No | ||
| entry_id | Yes | The entry's id: a food's from nutrition_log, or a weight, water or body fat entry's from metric_samples | |
| protein_g | No | ||
| idempotency_key | No | Optional. The same key never logs twice. Use a new one to log an identical entry again on purpose. | |
| body_fat_percent | No |