set_inventory
Set the on-hand inventory quantity for a specific item at a given Shopify location. Provide inventory item ID, location ID, and new quantity.
Instructions
Set on-hand inventory quantity
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": {
"inventoryItemId": "<inventoryItemId>",
"locationId": "<locationId>",
"quantity": "<quantity>"
},
"name": "set_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | Yes | New on-hand quantity | |
| locationId | Yes | Location ID | |
| inventoryItemId | Yes | Inventory item ID |