Skip to main content
Glama

Start A/B Test

lexq_ab_test_start

Start an A/B test on a policy group. Requires a challenger version ID and traffic rate. The challenger must be a published version of the same group; a version from another group is rejected with P-016. The split is computed from context.trafficKey on each execution request; requests that omit it never reach the challenger and the test stays at 0%.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupIdYesPolicy group ID
trafficRateYesTraffic percentage routed to challenger (1-99)
testVersionIdYesChallenger version ID. Must be a published version of this group

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / testVersionId / description
      Previous value: -"Challenger version ID to test"New value: +"Challenger version ID. Must be a published version of this group"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only mark this as a non-read-only, non-destructive mutation, so the description carries most of the burden and delivers real substance: the P-016 rejection for cross-group versions and the non-obvious failure mode where requests omitting context.trafficKey leave the test at 0%. It does not cover what happens if a test is already active or what side effects/return values follow on success.

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?

Four sentences, front-loaded with purpose followed by prerequisites and failure modes; every sentence carries information. The final sentence about trafficKey is slightly dense but still earns its place.

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?

Covers prerequisites, the cross-group rejection, and the traffic-split mechanism, which is strong for a 3-required-param mutation tool with no output schema. Gaps remain around response shape and the behavior when a test is already running, but nothing critical to correct invocation is missing.

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% and the schema already documents all three parameters, including the "published version of this group" constraint on testVersionId. The description restates those constraints and adds the trafficKey routing detail, which is behavior rather than parameter semantics, so the baseline 3 holds.

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 ("Start an A/B test on a policy group") and is immediately distinguishable from the adjust/stop siblings by name and opening sentence. An agent can tell what this does without opening the schema.

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 clear preconditions for use: a challenger version ID and traffic rate are required, and the challenger must be a published version of the same group. It does not explicitly name lexq_ab_test_adjust or lexq_ab_test_stop as the alternatives once a test is running, so routing between siblings is only implied.

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.