set_inventory_level
Set the stocked quantity for an inventory item at a specific stock location, using the item ID and location ID to update stock levels in a Medusa v2 store.
Instructions
Set the stocked quantity for an inventory item at a stock location. Use list_inventory_items to find inventory_item_id and get_store_context for 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": {
"inventory_item_id": "<inventory_item_id>",
"location_id": "<location_id>",
"stocked_quantity": "<stocked_quantity>"
},
"name": "set_inventory_level"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location_id | Yes | ||
| stocked_quantity | Yes | ||
| inventory_item_id | Yes |