Skip to main content
Glama

create_experiment

Create a new A/B test with variants, hypothesis, and metrics; get experiment and variant IDs plus SDK installation instructions for your codebase.

Instructions

Create a new A/B test. Returns the experiment ID, variant IDs, and SDK installation instructions. The installation snippet in the text block is what the agent should paste into the user's codebase. Variant IDs are server-assigned slugs (control, variant_b, variant_c, ...) — use those (not the variant names) when calling ship_winner later.

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": {
      "name": "<name>",
      "hypothesis": "<hypothesis>",
      "variants": "<variants>",
      "metrics": "<metrics>"
    },
    "name": "create_experiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesShort human-readable name.
metricsYesPrimary metric first. Secondary metrics track side-effects (e.g. pageviews alongside signups).
platformNoother
variantsYesControl first, then 1-4 test variants. IDs are server-generated (control, variant_b, variant_c, ...).
hypothesisYesWhat you expect will happen and why.
decision_modeNoquick_decision

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and delivers the non-obvious behaviors: the response includes a text block containing an install snippet the agent should surface, and variant IDs are server-assigned rather than user-supplied. It does not cover side effects like whether the experiment starts collecting data immediately, permission/auth requirements, or failure modes for a mutation tool.

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?

Three sentences, front-loaded with the action, then returns, then the downstream ID contract. No restatement of the title or filler; each sentence contributes an operational fact.

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 6-parameter mutation with no output schema, the description covers the return shape and the critical cross-tool linkage well enough to call it correctly. Gaps remain around decision_mode behavior and error/permission conditions, but nothing blocks a correct first invocation.

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 67%, so the schema already documents most fields, but the description adds meaning the schema cannot: the variant ID slugs are the handle to retain for the later ship_winner call, not the human-readable variant names. It leaves decision_mode and platform semantics entirely to the schema, which is an acceptable division.

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 ("Create a new A/B test") and immediately describes the return payload: experiment ID, variant IDs, and SDK installation instructions. It also names the downstream sibling (ship_winner), so an agent can place it precisely in the experiment lifecycle without opening another 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?

The description routes the agent forward in the workflow ("use those... when calling ship_winner later") and tells it what to do with the snippet ("paste into the user's codebase"), which is clear context. It stops short of explicit when-not-to-use guidance or prerequisites (e.g., calling this only before results exist).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools