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 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 to test

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / groupId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • addedInput schema / properties / testVersionId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. Changed7 schema fields changed
    • removedInput schema / properties / challengerVersionId
      Removed value: -{
      -  "description": "Challenger version ID",
      -  "format": "uuid",
      -  "type": "string"
      -}
    • removedInput schema / properties / challengerWeight
      Removed value: -{
      -  "description": "Challenger traffic weight (%)",
      -  "maximum": 99,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedInput schema / properties / controlWeight
      Removed value: -{
      -  "description": "Control traffic weight (%)",
      -  "maximum": 99,
      -  "minimum": 1,
      -  "type": "integer"
      -}
    • removedInput schema / properties / identityKey
      Removed value: -{
      -  "description": "Fact key for sticky assignment (e.g. customer_id)",
      -  "type": "string"
      -}
    • addedInput schema / properties / testVersionId
      Added value: +{
      +  "description": "Challenger version ID to test",
      +  "format": "uuid",
      +  "type": "string"
      +}
    • addedInput schema / properties / trafficRate
      Added value: +{
      +  "description": "Traffic percentage routed to challenger (1-99)",
      +  "maximum": 99,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "groupId",
      -  "challengerVersionId",
      -  "controlWeight",
      -  "challengerWeight"
      -]New value: +[
      +  "groupId",
      +  "testVersionId",
      +  "trafficRate"
      +]
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already indicate a mutation (readOnlyHint=false) and non-destructive (destructiveHint=false). The description adds a critical behavioral detail about context.trafficKey and its effect on traffic splitting, which goes beyond annotations. It does not cover other side effects like overwriting an existing test, but the added detail is valuable.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences, front-loaded with the purpose and requirements, followed by a crucial behavioral caveat. Every sentence earns its place with no redundancy.

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 start operation with 3 required params and no output schema, the description covers the core function and the most important runtime behavior (trafficKey). It does not mention what happens to an existing test or success/failure responses, but given the tool's simplicity, it is largely sufficient.

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%, so the schema already documents all three parameters. The description restates the purpose of testVersionId and trafficRate but adds no new format, constraints, or relationships beyond what the schema provides.

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 clearly states the verb 'Start' and the resource 'A/B test on a policy group', and identifies the required inputs. It does not explicitly differentiate from sibling tools like adjust or stop, but the purpose is unambiguous.

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?

The description implies usage (start a test) but does not explicitly state when to use this versus the sibling adjust/stop tools. It mentions prerequisites (challenger version ID, traffic rate) but no exclusions or alternative routing.

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