get-collections
Query manual and smart Shopify collections with optional filters and field selection to control response size. Returns titles, handles, product counts, sort order, and smart collection rules.
Instructions
Query collections (manual & smart) with optional filtering. Supports field selection via 'fields' to reduce response size. Returns title, handle, products count, sort order, and rules for smart collections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first | No | Number of collections to return (default 25, max 250) | |
| query | No | Search query to filter collections (e.g. 'title:Summer' or 'collection_type:smart') | |
| 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 collection GID and title. Available: id, title, handle, description, sortOrder, productsCount, templateSuffix, updatedAt, ruleSet, image, seo |