manage-metafields
Set or delete custom metafields on any Shopify resource, such as products, variants, customers, or orders, to manage custom data.
Instructions
Set or delete metafields on any resource (product, variant, customer, order, etc.). Use this to manage custom data.
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": {
"ownerId": "<ownerId>"
},
"name": "manage-metafields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ownerId | Yes | Owner ID (product, variant, customer, etc.) | |
| metafieldsToSet | No | ||
| metafieldIdsToDelete | No |