get_collection
Retrieve a Shopify collection by its global ID, including title, handle, sort order, description, and optional product list. Set productsFirst to 0 for metadata only.
Instructions
Fetch a single collection by GID with full details — title, handle, sort order, description, and the first N products inside it. Pass productsFirst=0 for metadata-only when you don't need the products array. Returns a friendly text view; pageInfo flags when more products exist beyond the requested page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Collection GID, e.g. 'gid://shopify/Collection/123456'. Get one from list_collections. | |
| productsFirst | No | How many products to include alongside the collection. Pass 0 to skip products entirely (faster for collection-only metadata). |