Replace Purchase Template Items
replace_purchase_template_itemsUse this when working with RetailHardHat purchase_lists records in the connected organization. Replace ALL items in a purchase template; an empty array clears them. No change occurs until a human approves the exact request in Settings > MCP and execute_approved_action is called. MCP approval requirements are configurable by the organization administrator; business workflow approvals always apply.
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": {
"templateId": "<templateId>",
"data": "<data>"
},
"name": "replace_purchase_template_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| templateId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |