add_inventory_item
Adds a new inventory item with specified name, price, stock, and description. Creates a product entry in the inventory management system for tracking.
Instructions
Adds a new inventory item to the inventory management system.
Args:
name: The name of the inventory item.
price: The price of the inventory item.
stock: The new_stock quantity of the inventory item.
description: A 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": {
"name": "<name>",
"price": "<price>",
"stock": "<stock>",
"description": "<description>"
},
"name": "add_inventory_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| price | Yes | ||
| stock | Yes | ||
| description | Yes |