Skip to main content
Glama

Update bundle

update_bundle
Destructive

Changes a bundle: its deals, discounts, texts, products it applies to, free gifts, upsells, schedule and look. Send only what changes, named as get_bundle returns it. Deals are addressed by short_id; add one with new: true and delete one with remove: true. A bundle that is off saves at once. A bundle that is on goes in two steps: the first call saves nothing and returns a picture of the change, the list of changes and a confirm_token. Show the merchant, and when they say yes, call again with the same id and confirm_token (you can omit changes, or resend the same changes). Use set_bundle_status to switch it on or off. For an A/B test, version B, C or D changes that version while the test is a draft, and saves at once.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
idYesBundle id from list_bundles.
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}}.
versionNoA/B test version. Default A, the live item. B, C and D change only while the test is a draft.
confirm_tokenNoFor a bundle that is on: the token from the preview, once the merchant said yes. When passed, changes may be omitted.

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.8/5.0
Behavior5/5

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

Annotations already declare destructive=true, idempotent=false and openWorld=true, but the description adds the non-obvious operational behavior: an off bundle saves immediately, an on bundle performs a preview that saves nothing and returns a picture of the change plus a confirm_token, and the second call repeats the same id and token. It also discloses the merge-vs-replace rule (objects merge, lists replace wholesale), which is exactly the destructive behavior an agent needs to know before calling.

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?

Front-loaded with purpose, then merge rules, deal addressing, save behavior, the two-step confirmation, and finally the A/B caveat — a logical order where every sentence carries an operational rule. The only redundancy is restating the merge/replace rule that also appears in the changes schema description, but it is short enough not to be wasteful.

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

Completeness5/5

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

For a four-parameter, deeply nested mutation with no output schema, the description covers everything an agent needs: partial-update semantics, the preview/confirm handshake and its return shape, when saving happens, the status-toggling alternative, and the A/B draft constraint. Nothing critical is left to inference.

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%, so the schema already documents every parameter; the baseline would be 3. The description still earns credit by adding cross-cutting semantics the schema cannot express — changes must be named as get_bundle returns them, deal entries are keyed by short_id, and confirm_token lets changes be omitted on the confirming call.

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?

Opens with a specific verb+resource ('Changes a bundle') and enumerates the surface it covers — deals, discounts, texts, products, free gifts, upsells, schedule, look. It also distinguishes itself from set_bundle_status, which it names as the tool for toggling on/off, so an agent can route between them without opening either schema.

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

Usage Guidelines5/5

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

Explicit when-to-use guidance: send only what changes, address deals by short_id, add with new:true, delete with remove:true, and use set_bundle_status to switch the bundle on or off. It also states the exclusion for A/B versions (B/C/D only change while the test is a draft), which is a real branch point an agent would otherwise get wrong.

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