Skip to main content
Glama

Start an A/B test

experiment_create

Size and start an A/B test on one page against one goal. Every visit is in the test, in either tracking mode: a visitor without a stable id is assigned by the visit, with nothing stored. Reads the page's last 28 days, works out the visitors each variant needs to detect the lift (mde, default 0.2 = 20%) and how many weeks that takes. A quiet page is never refused: a slow test starts all the same, with the numbers, and reads not enough yet until it has an answer. On success it returns the code to put on the page (Next.js with @shipfound/next, or plain HTML with sf.variant), which you ship as a PR. The control is the first variant. Free.

Input Schema

NameRequiredDescriptionDefault
keyYesLowercase key the page's code uses, e.g. pricing-headline
mdeNo
goalYesA goal on the site, by name or id (see goals)
nameYes
pathYesThe page, e.g. /pricing (* as a wildcard)
siteNoThe site's domain, when the workspace tracks more than one
variantsNoDefault ["control", "b"]; the control first
hypothesisYesWhat changes, for whom, why it should move the goal, and the analytics evidence

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses tracking behavior (visit-level assignment, nothing stored for anonymous visitors), that it reads 28 days of page data, that it computes required sample size and duration from mde, that low-traffic pages still start with "not enough yet" status, and what is returned (variant-ship code for Next.js or plain HTML). Those are exactly the side effects and outputs an agent cannot get from readOnlyHint/destructiveHint=false.

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, then progressively detail. Nearly every sentence carries information, including the trailing "The control is the first variant" and "Free." The tracking-mode sentence is the densest and slows first-read comprehension slightly, keeping it off a 5.

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?

No output schema exists, and the description covers the return value (the code to ship as a PR) and the success-but-early state ("not enough yet"), which is the critical piece. It leaves unaddressed what happens on a duplicate or conflicting key and whether recurring tests per page are limited — minor for a non-destructive create.

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 75%, so the baseline is 3; the description earns an extra point by explaining the one parameter the schema leaves bare — mde, its default of 0.2 and its 20% meaning — plus reaffirming that the control is the first variant. Site, key, path, goal and hypothesis are already documented in the schema, so no further compensation is required.

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?

States a specific verb and resource — "Size and start an A/B test on one page against one goal" — which is far more precise than the title alone. The "one page" scope implicitly separates it from app_experiment_create, but no sibling is named explicitly, so an agent must infer the boundary.

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?

Usage is implied through scope (one page, one goal, control first) rather than stated: there is no explicit "use this when..." or pointer to experiment_results / experiment_close for the follow-up or to app_experiment_create for app tests. The "quiet page is never refused" note does pre-empt a real agent concern (insufficient traffic), which is a partial when-not clause.

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