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.
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. |