Skip to main content
Glama

Start A/B test

start_ab_test
Destructive

Starts a draft A/B test: shoppers on the bundle or cart are split by the traffic and each sees one version. It goes in two steps. The first call starts nothing: it checks the test can start and returns a picture of each version, what each changes against A, the traffic and a confirm_token. Show the merchant, and when they say yes, call again with the same ab_test_id plus confirm_token. The bundle or cart must be on. A started test can't change or be undone; end_ab_test ends it with the version the merchant picks. A test runs at most 90 days.

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": {
      "ab_test_id": "<ab_test_id>"
    },
    "name": "start_ab_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
ab_test_idYesTest id from list_ab_tests.
confirm_tokenNoThe token from the first call, once the merchant said yes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds the crucial detail that the first call starts nothing and only validates, that a started test cannot be changed or undone, and that tests are capped at 90 days. These are exactly the irreversible-action warnings an agent needs and are not derivable from the annotations.

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 verb and the effect on shoppers, then walks through the two-step protocol, prerequisites, and irreversibility in a compact sequence. Sentences are dense but each carries information; minor tightening is possible in the version-preview sentence but nothing is redundant.

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?

Covers everything an agent needs for a destructive, non-idempotent, no-output-schema tool: the draft-then-confirm protocol, prerequisites, irreversibility, the 90-day limit, and the sibling that ends a test. Nothing material is left to inference.

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%, and the schema already documents ab_test_id as coming from list_ab_tests and confirm_token as coming from the first call. The description reinforces confirm_token's role in the two-step flow but adds no new format, validation, or edge-case semantics for either parameter, so the baseline of 3 applies.

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 ('Starts a draft A/B test') and immediately explains the mechanism (shoppers split by traffic, each sees one version). It is clearly distinguishable from create_ab_test/update_ab_test by describing the activation action and its two-step confirmation, and from end_ab_test by naming that sibling as the termination path.

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 explicit when-to-use guidance: call once to preview versions and get a confirm_token, then call again with the same ab_test_id plus confirm_token once the merchant approves. It states the prerequisite ('bundle or cart must be on') and names end_ab_test as the alternative for stopping. It does not explicitly contrast with create_ab_test or update_ab_test, which is the remaining gap.

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