Skip to main content
Glama

create_collection

Create a manual collection with a required title and optional description, handle, and product IDs. Returns the collection GID for subsequent operations. The collection appears immediately in your store.

Instructions

Create a new manual collection (rule-based 'smart' collections aren't supported here — use the Shopify admin for those). Title is required; description, handle, and an initial product list are optional. Returns the new collection's GID, which you'll need for subsequent add_products_to_collection or update_collection calls. Side effect: collection becomes immediately visible in the storefront unless you've configured publication channels separately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesDisplay title shown to shoppers. Required.
descriptionNoHTML body for the collection page. Plain text works; HTML tags render.
handleNoURL slug (e.g. 'summer-sale'). Defaults to a slugified title. Must be unique per shop.
productIdsNoProduct GIDs to seed into the new (manual) collection. Smart collections built from rules aren't supported by this tool — use the Shopify admin UI for those.
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries full burden. It discloses the storefront visibility side effect and return of GID for subsequent calls, but does not cover permissions, rate limits, or error handling. It adequately informs about behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single paragraph is front-loaded with the core purpose and limitation, concise but not terse. Every sentence contributes meaning without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 4 parameters, no output schema, and no annotations, the description covers purpose, required/optional fields, return value, side effects, and key limitations. It could mention error cases but is sufficiently complete for an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the description adds value: explains default handle behavior (slugified title, uniqueness), notes that description supports HTML rendering, and emphasizes productIds are GIDs. This goes beyond the raw schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it creates a new manual collection, specifies required vs optional fields, and explicitly distinguishes from unsupported smart collections. This differentiates it from sibling tools like add_products_to_collection and update_collection.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly advises against using this tool for smart collections, directing users to the Shopify admin, and implies use for manual collections. It does not mention alternatives for manual collection creation, but the context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/miller-joe/shopify-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server