generate_sku
Generate a SKU for a purchased item (from its title/cost/qty using the
user's SKU convention) and save it to the row. Pass the id returned by
add_purchase or shown in get_items_purchased. Do this before create_listing.
Returns the item with its new listing_sku.
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": {
"item_id": "<item_id>"
},
"name": "generate_sku"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes |