list_metafields
List metafields from a Shopify resource to inspect custom data. Filter by namespace to scope results. Use before setting metafields or to audit existing values.
Instructions
List metafields attached to a single Shopify resource. Returns each metafield's namespace.key, type, current value, and optional description. Pass a namespace to scope the read to one app/integration's metafields (recommended when the resource has many). Empty result is normal for resources without metafields. Use this to inspect existing custom data before calling set_metafield, or to audit which apps have written what to a record.
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": "list_metafields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ownerId | Yes | GID of the resource to read metafields from. | |
| namespace | No | Filter to a single namespace. Omit to return all. | |
| first | No |