Skip to main content
Glama

start_experiment

Runs preflight checks and starts a Flagsmith experiment only when checks pass and rollout limits are safe; ask a person first because it exposes real users to variants.

Instructions

Start an experiment. Runs preflight first and refuses if any check fails, or if the experiment would give new versions to more than half of all users (a person starts those). Ask the person before calling this: it exposes real users to the variants.

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": {
      "experiment": "<experiment>"
    },
    "name": "start_experiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
code_rootNoDirectory of the source tree to scan. Defaults to the directory the server runs in.
experimentYesExperiment id, exact experiment name, or its flag name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare the operation is not read-only and is open-world; the description goes well beyond that by disclosing the internal preflight step, the refusal semantics on failed checks, the >50% rollout guard, and the fact that real users are exposed. These are exactly the operational consequences an agent needs before invoking a mutating 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 short sentences, front-loaded with the action, then the guards, then the human-approval requirement. Nothing is redundant and the most decision-relevant constraint (real user exposure) is placed last for emphasis.

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 non-read-only, open-world tool with no output schema, the description covers the safety envelope, preflight dependency, and refusal behavior. It omits what a successful call returns or what state the experiment enters afterward, a minor gap given the absence of an output schema.

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 both parameters (code_root, experiment) are documented in the schema, including the id/name/flag-name flexibility. The description adds no parameter-level meaning, so the baseline 3 applies.

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 ("Start an experiment") and immediately qualifies the scope with the preflight gate and the half-of-users ceiling. It does not explicitly contrast itself with siblings like propose_rollout or apply_plan, so an agent must infer the boundary, but the action itself 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete precondition ("Ask the person before calling this") and two named refusal conditions that tell the agent when the call will not succeed. It stops short of pointing at an alternative tool for the cases it refuses, which leaves the fallback path unstated.

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