> This page is for Agent Handler.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Statsig

**Authentication:** Console API key. See [Magic Link](/merge-agent-handler/features/magic-link) for the runtime auth flow.

## Sample use cases

* Roll a feature gate from 10% to 50% after checking the experiment's guardrail metrics.
* List experiments running longer than 30 days and flag ones with no significant results.
* Create a dynamic config for the new pricing page and target it to the `beta` segment.

## Available Tools

#### list\_audit\_logs

List Statsig audit log entries, optionally filtered by action type, tags, date/time range, and sorted by a given field

#### get\_company

Get information about the Statsig company/organization associated with the current API key

#### get\_project

Get information about the current Statsig project associated with the API key

#### list\_dynamic\_configs

List Statsig dynamic configs with optional filtering by target app, team, or tags

#### get\_dynamic\_config

Get full details for a Statsig dynamic config by ID, including rules and default value

#### create\_dynamic\_config

Create a Statsig dynamic config

#### update\_dynamic\_config

Partially update a Statsig dynamic config's name, description, rules, default value, tags, target apps, or team

#### delete\_dynamic\_config

Permanently delete a Statsig dynamic config by ID

#### enable\_dynamic\_config

Enable a Statsig dynamic config so its rules are evaluated

#### disable\_dynamic\_config

Disable a Statsig dynamic config so it always returns its default value

#### archive\_dynamic\_config

Archive a Statsig dynamic config, removing it from active use

#### list\_environments

List the environments configured for this Statsig project (e.g

#### list\_experiments

List Statsig experiments with optional filtering by status, target app, team, or tags

#### get\_experiment

Get full details for a Statsig experiment by ID, including groups and metrics

#### create\_experiment

Create a Statsig experiment

#### update\_experiment

Partially update a Statsig experiment's name, description, hypothesis, groups, metrics, tags, or team

#### delete\_experiment

Permanently delete a Statsig experiment by ID

#### list\_gates

List Statsig feature gates with optional filtering by unit ID type, target app, team, tags, gate type, or creator

#### get\_gate

Get full details for a Statsig feature gate by ID, including targeting rules and status

#### create\_gate

Create a Statsig feature gate

#### update\_gate

Partially update a Statsig feature gate's name, description, rules, tags, target apps, or team

#### delete\_gate

Permanently delete a Statsig feature gate by ID

#### enable\_gate

Enable a Statsig feature gate so its rules are evaluated

#### disable\_gate

Disable a Statsig feature gate so it always evaluates to false

#### archive\_gate

Archive a Statsig feature gate, removing it from active use

#### get\_gate\_overrides

Get the per-environment ID overrides configured for a Statsig feature gate

#### update\_gate\_overrides

Add per-environment ID overrides to a Statsig feature gate (e.g

#### list\_holdouts

List Statsig holdouts (groups of users excluded from experimentation) with optional tag filtering

#### get\_holdout

Get full details for a Statsig holdout by ID

#### create\_holdout

Create a Statsig holdout

#### update\_holdout

Partially update a Statsig holdout's description

#### delete\_holdout

Permanently delete a Statsig holdout by ID

#### list\_keys

List Statsig Console/Server/Client API keys with optional filtering by target app or environment

#### get\_key

Get details for a Statsig API key by its key value

#### create\_key

Create a new Statsig API key

#### deactivate\_key

Deactivate a Statsig API key so it can no longer authenticate requests

#### list\_layers

List Statsig layers (containers that group mutually-exclusive experiments)

#### get\_layer

Get full details for a Statsig layer by ID

#### create\_layer

Create a Statsig layer

#### update\_layer

Partially update a Statsig layer's description or target apps

#### delete\_layer

Permanently delete a Statsig layer by ID

#### list\_metrics

List Statsig metrics with optional tag filtering

#### get\_metric

Get the full definition for a Statsig metric by ID

#### create\_metric

Create a Statsig metric

#### update\_metric

Update a Statsig metric's description, directionality, tags, or team

#### delete\_metric

Permanently delete a Statsig metric by ID

#### list\_segments

List Statsig segments (reusable named user groups referenced by gates, configs, and experiments)

#### get\_segment

Get full details for a Statsig segment by ID

#### create\_segment

Create a Statsig segment

#### delete\_segment

Permanently delete a Statsig segment by ID

#### list\_segment\_ids

List the IDs currently in a static (id\_list-type) Statsig segment

#### add\_segment\_ids

Add IDs to a static (id\_list-type) Statsig segment (max 100000 per call)

#### list\_tags

List Statsig tags. Use this to find valid tag names/IDs to reference when creating or filtering gates, dynamic configs...

#### get\_tag

Get details for a Statsig tag by its name

#### create\_tag

Create a Statsig tag

#### list\_target\_apps

List Statsig target apps

#### get\_target\_app

Get details for a Statsig target app by name

#### create\_target\_app

Create a Statsig target app

#### list\_unit\_id\_types

List Statsig unit ID types (e.g

#### get\_unit\_id\_type

Get details for a Statsig unit ID type by name

#### create\_unit\_id\_type

Create a Statsig unit ID type

#### list\_users

List members of this Statsig project

#### get\_user

Get details for a Statsig project member by user ID

#### list\_teams

List teams configured in this Statsig project

#### get\_team

Get details for a Statsig team by name