get-product-variants-detailed
Retrieve detailed Shopify product variant data—pricing, inventory, barcode, weight, tax code, options, metafields, and image—with field selection to limit response size.
Instructions
Get all variant fields for a product: pricing, inventory, barcode, weight, tax code, selected options, metafields, and image. Supports field selection via 'fields' to reduce response size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first | No | Number of variants to return (default 50, max 100) | |
| fields | No | IMPORTANT: Always specify this to minimize token usage and avoid flooding context with unnecessary data. Only the listed fields will be fetched from the API and returned. 'id' is always included. If you are unsure which fields are needed, ask the user before fetching all fields. Example: ["id", "title"] returns only variant GID and title. Available: id, title, displayName, sku, barcode, price, compareAtPrice, taxable, availableForSale, inventoryQuantity, position, createdAt, updatedAt, selectedOptions, media, inventoryItem, metafields | |
| productId | Yes | The product ID (e.g. gid://shopify/Product/123 or just 123) |