Ret vare i spisekammeret
update_pantry_itemUse this when the user wants to change one item in their Goma pantry (spisekammer): its amount, whether it is a staple, or whether Goma leaves it out of the shopping list. Needs pantryItemId from get_pantry. Only the fields included change; quantityValue and quantityUnit null clear the amount.
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": {
"pantryItemId": "<pantryItemId>"
},
"name": "update_pantry_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isStaple | No | ||
| pantryItemId | Yes | From get_pantry or add_pantry_items. | |
| quantityUnit | No | ||
| quantityValue | No | Together with quantityUnit. | |
| excludeFromShopping | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The user's pantry (spisekammer) on goma.gg. | |
| name | Yes | ||
| isStaple | Yes | ||
| pantryItemId | Yes | ||
| quantityUnit | Yes | ||
| quantityValue | Yes | ||
| excludeFromShopping | Yes |