Set product availability
set_product_availabilityChange a product's availability to available, sold out today, or sold out indefinitely. Preview changes with a dry run, then apply with the returned digest.
Instructions
Mark a product available or sold out (today / indefinitely).
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": {
"productId": "<productId>",
"availability": "<availability>"
},
"name": "set_product_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Preview by default. Apply requires the exact returned planDigest. | dry-run |
| productId | Yes | ||
| locationId | No | ||
| planDigest | No | Exact digest returned by a dry-run of the same arguments. | |
| availability | Yes | ||
| confirmationToken | No | Required exact phrase for destructive, paid, or release operations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| mode | Yes | ||
| status | Yes | ||
| changes | Yes | ||
| summary | Yes | ||
| operation | Yes | ||
| planDigest | Yes | ||
| environment | Yes | ||
| nextActions | Yes | ||
| schemaVersion | Yes |