Developer Tools · Data & Analytics

Statsig MCP

Statsig MCP exposes experiments, feature gates, dynamic configs, layers, metrics, segments, reviews, audit logs, and observability workflows.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Approve autotune review

    Approve an in-flight review of an autotune experiment. Approval does NOT apply the change to the live autotune — call Commit_Autotune_Review afterward to apply it. The acting user must be an eligible reviewer (see Get_Autotune_Eligible_Reviewers), have approve-reviews permission, and cannot approve their own review. Requires a key owned by a user. path_id = the autotune's ID; path_reviewID = the review ID.

  • Approve dynamic config review

    Approve an in-flight review of a dynamic config. Approval does NOT apply the change to the live config — call Commit_Dynamic_Config_Review afterward to apply it. The acting user must be an eligible reviewer (see Get_Dynamic_Config_Eligible_Reviewers), have approve-reviews permission, and cannot approve their own review. Requires a key owned by a user. path_id = the dynamic config's name/ID; path_reviewID = the review ID.

  • Approve experiment review

    Approve an in-flight review of an experiment (A/B test). Approval does NOT apply the change to the live experiment — call Commit_Experiment_Review afterward to apply it. The acting user must be an eligible reviewer (see Get_Experiment_Eligible_Reviewers), have approve-reviews permission, and cannot approve their own review. Requires a key owned by a user. path_id = the experiment's ID; path_reviewID = the review ID.

  • Approve gate review

    Approve an in-flight review of a gate (feature flag). Approval does NOT apply the change to the live gate — call Commit_Gate_Review afterward to apply it. The acting user must be an eligible reviewer (see Get_Gate_Eligible_Reviewers), have approve-reviews permission, and cannot approve their own review. Requires a key owned by a user. path_id = the gate's name/ID; path_reviewID = the review ID.

  • Cancel autotune review

    Cancel (withdraw) an in-flight review of an autotune experiment. This permanently withdraws the proposed change; it does NOT modify the live autotune. Only mutable reviews (pending or accepted) can be cancelled. Requires a key owned by a user. path_id = the autotune's ID; path_reviewID = the review ID.

  • Cancel dynamic config review

    Cancel (withdraw) an in-flight review of a dynamic config. This permanently withdraws the proposed change; it does NOT modify the live config. Only mutable reviews (pending or accepted) can be cancelled. Requires a key owned by a user. path_id = the dynamic config's name/ID; path_reviewID = the review ID.

  • Cancel experiment review

    Cancel (withdraw) an in-flight review of an experiment (A/B test). This permanently withdraws the proposed change; it does NOT modify the live experiment. Only mutable reviews (pending or accepted) can be cancelled. Requires a key owned by a user. path_id = the experiment's ID; path_reviewID = the review ID.

  • Cancel gate review

    Cancel (withdraw) an in-flight review of a gate (feature flag). This permanently withdraws the proposed change; it does NOT modify the live gate. Only mutable reviews (pending or accepted) can be cancelled. Requires a key owned by a user. path_id = the gate's name/ID; path_reviewID = the review ID.

  • Cluster log patterns

    Cluster similar log lines into templates (same as `statsig-query log-patterns`). Use after `Query_Logs_Explorer` when raw lines are too noisy. Pass a Logs Explorer filter (e.g. `service:scrapi AND tier:latest AND level:error`) — do not wrap in `#logs{ }`. Statsig/OpenAI internal organizations only (mirrors CAPI `@OpenAIAndStatsigOrgOnly`). Optional: `field` (default clusters on log message field), `limit`, time window (`start_ts`/`end_ts` in ms).

  • Commit autotune review

    Commit a review of an autotune experiment, APPLYING its proposed change to the live autotune. This is the step that actually mutates the autotune (e.g. starting it, resetting/reallocating, making a decision, or deleting it). Normally called after a different reviewer has approved the review. SELF-APPROVAL: an author cannot Approve_Autotune_Review on their own review — instead, to self-approve, the author commits their own still-pending review directly with this tool. Self-commit succeeds only when the acting user holds the "skip_config_review" permission; this tool bypasses precommit webhooks, so the acting user also needs "bypass_precommit_webhook", otherwise this returns 403. Requires a key owned by a user. path_id = the autotune's ID; path_reviewID = the review ID.

  • Commit dynamic config review

    Commit a review of a dynamic config, APPLYING its proposed change to the live config. This is the step that actually mutates the config (e.g. updating rules/default_value, enabling/disabling, archiving, or deleting). Normally called after a different reviewer has approved the review. SELF-APPROVAL: an author cannot Approve_Dynamic_Config_Review on their own review — instead, to self-approve, the author commits their own still-pending review directly with this tool (this is the intended self-approval path). Self-commit succeeds only when the dynamic config permits self-approval and the acting user holds the "skip_config_review" permission. This tool bypasses precommit webhooks, so the acting user also needs "bypass_precommit_webhook"; otherwise this returns 403. Requires a key owned by a user. path_id = the dynamic config's name/ID; path_reviewID = the review ID.

  • Commit experiment review

    Commit a review of an experiment (A/B test), APPLYING its proposed change to the live experiment. This is the step that actually mutates the experiment (e.g. starting / stopping it, shipping a decision, rolling out a group, or updating settings). Normally called after a different reviewer has approved the review. SELF-APPROVAL: an author cannot Approve_Experiment_Review on their own review — instead, to self-approve, the author commits their own still-pending review directly with this tool (this is the intended self-approval path). Self-commit succeeds only when the experiment's layer permits self-approval and the acting user holds the "skip_config_review" permission. This tool bypasses precommit webhooks, so the acting user also needs "bypass_precommit_webhook"; otherwise this returns 403. Requires a key owned by a user. path_id = the experiment's ID; path_reviewID = the review ID.

  • Commit gate review

    Commit a review of a gate (feature flag), APPLYING its proposed change to the live gate. This is the step that actually mutates the gate (e.g. updating rules, enabling/disabling, archiving, or deleting). Normally called after a different reviewer has approved the review. SELF-APPROVAL: an author cannot Approve_Gate_Review on their own review — instead, to self-approve, the author commits their own still-pending review directly with this tool (this is the intended self-approval path). Self-commit succeeds only when the gate permits self-approval and the acting user holds the "skip_config_review" permission. This tool bypasses precommit webhooks, so the acting user also needs "bypass_precommit_webhook"; otherwise this returns 403. Requires a key owned by a user. path_id = the gate's name/ID; path_reviewID = the review ID.

  • Create autotune

    Create an Autotune (multi-armed bandit) experiment that automatically shifts traffic toward the best-performing variant. Specify the variants (arms), the successEvent to optimize for, and the explorationWindow / attributionWindow / winnerThreshold parameters. Set isContextual=true to create a contextual multi-armed bandit (CMAB) that picks an arm per user-context; otherwise a standard MAB is created. Creating an Autotune begins reallocating live SDK traffic across the variants — review the variants and rollout settings before calling.

  • Create autotune review

    Open a review proposing a change to an autotune experiment. The change is NOT applied to the live autotune yet — it must be approved (Approve_Autotune_Review) and then committed (Commit_Autotune_Review). Set `type` to the kind of change and supply only the fields that type needs: start (optional start_date) / scheduled_start (start_time) / scheduled_start_edit (new_time) / reallocate — the autotune "reset" (optional reason) / make_decision (winning_group_id) / delete / disable_reviews_locally. Requires a key owned by a user. path_id = the autotune's ID.

  • Create dynamic config

    Create a new Dynamic Config (static, targetable JSON object) in the Statsig console, including targeting rules, its ID (how we'll refer to it in-code) and its IDtype, which it'll randomize users on. CRITICAL CONSTRAINTS: - the return value for each variant must be set with returnValueJson5. - Always include DefaultValue field in the POST request

  • Create dynamic config review

    Open a review proposing a change to a dynamic config. The change is NOT applied to the live config yet — it must be approved (Approve_Dynamic_Config_Review) and then committed (Commit_Dynamic_Config_Review). Provide a description, an optional set of requested reviewers (use Get_Dynamic_Config_Eligible_Reviewers to find valid IDs), and a `change` carrying exactly one change slot: the content bundle (`rules` and/or `default_value`, which may coexist), one verb field (e.g. is_enabled, is_archived, delete), `restore`, or one metadata field. Requires a key owned by a user (review actions are attributed to the key owner). path_id = the dynamic config's name/ID.

  • Create experiment

    Create an experiment, including its ID (which is how we refer to it in-code), its groups (test/control, and return values) and the ID type it should randomize users on. For metrics, omit direction and hypothesizedValue unless the user explicitly asks for one-sided testing or one-sample testing. Metric direction enables one-sided testing; hypothesizedValue enables one-sample testing against a fixed baseline.

  • Create experiment review

    Open a review proposing a change to an experiment (A/B test). The change is NOT applied to the live experiment yet — it must be approved (Approve_Experiment_Review) and then committed (Commit_Experiment_Review). Set `type` to the kind of change (start / stop / pause / restart / abandon / archive / delete / make_decision / rollout / schedule_rollout / reallocate / change_enabled_groups / unarchive / update_owners / update_team / update_settings / update_overrides / update_target_applications / update_allowed_reviewers / update_default_impact_multiplier / scheduled_start / scheduled_start_edit / disable_reviews_locally) and supply only the fields that type needs (e.g. make_decision → winning_group_id; rollout → group_id + rollout_percentage; update_owners → owners; update_settings → settings). Requires a key owned by a user. path_id = the experiment's ID.

  • Create gate

    Create a new gate (feature flag), including its rules (who should pass it) its ID (how we'll refer to it in-code) and its IDtype, which it'll randomize users on.

Page 1 / 5Next