Update the pantry
update_pantryUpdates the user's Chop it pantry from what they've bought, have or used up: add items (topping up existing ones), remove by name, or change or remove exact rows by pantryItemId. On add, location places stock directly in pantry, fridge or freezer; only compatible items in that location are topped up. Omit unknown quantities or expiry dates rather than guessing. Read back before retrying a top-up, which is additive. An ambiguous item returns its candidates without changing that item; other unambiguous items in the request can still change. Staples such as salt, pepper and oil are skipped. Edits the same pantry the app shows. Requires a linked Chop it account.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "update_pantry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | Items to add (or top up when already present). | |
| remove | No | Ingredient names to remove; matched on the same canonical key the app uses. | |
| update | No | Set fields on an exact row; quantity replaces rather than adds. | |
| removeItemIds | No | Exact pantryItemIds from get_pantry to delete. Preferred for duplicate names. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| added | Yes | ||
| total | Yes | ||
| appUrl | Yes | ||
| merged | Yes | ||
| removed | Yes | ||
| skipped | Yes | ||
| updated | Yes | ||
| notFound | Yes | ||
| ambiguities | Yes |