Skip to main content
Glama

Switch cart on or off

set_cart_status
DestructiveIdempotent

Switches a cart drawer on (shoppers get it instead of the theme's cart, and checkout applies its reward discounts) or off (shoppers get the theme's cart back). One cart is live at a time: switching one on switches the live one off, so confirm with the merchant first. Switching on needs the Plus plan. The result says whether the live theme shows the cart drawer and, if not, gives the merchant a link to turn it on.

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>",
      "status": "<status>"
    },
    "name": "set_cart_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCart id from list_carts.
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the cross-resource side effect that turning one cart on silently turns the live one off, the Plus plan requirement, and what the response conveys. The destructiveHint annotation is corroborated and given operational meaning by the 'confirm with the merchant first' warning.

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?

Three sentences, all load-bearing, with the core action front-loaded before the parenthetical explanations. The nested parentheticals make individual sentences dense but there is no filler or repetition.

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?

No output schema exists, yet the description still tells the agent what the result reports and that it may include a remediation link. Combined with the plan prerequisite and side-effect warning, an agent has everything needed to call it correctly and to warn the merchant.

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 only 50%, but the description compensates by explaining what each enum value actually does for shoppers, which is the semantic the bare enum ['on','off'] lacks. The id parameter's origin (list_carts) is left to the schema, which already documents it.

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 (switch a cart drawer on/off) and immediately defines what each state means to the end shopper. It is clearly distinguishable from set_bundle_status, which operates on a different resource, without needing to name it.

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?

Gives concrete when-to guidance for both values (on = shoppers get the cart drawer plus reward discounts at checkout; off = theme cart returns) and adds a real prerequisite plus a caution: one cart is live at a time, so confirm with the merchant first. It stops short of pointing to a sibling for the alternative path, so it is strong but not exhaustive.

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