adjust-inventory
Update product inventory levels by increasing or decreasing available stock at a chosen location. Specify inventory item, location, and delta to correct quantities.
Instructions
Adjust the available inventory quantity of a product variant at a location by a delta (positive to add stock, negative to remove). Use get-product-by-id to find the variant's inventoryItem ID and get-locations for the location ID.
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>",
"delta": "<delta>"
},
"name": "adjust-inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delta | Yes | Quantity change: positive to increase available stock, negative to decrease | |
| reason | No | Reason for the adjustment, e.g. 'correction', 'received', 'damaged' | correction |
| locationId | Yes | Location ID (numeric ID or gid://shopify/Location/... form) | |
| inventoryItemId | Yes | Inventory item ID (numeric ID or gid://shopify/InventoryItem/... form) |