Update consumed item amount
update_consumed_itemUpdate a consumed item in your YAZIO nutrition diary by creating and verifying a replacement entry, then removing the old entry safely.
Instructions
Safely replaces an existing product entry: creates and verifies a replacement, then removes the exact old ID. Attempts compensation on failure. A native YAZIO PATCH endpoint is not confirmed.
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": {
"client_request_id": "<client_request_id>",
"item_id": "<item_id>",
"date": "<date>",
"amount": "<amount>"
},
"name": "update_consumed_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| amount | Yes | ||
| dry_run | No | ||
| item_id | Yes | ||
| client_request_id | Yes | ||
| confirmation_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||