Skip to main content
Glama

Draft an experiment

create_experiment

Draft an experiment on a page: one block (such as the hero, by block id from get_page) or the whole page, with a goal. It is created as a draft with variant B a copy of the page; change the variant with update_experiment_variant. A person checks it and starts it in CMS Orbit; you cannot start, stop or promote experiments. Returns the experiment's id, its status (draft) and its 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": {
      "pageId": "<pageId>",
      "name": "<name>",
      "goal": "<goal>"
    },
    "name": "create_experiment"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYesWhat counts as a success: a click in the tested block, a form sent, a visit to a page, or an event such as Booking paid.
nameYesA short name people recognise, such as Hero headline test.
pageIdYesThe page to test's id, as returned by search_content, list_pages or create_draft.
blockIdNoThe top-level block to test. Leave out to test the whole page.
hypothesisNoWhat you expect and why, such as: a clearer price in the hero gets more bookings.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / goal / oneOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "kind": {
      -        "const": "click",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "kind": {
      -        "const": "form",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "kind": {
      -        "const": "page",
      -        "type": "string"
      -      },
      -      "match": {
      -        "default": "exact",
      -        "enum": [
      -          "exact",
      -          "prefix"
      -        ],
      -        "type": "string"
      -      },
      -      "path": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "path"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "kind": {
      -        "const": "event",
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "kind",
      -      "name"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "kind": {
      +        "const": "click",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "kind": {
      +        "const": "form",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "kind": {
      +        "const": "page",
      +        "type": "string"
      +      },
      +      "match": {
      +        "default": "exact",
      +        "description": "exact: only that address. prefix: that address and every address under it.",
      +        "enum": [
      +          "exact",
      +          "prefix"
      +        ],
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "The page address that counts as a success, such as /book/thank-you.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "path"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "kind": {
      +        "const": "event",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "The event's name, such as Booking paid.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "kind",
      +      "name"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / hypothesis / description
      Added value: +"What you expect and why, such as: a clearer price in the hero gets more bookings."
    • addedInput schema / properties / name / description
      Added value: +"A short name people recognise, such as Hero headline test."
    • addedInput schema / properties / pageId / description
      Added value: +"The page to test's id, as returned by search_content, list_pages or create_draft."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only mark it as a non-destructive write in a closed world; the description goes well beyond that by disclosing that the experiment lands in draft status, that variant B starts as a copy of the page, that human review gates activation, and what the response contains. This is the context an agent needs to predict the effect of calling it.

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 tightly packed sentences: scope, side effects and lifecycle, then return value. No filler, and the most decision-relevant facts (draft creation, human activation) are front-loaded.

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?

With no output schema, the description usefully lists the return values (id, draft status, variants), and it covers the mutation's lifecycle constraints. Minor gap: it does not say whether the caller gains edit access afterward or how to discard a mistaken draft, though discard_experiment exists among the siblings.

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 description coverage is 100%, so the baseline is 3, but the description adds cross-tool provenance for blockId (by block id from get_page) and clarifies the block-vs-whole-page scope choice that the schema only implies via 'leave out'. It does not restate the goal kinds, which the schema already covers well.

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 (draft an experiment on a page), and defines the two scopes it supports: a single top-level block or the whole page, with a success goal. An agent can distinguish it from update_experiment_variant or list_experiments from the description alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly states what happens after creation (a person checks and starts it in CMS Orbit) and what the agent cannot do (start, stop or promote), which is exactly the guidance needed to avoid misuse. It also names update_experiment_variant as the follow-up tool for changing the variant, and get_page as the source of blockId.

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