Skip to main content
Glama

Duplicate cart

duplicate_cart

Copies a cart drawer with its sections, look and translations. The copy is off. Use it to try a variation without touching the live cart.

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": "duplicate_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesCart id from list_carts.
nameNoName for the copy. Default: the original name plus Copy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/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 write, so the bar is lower. The sentence 'The copy is off' is intended as meaningful behavioral disclosure (the duplicate is created inactive/disabled), but the phrasing is cryptic and could be misread; combined with the absence of any note on the return value or repeated-call behavior, it only partially delivers.

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 short sentences, front-loaded with the core action and followed by purpose. The only weak line is the fragment 'The copy is off', which is terse to the point of ambiguity rather than wasteful.

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 two-parameter duplication tool with full schema coverage and no output schema, the definition covers what is copied, why you'd do it, and one state detail about the result. The main residual gap is that an agent can't tell what identifier the new cart gets, but that is a minor omission at this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%: the schema already documents 'id' as coming from list_carts and 'name' with its default rule. The description adds nothing about parameters, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Copies a cart drawer with its sections, look and translations.' It goes beyond the title by enumerating what gets copied, so an agent knows this deep-copies configuration rather than just creating an empty cart. It does not explicitly name a sibling (e.g. create_cart) for contrast, keeping it short of a 5.

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

Usage Guidelines3/5

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

'Use it to try a variation without touching the live cart' gives a clear motivating scenario, which is more than most mutation tools offer. However, there is no guidance on when not to use it, no mention of alternatives like create_cart or create_ab_test, and no note on how repeated duplication should be handled.

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