update_inventory_item
Update details of an existing inventory item, including name, price, stock, and description, using its product ID.
Instructions
Updates an existing inventory item in the inventory management system.
Args:
prod_id: The ID of the inventory item to update.
name: The new name of the inventory item.
price: The new price of the inventory item.
stock: The new new_stock quantity of the inventory item.
description: The new description 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>",
"name": "<name>",
"price": "<price>",
"stock": "<stock>",
"description": "<description>"
},
"name": "update_inventory_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| price | Yes | ||
| stock | Yes | ||
| prod_id | Yes | ||
| description | Yes |