update_inventory_item_stock
Update the stock quantity for an existing inventory item using its product ID and new stock value. Ensures accurate inventory records.
Instructions
Updates the new_stock quantity of an existing inventory item in the inventory management system.
Args:
prod_id: The ID of the inventory item to update.
stock: The new new_stock quantity of the inventory item.
Returns:
A confirmation message or an error message in json format if the request fails.
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": {
"prod_id": "<prod_id>",
"stock": "<stock>"
},
"name": "update_inventory_item_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stock | Yes | ||
| prod_id | Yes |