list_product_metafields
Retrieve all metafields for a Shopify product. Includes key, namespace, type, and value, with optional namespace filtering.
Instructions
List all metafields attached to a product via GraphQL. Returns key, namespace, type, jsonValue, and more. Optionally filter by namespace.
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": {
"product_id": "<product_id>"
},
"name": "list_product_metafields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | The numeric Shopify product ID (or GID like 'gid://shopify/Product/123'). | |
| namespace | No | Filter by metafield namespace (e.g. 'custom'). | |
| limit | No | Number of metafields to return (1–100). Default: 50. |