Update a bag
update_bagChange bag-level facts on one bag of a coffee: open, seal, freeze, thaw or finish it, correct its roast date, weight, grams left or price. Bag numbers come from the bags[] on list_beans (or current_bag_id). For the coffee itself (roaster, origin, roast level, rest window, notes), use update_bean.
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": {
"bag_id": "<bag_id>",
"fields": "<fields>"
},
"name": "update_bag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bag_id | Yes | This account's own bag number, from list_beans' bags[]. Never guess one. | |
| fields | Yes | ||
| reason | No | Optional free-text note, appended to this bag's notes as an ordinary line. Omit it and nothing is written. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | Yes |