Skip to main content
Glama

Update A/B test

update_ab_test
Destructive

Changes a draft A/B test: its name, the traffic each version gets, or its versions. add_version adds a version that copies the one you name, and splits traffic evenly. remove_version removes B, C or D; the later versions move up a letter and traffic splits evenly. Traffic is 5 to 95 percent per version, up to two decimals, and totals 100. A test has two to four versions. To change what a version shows, use update_bundle or update_cart with version. A started test can't change.

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

Input Schema

NameRequiredDescriptionDefault
nameNoThe test's new name.
trafficNoPercent of shoppers per version, like {"A": 50, "B": 50}. Versions you leave out keep theirs.
ab_test_idYesTest id from list_ab_tests.
add_versionNoAdd a version that copies this one.
even_trafficNoSplit traffic evenly between the versions.
remove_versionNoRemove this version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds substantive behavior they cannot express: add_version copies the named version and splits traffic evenly, remove_version re-letters later versions and re-splits traffic, and the 5–95% / two-version-to-four-version invariants. The draft-only restriction is a real operational constraint disclosed in prose.

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 core verb and scope, and each sentence carries operational information. There is mild redundancy in restating numeric bounds already present in the schema, and it reads as one dense block rather than separated concerns.

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?

With six parameters, a nested traffic object, and no output schema, the description covers the mutation's semantics, valid ranges, structural limits, and preconditions. Everything an agent needs to decide whether and how to call it is present.

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 100%, so the baseline is 3, but the description earns extra credit by explaining effects the schema omits — notably that remove_version causes later versions to move up a letter and traffic to be redistributed, and that add_version clones the named version. Minor repetition of schema constraints (5–95%, totals 100) keeps it from 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 ('Changes a draft A/B test') and immediately scopes the mutable surface to name, traffic, and versions. It also carves out what it does not do ('To change what a version shows, use update_bundle or update_cart'), so an agent can distinguish it from the content-editing siblings without opening a schema.

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 when-not guidance: 'A started test can't change', which defines the precondition for use. It also names the alternative tools (update_bundle, update_cart with version) for the adjacent task of editing version content, leaving little to inference.

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