Skip to main content
Glama

Change an upsell

update_upsell
Destructive

Change a one-click upsell on one of the seller's checkouts, draft or live: headline, wording, price, delivery link, its own page (html; empty removes it), or turn it off (active: false; in a chain, buyers then pass it along its no). Get its id from get_product. To change the order or the yes and no paths, use set_offer_chain. On a draft this applies straight away. On a LIVE checkout it applies straight away too (status applied; the seller can roll it back on their Approvals page), unless it touches money: a price, currency, billing, the delivery link, payment plans, an early-bird price or campaign, or a retention discount or pause. Those create an approval request instead (status pending_approval): tell the seller, give them the approvalUrl, and check later with approval_status. To change other things straight away, don't send money fields in the same call. Never invent a price or a link.

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": {
      "product": "<product>",
      "upsell": "<upsell>"
    },
    "name": "update_upsell"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoHTML for the upsell page. Empty removes it and uses the built-in layout.
priceNoPrice in the checkout's currency, in major units (27 = $27.00).
activeNoFalse hides it from buyers without deleting it.
upsellYesThe upsell's id, from get_product.
accountNoOnly to work in a client's account: its id from list_accounts. Leave it out for your own account.
productYesThe checkout's id or slug.
headlineNoThe offer's title, e.g. "Add the swipe file".
deliveryUrlNohttps:// link where buyers get this after purchase. Required.
descriptionNoOne or two sentences on why it's worth it.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it is mutating, destructive, and non-open-world. The description adds what actually happens: immediate application on drafts, immediate application on live checkouts with seller rollback via the Approvals page, and an exception path where money-touching fields (price, currency, billing, delivery link, payment plans, early-bird, retention discount/pause) produce status pending_approval instead of applied. It also flags the safety constraint 'Never invent a price or a link.'

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 payload (draft vs live vs approval path) is front-loaded and every clause carries information an agent needs before calling. The parallel phrasing 'On a draft this applies straight away. On a LIVE checkout it applies straight away too' is slightly redundant, but the repetition is deliberate contrast that sets up the money-field exception.

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 9-parameter destructive mutation tool with no output schema, the description covers the outcome states (applied, pending_approval), the required follow-up call, and the caller-side safety constraint. It also steers the agent away from the alternative tools that handle adjacent concerns (get_product, set_offer_chain, approval_status).

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 and most field-level meaning is already documented. The description earns above baseline by mapping which parameters carry approval-triggering consequences (money fields) and by clarifying that an empty html removes the page and active:false hides rather than deletes. The duplication of individual field definitions is why it is not a 5.

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 ('Change a one-click upsell on one of the seller's checkouts') and enumerates the mutable surface: headline, wording, price, delivery link, its own html page, or deactivation. It also distinguishes itself from the two nearest siblings by naming get_product for the id and set_offer_chain for chain order and yes/no paths.

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?

Gives explicit routing instructions ('Get its id from get_product', 'To change the order or the yes and no paths, use set_offer_chain') plus a concrete operational rule — don't send money fields in the same call if you want other changes applied immediately. It also prescribes the post-call follow-up (tell the seller, share approvalUrl, poll approval_status).

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.