MCP tool reference

update_variation

Update a variation name, baseline flag, or traffic share. Requires mcp:write. Traffic changes on a running experiment are rejected and the remaining variations are rebalanced.

Update a variation name, baseline flag, or traffic share. Requires mcp:write. Traffic changes on a running experiment are rejected and the remaining variations are rebalanced.

Permissions

{
  "scope": "mcp:read and mcp:write",
  "role": "The existing entity create/update policy must allow this user; the mcp:write scope alone is insufficient.",
  "plan": "The billing account must have the MCP entitlement. Writes also require a writable billing mode and applicable entity limits.",
  "team": "The OAuth connection is approved for exactly one Team. Other team_id values cannot change the tenant."
}

Input

{
  "properties": {
    "variation_id": {
      "description": "Variation ID in the authenticated team",
      "type": "integer"
    },
    "name": {
      "description": "Optional variation name",
      "maxLength": 255,
      "type": "string"
    },
    "traffic_percentage": {
      "description": "Optional traffic share from 0 to 1. Other unlocked variations are rebalanced so the experiment total stays at 1.",
      "minimum": 0,
      "maximum": 1,
      "type": "number"
    },
    "traffic_locked": {
      "description": "Optional lock that keeps this variation out of automatic rebalancing",
      "type": "boolean"
    },
    "is_baseline": {
      "description": "Optional baseline flag. An experiment can have only one baseline.",
      "type": "boolean"
    }
  },
  "type": "object",
  "required": [
    "variation_id"
  ]
}

Output

{
  "type": "object",
  "properties": {
    "updated": {
      "type": "boolean"
    },
    "found": {
      "type": "boolean"
    },
    "data": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer"
            },
            "project_id": {
              "type": [
                "integer",
                "null"
              ]
            },
            "experiment_id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "traffic_percentage": {
              "type": "number"
            },
            "traffic_locked": {
              "type": "boolean"
            },
            "is_baseline": {
              "type": "boolean"
            }
          },
          "required": [
            "id",
            "project_id",
            "experiment_id",
            "name",
            "traffic_percentage",
            "traffic_locked",
            "is_baseline"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "updated",
    "found",
    "data"
  ]
}

Examples

Request arguments

{
  "variation_id": 101,
  "name": "Estimate above the button"
}

Result

{
  "updated": true,
  "found": true,
  "data": {
    "id": 101,
    "project_id": 1,
    "experiment_id": 101,
    "name": "Estimate above the button",
    "traffic_percentage": 0.5,
    "traffic_locked": false,
    "is_baseline": true
  }
}

Request arguments

{
  "variation_id": 101,
  "name": "Estimate above the button"
}

Result

{
  "updated": false,
  "found": false,
  "data": null
}

Errors

[
  {
    "status": 401,
    "description": "Missing, expired, or revoked OAuth access token."
  },
  {
    "status": 403,
    "description": "Missing MCP scope, team membership, plan entitlement, or user permission."
  },
  {
    "status": 404,
    "description": "The MCP server is disabled."
  },
  {
    "status": 429,
    "description": "Rate limited; honor Retry-After before retrying."
  },
  {
    "description": "Tool execution or validation failures are MCP error results. Inspect isError; a successful HTTP status alone does not indicate a successful tool call."
  }
]

An expired or revoked OAuth connection cannot connect. A missing scope, role, feature entitlement, or team access prevents the operation. See MCP setup.

Was this article helpful?

Need more help? Copy this article's details and paste them into a request on our feedback portal. You may need to sign in.

Open feedback portal

On this page