update_meal
Update selected meal fields after verifying the expected revision, ensuring changes only apply when the record matches the anticipated version to prevent overwriting concurrent edits.
Instructions
Update selected meal fields after checking its expected revision.
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": {
"meal_id": "<meal_id>",
"expected_revision": "<expected_revision>",
"patch": "<patch>"
},
"name": "update_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | ||
| meal_id | Yes | ||
| expected_revision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||