Skip to main content
Glama

Create A/B test

create_ab_test
Destructive

Makes a draft A/B test on a bundle or a cart. Version A is the bundle or cart as it is; version B starts as a copy of A. Pass changes to make B differ in the same call, named as update_bundle or update_cart take them. Returns a picture of A and B. A draft shows shoppers nothing. Change B later with update_bundle or update_cart and version B, add versions or set traffic with update_ab_test, and start it with start_ab_test. A bundle or cart has one open test at a time. Custom CSS and a bundle's products belong to every version, so they change on A.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
nameNoThe test's name. Default: the item's name and a number.
cart_idNoTest this cart, from list_carts.
changesNoChanges for version B, as update_bundle or update_cart take them.
bundle_idNoTest this bundle, from list_bundles. Send bundle_id or cart_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds several facts the annotations cannot express: the created test is a draft that 'shows shoppers nothing', the response is 'a picture of A and B', and custom CSS plus a bundle's products are shared across versions so editing them mutates A. That last point explains the real blast radius behind destructiveHint=true and is exactly the kind of disclosure an agent needs 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 the action and the A/B model, then lifecycle, then caveats — a sensible order with no filler. The middle sentence ('Change B later with update_bundle or update_cart and version B, add versions or set traffic with update_ab_test...') is grammatically tangled and could be tightened.

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?

No output schema exists, and the description does cover the return ('a picture of A and B') plus the draft semantics, shared-resource caveat, and lifecycle. Minor gaps remain: neither bundle_id nor cart_id is schema-required, and the description does not reiterate that exactly one of them must be supplied.

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 coverage is 100%, so every parameter including the nested `changes` object is already documented. The description clarifies that `changes` applies only to version B and may be omitted (B starts as a copy of A), but restates the schema's own note that changes are shaped like update_bundle/update_cart input. Marginal value over the schema, so baseline 3.

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 ('Makes a draft A/B test on a bundle or a cart') and immediately defines the A/B model (A is the current item, B starts as a copy). This clearly separates it from start_ab_test, update_ab_test, and create_bundle/create_cart, which are named later in the text.

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?

Explicitly routes the agent: change B with update_bundle/update_cart, add versions or set traffic with update_ab_test, and launch with start_ab_test. It also states a hard constraint ('A bundle or cart has one open test at a time'), which tells the agent when this call is not available and implies the update path instead.

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