update_inventory_variant
Rename or update the SKU of an inventory variant. Specify the variant by ID, name, or SKU; prevents duplicate names or SKUs within the same product.
Instructions
Rename and/or change the SKU of an inventory variant. variant accepts ID, exact name, or exact SKU; pass product when needed. Rejects duplicate names or SKUs in the same product.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variant | Yes | a string that will be trimmed | |
| product | No | a string that will be trimmed | |
| category | No | a string that will be trimmed | |
| name | No | a string that will be trimmed | |
| sku | No | a string that will be trimmed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The successful tool result. The same value is also serialized as JSON in the text content for clients that do not read structuredContent. | |
| warnings | No | Optional agent-visible warnings about degraded result fidelity. Omitted when the server returned the documented happy-path payload. |