Skip to main content
Glama
This connector has been deprecated

This listing duplicates LexQ (io.lexq/lexq), which follows the official MCP Registry entry. Use that listing instead.

Start A/B Test

lexq_ab_test_start
Destructive

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 contexts.trafficKey on each execution request; requests that omit it never reach the challenger and the test stays at 0%. An execution request that still sends a field under the old name "context" (now "contexts") is rejected with C-001 (400), even when its value is empty or null. Starting cancels the group's pending scheduled deployment. Starting while a test is already running replaces its challenger and traffic rate.

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": {
      "groupId": "<groupId>",
      "testVersionId": "<testVersionId>",
      "trafficRate": "<trafficRate>"
    },
    "name": "lexq_ab_test_start"
  }
}

Input 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. 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)$"
  3. 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"
      +]
  4. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond destructiveHint=true, the description discloses specific side effects: cancelling the group's pending scheduled deployment and replacing a running test's challenger and traffic rate. It also names exact failure modes with error codes (P-016 for cross-group versions, C-001/400 for the legacy "context" field including empty or null values), which is materially useful for pre-call validation.

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 purpose and required inputs, then layered with constraints and side effects in descending importance. Sentences are long and slightly dense, but each one carries distinct information; nothing is filler.

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 destructive, no-output-schema mutation, the description covers preconditions, side effects, and error codes thoroughly. It does not say how to verify the resulting split or what the call returns, which is a modest gap rather than a blocking one.

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% and already documents all three parameters, so the baseline is a 3. The description still adds value by elevating the cross-group rejection rule for testVersionId and by explaining that trafficRate is realized through contexts.trafficKey on each execution request - semantics not present in the schema.

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 opening sentence pairs a specific verb with a specific resource (start an A/B test on a policy group) and immediately states the two required inputs and the group-membership constraint, so it is distinguishable from the adjust/stop siblings by effect. It stops short of naming any sibling explicitly, so the differentiation is inferred from behavior rather than stated.

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?

Constraints are concrete: the challenger must be a published version of the same group, a trafficKey is needed on execution requests or the split stays at 0%, and starting while a test runs replaces its challenger and rate. What is missing is explicit routing guidance to the sibling tools (e.g. use adjust to change a running test's rate, stop to end one).

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