get-metafield-definitions
Retrieve custom Shopify metafield definitions for a resource type such as PRODUCT or ORDER, returning namespace, key, name, type, and validations to support schema discovery.
Instructions
Discover custom metafield definitions for any resource type (PRODUCT, ORDER, CUSTOMER, etc.). Returns namespace, key, name, type, and validations.
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": {
"ownerType": "<ownerType>"
},
"name": "get-metafield-definitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first | No | Number of definitions to return (default 50, max 100) | |
| ownerType | Yes | The resource type to get metafield definitions for (e.g. PRODUCT, ORDER, CUSTOMER). Note: Some Shopify types use concatenated names without underscores (PRODUCTVARIANT not PRODUCT_VARIANT, DRAFTORDER not DRAFT_ORDER, CARTTRANSFORM not CART_TRANSFORM). Underscore aliases are accepted and normalized automatically. |