Skip to main content
Glama

Create bundle

create_bundle

Creates a bundle from a template, in the store's colors and language, with any changes applied. Templates: volume_discount (quantity breaks: 1, 2, 3 units with growing discounts), bxgy (buy X get Y free), mix_and_match (several products in one deal), complete_the_bundle (the product plus chosen companions), subscription (quantity breaks with subscribe and save), quantity_picker (quantity breaks in a grid). To set the deals, list them in changes.options in order, without short_id: they replace the template's deals. The new bundle is off: shoppers don't see it until set_bundle_status switches it on. Look up product, variant and collection ids with search_products first.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_bundle"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName in the app. Shoppers don't see it. Unique in the store.
changesNoFields to change, named as get_bundle returns them. Objects merge into what is there; lists replace the whole list. Text may use {{saved_total}}, {{saved_percent}} and {{product}}; mix and match item titles may use {{product_title}}.
templateNoDefault volume_discount.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / changes / properties / checkbox_upsells / properties / items / items / properties / variant_gids / description
      Added value: +"Variants shoppers may get. Empty: every variant of the product."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent creation tool. The description adds meaningful behavior beyond that: the new bundle is off until set_bundle_status turns it on, and ordered changes.options without short_id replace the template's deals.

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

Conciseness5/5

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

The purpose is front-loaded, followed by template choices, deal mechanics, activation behavior, and the id lookup prerequisite. The template list is long but earns its place by helping the agent choose the right starting point.

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?

For a complex nested creation tool, the description covers the essential non-schema behavior: template meaning, deal replacement, off-by-default visibility, and id lookup. It does not describe the return shape or what identifier the created bundle exposes, but the rich schema carries most field-level detail.

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 description coverage is 100%, so the baseline is 3. The description adds useful meaning beyond the schema by explaining what each template type is and reiterating that changes.options is ordered and replaces the template's deals when no short_id is provided.

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 uses a specific verb and resource: 'Creates a bundle from a template.' It also enumerates six template types, making the creation scope concrete and distinguishable from status/search siblings.

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 gives clear context for using the tool: create from a template, set deals through changes.options, look up ids with search_products first, and activate later with set_bundle_status. It does not explicitly compare against update_bundle or duplicate_bundle for existing bundles.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources