Create/Update Shopify Metafield
shopify_set_metafieldCreate or update a metafield on Shopify resources such as products, collections, pages, or articles to store custom data by namespace, key, value, and type.
Instructions
Upsert a metafield on any resource you have write access to (products, collections, pages, articles).
Common types: single_line_text_field, multi_line_text_field, integer, boolean, json, url, color, date, file_reference
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>",
"namespace": "<namespace>",
"key": "<key>",
"value": "<value>",
"type": "<type>"
},
"name": "shopify_set_metafield"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| type | Yes | Metafield type e.g. single_line_text_field, json | |
| value | Yes | ||
| ownerId | Yes | Owner GID | |
| namespace | Yes |