compareAtPrice
(string, optional): Compare-at price for showing discounts
How to use it
compareAtPrice is exposed by the Shopify MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the compareAtPrice tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Shopify MCP
npx shopify-mcpOther tools in Shopify MCP (39)
(string, required): "create", "update", or "delete"
/ before (string, optional): Pagination cursors
(string, optional): Barcode
(array of strings, optional): Collection GIDs to add the product to
(array of strings, optional): Collection GIDs to remove the product from
(string, optional): Description with HTML
(string, optional): URL slug. Auto-generated from title if omitted
(string, required): Shopify product GID
(number, default: 10): Maximum number of products to return
(array of objects, optional): Custom metafields (namespace, key, value, type)
(string, optional): New name for the option
(string, required): Option GID to update
(array of strings, required): Option GIDs to delete
(array, optional): Option values, e.g. [{ optionName: "Size", name: "A4" }]
(number, optional): New position
(string, optional): Price, e.g. "49.00"
(string, required): Shopify product GID
(array of objects, optional): Options to create inline, e.g. [{ name: "Size", values: [{ name: "S" }, { name: "M" }] }]. Max 3 options.
(string, optional): Type of the product
(string, optional): Raw Shopify query string (e.g. "status:active vendor:Nike tag:sale")
(boolean, optional): If true, old handle redirects to new handle
(boolean, optional): Reverse the sort order
(string, optional): Filter products by title (wraps in title:...)
(object, optional): { title, description } for search engines
(string, optional): SKU (mapped to inventoryItem.sku)
(string, optional): One of CREATEDAT, ID, INVENTORYTOTAL, PRODUCTTYPE, PUBLISHEDAT, RELEVANCE, TITLE, UPDATEDAT, VENDOR
(string, optional): "ACTIVE", "DRAFT", or "ARCHIVED". Default "DRAFT"
(string, optional): How to handle the default variant when creating. "DEFAULT" (removes "Default Title" automatically), "REMOVESTANDALONEVARIANT" (recommended for full control), or "PRESERVESTANDALONEVARIANT"
(array of strings, optional): Product tags
(boolean, optional): Whether the variant is taxable
(string, required): Title of the product
(boolean, optional): Whether inventory is tracked. Set false for print-on-demand
(array of strings, optional): Values to add
(array of strings, optional): Value GIDs to remove
(array, required): Variants to create or update. Each variant:
(string, optional): "LEAVEASIS" (default) or "CREATE" — controls whether new variant combinations are generated when adding options
(string, optional): Vendor of the product
(number, optional): Weight of the variant
(string, optional): "GRAMS", "KILOGRAMS", "OUNCES", or "POUNDS"