update_item_name
Rename an inventory item while preserving price and other fields. Uses optimistic locking: refuses to update unless the current name matches the expected name.
Instructions
Modifies merchant data. Rename an inventory item (price/other fields preserved).
Optimistic lock: refuses unless the item's current name equals expected_current_name. Bounds: non-empty, <= 127 characters. dry_run=True previews the POST body (still performs one read) and never writes. Requires INVENTORY_R and INVENTORY_W.
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>",
"new_name": "<new_name>",
"expected_current_name": "<expected_current_name>"
},
"name": "update_item_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| dry_run | No | ||
| item_id | Yes | ||
| new_name | Yes | ||
| expected_current_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||