manage_shopify_metafields
Shopify metafields destructive
Description
Custom fields (metafields) on the merchant's Shopify store. action list (metafieldOwnerId: a product, variant, collection, order, draft order, page, article or blog id, or "shop"; namespace), set (metafields [{ownerId, namespace, key, type, value}] up to 25, or one with ownerId, namespace, key, type, value; type e.g. single_line_text_field, multi_line_text_field, number_integer, number_decimal, boolean, json, url, date; an existing field keeps its type), delete (confirm:true), definitions (ownerType PRODUCT, ORDER, COLLECTION, …), create_definition (name, namespace, key, type, ownerType, description). Customer, location and market metafields are not available: Hermoso does not ask for those permissions. Read back from Shopify. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
action | "list" | "set" | "delete" | "definitions" | "create_definition" | default list |
metafieldOwnerId | string | what the metafields belong to: gid://shopify/Product/123 and the like, or "shop" |
ownerId | string | older name for metafieldOwnerId (MCP only) |
namespace | string | |
key | string | |
type | string | |
value | string | a JSON value is stored as text |
metafields | object[] | set / delete: up to 25 |
metafields[].ownerId | string | |
metafields[].namespace | string | |
metafields[].key | string | |
metafields[].type | string | |
metafields[].value | string | |
ownerType | string | definitions: PRODUCT, PRODUCTVARIANT, COLLECTION, ORDER, DRAFTORDER, PAGE, ARTICLE, BLOG, SHOP, … |
name | string | create_definition |
description | string | |
pin | boolean | |
limit | number | |
confirm | boolean | delete: true after the user agreed |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/manage_shopify_metafields.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"manage_shopify_metafields","arguments":{}}}
CLI
hermoso call manage_shopify_metafields --json '{}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
manage_shopify_collectionsShopify collectionsmanage_shopify_pagesShopify Online Store pagesmanage_shopify_draft_ordersShopify draft ordersmanage_shopify_redirectsShopify URL redirectsset_shopify_inventorySet or adjust Shopify stockmanage_shopify_menusShopify navigation menusget_shopify_inventoryGet Shopify stockmanage_shopify_marketsShopify marketslist_shopify_locationsList Shopify locationsmanage_shopify_productsShopify products