Skip to main content
Glama

Stage changes as a draft (store not changed)

stage_changes
Destructive

Save changes to a live item (or app settings) as UNPUBLISHED changes (a draft). The live store does not change: it keeps the current version until the change is published (publish_draft or the merchant's Publish click), and the draft can be discarded. Repeated calls for the same item update that one set of unpublished changes (a value staged again replaces the earlier staged value; arrays replace the whole list in the draft). changes is a partial object in the write-guide field names. Popups shop settings (brand rules for the AI, the "popup code used" trigger, the daily expired-code clean-up) are kind 'shop' with id brandRules / redeemTrigger / codeCleanup.

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": {
      "app": "<app>",
      "id": "<id>",
      "changes": "<changes>"
    },
    "name": "stage_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesItem id from list_items ('settings' for apps with one settings object)
appYesWhich EA app: sticky_cart = EA Sticky Add to Cart Drawer (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, every editor setting incl. custom CSS / HTML and templates, cart A/B tests, cart translations, checkout payment / shipping method rules); bundles = EA Bundles & Quantity Breaks (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA Email Popup & Spin Wheel (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA AI Language Translate (store translation and language selector); accessibility = EA Accessibility ADA WCAG EAA (accessibility widget and store accessibility scans); page_speed = EA SEO & Page Speed Optimizer (speed optimisations and SEO); free_shipping_bar = EA Free Shipping Bar & Upsell (free shipping progress bar); rewards_bar = EA Rewards Bar & Free Gifts (gift and rewards progress bar); announcement_bar = EA Announcement Bar Banner (announcement bar); countdown_bar = EA Countdown Timer Bar (countdown timer bar)
kindNo
storeNoWhich connected store (its myshopify address, e.g. other-store.myshopify.com). Leave it out for the default store; list_stores shows them.
changesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / app / description
      Previous value: -"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, every editor setting incl. custom CSS / HTML and templates, cart A/B tests, cart translations, checkout payment / shipping method rules); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"New value: +"Which EA app: sticky_cart = EA Sticky Add to Cart Drawer (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, every editor setting incl. custom CSS / HTML and templates, cart A/B tests, cart translations, checkout payment / shipping method rules); bundles = EA Bundles & Quantity Breaks (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA Email Popup & Spin Wheel (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA AI Language Translate (store translation and language selector); accessibility = EA Accessibility ADA WCAG EAA (accessibility widget and store accessibility scans); page_speed = EA SEO & Page Speed Optimizer (speed optimisations and SEO); free_shipping_bar = EA Free Shipping Bar & Upsell (free shipping progress bar); rewards_bar = EA Rewards Bar & Free Gifts (gift and rewards progress bar); announcement_bar = EA Announcement Bar Banner (announcement bar); countdown_bar = EA Countdown Timer Bar (countdown timer bar)"
  2. Changed1 schema field changed
    • changedInput schema / properties / app / description
      Previous value: -"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, checkout payment / shipping method rules); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"New value: +"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, every editor setting incl. custom CSS / HTML and templates, cart A/B tests, cart translations, checkout payment / shipping method rules); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"
  3. Changed1 schema field changed
    • changedInput schema / properties / app / description
      Previous value: -"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"New value: +"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals, checkout payment / shipping method rules); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"
  4. Changed1 schema field changed
    • changedInput schema / properties / app / description
      Previous value: -"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • Page Speed Boost (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"New value: +"Which EA app: sticky_cart = EA • Sticky Cart (cart drawer, sticky add-to-cart bar, quick buy, cart upsells, rewards / free-shipping goals); bundles = EA • Bundles & Upsell (bundle deals, quantity breaks, upsell popups, checkout upsells); popups = EA • Email Popups (spin-to-win wheel and email / SMS sign-up popup campaigns); translate = EA • Auto Translate (store translation and language selector); accessibility = EA • Accessibility (accessibility widget and store accessibility scans); page_speed = EA • SEO & Page Speed (speed optimisations and SEO); free_shipping_bar = EA • Free Shipping Bar (free shipping progress bar); rewards_bar = EA • Gift & Rewards Bar (gift and rewards progress bar); announcement_bar = EA • Announcement Bar (announcement bar); countdown_bar = EA • Countdown Bar (countdown timer bar)"
  5. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations by spelling out that the live store is untouched and identifying exactly what is overwritten on repeat calls ('a value staged again replaces the earlier staged value; arrays replace the whole list'). That reconciles the otherwise alarming destructiveHint=true / idempotentHint=false pair with the 'store not changed' framing. It does not cover permissions, auth, or limits, but the critical side-effect semantics are disclosed.

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 the highest-value fact (nothing is published) before the merge semantics and the niche popups detail. Dense but nearly every sentence adds operational information; the parenthetical app-name expansions are not present here, so waste is minimal, though the single long paragraph could be broken up.

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 5-parameter mutation with a nested object and no output schema, it covers side effects, merge behavior, and the special-case ids needed to call it correctly. The gap is that with no output schema the description never says what comes back (e.g., a draft id or the staged delta), which an agent would want to chain into preview/publish.

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?

Adds real meaning beyond a 60%-covered schema: 'changes' is identified as a partial object keyed by write-guide field names (pointing to get_write_guide), the undefined 'kind' parameter is explained for the shop-settings case, and 'id' is tied to list_items/'settings'. The merge-vs-replace semantics for arrays are also given. Left undocumented: the exact accepted shape of the nested 'changes' object.

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?

States a specific verb and resource ('Save changes to a live item (or app settings) as UNPUBLISHED changes') and immediately frames the scope with 'The live store does not change.' It distinguishes itself from publishing ('until the change is published (publish_draft or the merchant's Publish click)') and from discard, so an agent knows this is the staging step, not the commit.

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?

Clear context: use this to prepare edits without touching the live store, with the draft later published or discarded. It also gives a concrete usage hint for popups shop settings with the specific ids (brandRules / redeemTrigger / codeCleanup). It stops short of naming the sibling staging alternatives (create_draft, edit_draft) or stating when staging is the wrong choice.

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