Skip to main content
Glama
Wingify FE MCP Server

Wingify FE MCP Server

Official
by wingify

MigrateStatsigExperimentsToWingify

Migrates Statsig experiments to Wingify feature flags by creating variables, metrics, variations, and a traffic-split testing rule so experiments can be recreated in Wingify.

Instructions

Migrate Statsig experiments to Wingify FE. For each experiment this tool: (1) lists all experiments from Statsig, (2) creates a Wingify feature flag whose variables are derived from the experiment's parameters (the control group provides the defaults, with an inferred data type per parameter), attaching all equivalent Wingify metrics from the experiment's primaryMetrics and secondaryMetrics when they exist in Wingify — the first primary metric is the sole Wingify primary goal, all other attached metrics are secondary — (3) creates a variation for each non-control group from its parameterValues, and (4) creates a FLAG_TESTING rule that splits traffic across the control (default) and variations by each group's size. The testing rule is enabled when the Statsig experiment is live (status active or running), using rule ids from the create response; the feature flag itself stays disabled after migration. Run metrics migration first so product/custom metrics exist in Wingify.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "MigrateStatsigExperimentsToWingify"
  }
}

Input Schema

NameRequiredDescriptionDefault
environmentIdOrKeyNoTarget Wingify environment id or key for the testing rule. Defaults to Production (id "1").1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.0

TDQS

A4/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 does so well: it discloses that feature flags, variations and FLAG_TESTING rules are created, that the flag remains disabled while the rule is enabled only when Statsig status is active/running, and that rule ids come from the create response. It omits auth/permission requirements, idempotency (what happens on a second run), and partial-failure behavior, which are material for a multi-step mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense with genuinely useful detail, but the single run-on paragraph with nested parentheticals ("(the control group provides the defaults, with an inferred data type per parameter)") makes it hard to parse. A numbered outline would deliver the same four steps far more legibly.

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 complex multi-entity migration with no output schema, it explains the pipeline, the metric-mapping rule (first primary metric as sole primary goal), the traffic-split rule, and the resulting flag state. The remaining gaps are failure handling and idempotency, which matter but are secondary to understanding what the tool builds.

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?

The single parameter (environmentIdOrKey) is never mentioned in the description, so no meaning is added beyond the schema. Schema description coverage is 100% and the default is documented there, so the baseline of 3 applies.

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?

Opens with a specific verb+resource pair ("Migrate Statsig experiments to Wingify FE") and then enumerates the four concrete operations performed. It is unmistakably distinct from the sibling migration tools (metrics, dynamic configs, feature gates, parameter stores, MigrateAll).

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?

Explicitly states the prerequisite ordering: "Run metrics migration first so product/custom metrics exist in Wingify," which routes the agent to MigrateStatsigMetricsToWingify before this tool. However, it never says when NOT to use it (e.g. versus MigrateAllStatsigToWingify) or whether re-running is safe, so no true exclusions are covered.

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