Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(experiments): resolve exposure event via API in skills and tools (#78344)

Anders39ad6b7e2b47
diff --git a/products/experiments/mcp/tools.yaml b/products/experiments/mcp/tools.yaml
index 2e5b21d4be34..15783a7f4d37 100644
--- a/products/experiments/mcp/tools.yaml
+++ b/products/experiments/mcp/tools.yaml
@@ -366,7 +366,7 @@ tools:
End a running experiment without shipping a variant. Sets end_date to now and transitions status to stopped.
The feature flag is NOT modified — users continue seeing their assigned variants and exposure events
- ($feature_flag_called) continue to fire, but only data up to end_date is included in results.
+ continue to fire, but only data up to end_date is included in results.
Optionally provide conclusion ("won", "lost", "inconclusive", "stopped_early", "invalid") and
@@ -455,8 +455,10 @@ tools:
deactivated, "exposure_frozen" when its flag's release groups are narrowed to the already-exposed cohort so
enrollment is closed while metrics keep flowing), start_date and end_date, linked feature_flag (with
variants, filters, active state), metrics and metrics_secondary arrays, conclusion and conclusion_comment if
- ended, parameters (including feature_flag_variants and recommended_running_time), stats_config, and type
- (web/product).
+ ended, parameters (including feature_flag_variants and recommended_running_time), stats_config, type
+ (web/product), and resolved_exposure_event (the event exposures are counted on when no custom exposure event
+ is configured — resolved server-side to $feature_flag_called or $experiment_exposure; use it in SQL instead
+ of hardcoding either name).
param_overrides:
id:
cast: string-int
@@ -809,8 +811,7 @@ tools:
Pause a running experiment by deactivating its feature flag (sets flag active=false). The flag is no longer
returned by the /decide endpoint, so users fall back to the application default (typically control). No new
- exposure events ($feature_flag_called) are recorded while paused. The experiment stays in running status —
- it is not ended.
+ exposure events are recorded while paused. The experiment stays in running status — it is not ended.
Returns 400 if: experiment is in draft ("Experiment has not been launched yet."), already stopped
@@ -886,8 +887,7 @@ tools:
Resume a paused experiment by reactivating its feature flag (sets flag active=true). Users are re-bucketed
- deterministically into the same variants they had before the pause, and exposure tracking
- ($feature_flag_called) resumes.
+ deterministically into the same variants they had before the pause, and exposure tracking resumes.
Returns 400 if: experiment is in draft ("Experiment has not been launched yet."), already stopped
diff --git a/products/experiments/skills/configuring-experiment-analytics/SKILL.md b/products/experiments/skills/configuring-experiment-analytics/SKILL.md
index 04a14a48ab6f..9b993b6beee5 100644
--- a/products/experiments/skills/configuring-experiment-analytics/SKILL.md
+++ b/products/experiments/skills/configuring-experiment-analytics/SKILL.md
@@ -1,6 +1,6 @@
---
name: configuring-experiment-analytics
-description: Configures the analytics side of a PostHog experiment — exposure criteria (default `$feature_flag_called` vs custom exposure events), primary and secondary metrics, the supported metric types (count, sum, ratio with `math` and `math_property`, retention with `retention_window_start` and `start_handling`), multivariate user handling ("Exclude" vs "First seen variant"), and how to read results once the experiment is live. Use when the user adds or edits a primary or secondary metric (e.g. "add a secondary metric tracking 'downloaded_file' per user"), sets up a ratio metric (e.g. "revenue from purchase_completed / pageviews"), sets up a retention metric (e.g. "$pageview → uploaded_file, 7-day window"), configures custom exposure (e.g. "only count users who hit /checkout"), changes multivariate handling, or asks "who is in the analysis?", "how do I measure impact?", "is this winning?", "what's the confidence level?", or "should I ship?".
+description: Configures the analytics side of a PostHog experiment — exposure criteria (server-resolved default exposure event vs custom exposure events), primary and secondary metrics, the supported metric types (count, sum, ratio with `math` and `math_property`, retention with `retention_window_start` and `start_handling`), multivariate user handling ("Exclude" vs "First seen variant"), and how to read results once the experiment is live. Use when the user adds or edits a primary or secondary metric (e.g. "add a secondary metric tracking 'downloaded_file' per user"), sets up a ratio metric (e.g. "revenue from purchase_completed / pageviews"), sets up a retention metric (e.g. "$pageview → uploaded_file, 7-day window"), configures custom exposure (e.g. "only count users who hit /checkout"), changes multivariate handling, or asks "who is in the analysis?", "how do I measure impact?", "is this winning?", "what's the confidence level?", or "should I ship?".
---
# Configuring experiment analytics
@@ -15,7 +15,7 @@ Exposure criteria determine which users are counted in the experiment analysis.
Two options:
-1. **Feature flag called** (default) — users are included when the `$feature_flag_called` event fires for the experiment's flag. This is the standard approach — it means a user is included only when they actually encounter the feature flag in your code.
+1. **Default exposure event** — users are included when the experiment's default exposure event fires for the experiment's flag: `$feature_flag_called`, or `$experiment_exposure` for newer experiments. Which one applies is resolved server-side — read `resolved_exposure_event` from `experiment-get` rather than assuming either name (both events carry the same properties). This is the standard approach — it means a user is included only when they actually encounter the feature flag in your code.
2. **Custom exposure event** — users are included when a specific custom event fires. Use this when you want tighter control over who enters the analysis (e.g., only users who actually visit the page where the experiment runs).
### Multiple variant handling
diff --git a/products/experiments/skills/diagnosing-experiment-results/SKILL.md b/products/experiments/skills/diagnosing-experiment-results/SKILL.md
index fd81f040d71e..31d7d7a4ae4f 100644
--- a/products/experiments/skills/diagnosing-experiment-results/SKILL.md
+++ b/products/experiments/skills/diagnosing-experiment-results/SKILL.md
@@ -25,7 +25,9 @@ Call `experiment-get` and pull these fields. They are inputs for almost every di
- `parameters.feature_flag_variants[].rollout_percentage` — the variant split
- `parameters.rollout_percentage` — the overall rollout (% of users entering the experiment)
- `exposure_criteria.multiple_variant_handling` — defaults to `"exclude"` if absent
-- `exposure_criteria.exposure_event` — `null` means default `$feature_flag_called`
+- `exposure_criteria.exposure_config.event` — unset means the default exposure event; read which one
+ from `resolved_exposure_event` (`$feature_flag_called` or `$experiment_exposure` — resolved
+ server-side, same properties either way)
- `exposure_criteria.filterTestAccounts` — defaults to `true`
- `feature_flag.active`, status (`draft` / `running` / `paused` / `exposure_frozen` / `stopped`), `start_date`, `end_date`
- `feature_flag.filters.groups[]` — for each group read `variant`, `properties`, and
@@ -169,5 +171,5 @@ count as preemptive too — only the user explicitly naming the reversal action
reversal mechanics.
Use consistent terminology: variant _split_ (between variants) is distinct from _rollout_ (overall %
-entering); the `$feature_flag_called` exposure event is distinct from a _custom exposure event_; the
+entering); the _default exposure event_ (`resolved_exposure_event`) is distinct from a _custom exposure event_; the
_Exclude_ / _First seen_ options control multivariate handling, not exposure.
diff --git a/products/experiments/skills/diagnosing-experiment-results/references/bias-and-skew.md b/products/experiments/skills/diagnosing-experiment-results/references/bias-and-skew.md
index 368846751e4e..33f1a197c2ff 100644
--- a/products/experiments/skills/diagnosing-experiment-results/references/bias-and-skew.md
+++ b/products/experiments/skills/diagnosing-experiment-results/references/bias-and-skew.md
@@ -19,6 +19,10 @@ If the symptom is "metric count is far smaller than exposures" (e.g. 10× or 100
file before `numbers-vs-sql.md` — that shape of divergence is most often a bucketing / identity
problem (A3/A4), not a query-scope problem.
+The SQL in this file filters exposures on `$feature_flag_called`. If the experiment's
+`resolved_exposure_event` (from `experiment-get`) is `$experiment_exposure`, substitute that event
+name — it carries the same properties, so nothing else changes.
+
## Contents
- A1 — Multi-variant exclusion bias on uneven split (the in-app banner)
diff --git a/products/experiments/skills/diagnosing-experiment-results/references/diagnostic-snapshot.md b/products/experiments/skills/diagnosing-experiment-results/references/diagnostic-snapshot.md
index b42d50f95598..a0659d3d98b7 100644
--- a/products/experiments/skills/diagnosing-experiment-results/references/diagnostic-snapshot.md
+++ b/products/experiments/skills/diagnosing-experiment-results/references/diagnostic-snapshot.md
@@ -11,15 +11,21 @@ Run this snapshot once and reuse the results across the dispatch table in `SKILL
Powers A1/A2, B0, C2.
+**Which event to query.** When `exposure_criteria.exposure_config.event` is set, query that custom
+event (second query below). Otherwise query the experiment's default exposure event — read it from
+`resolved_exposure_event` in `experiment-get` (`$feature_flag_called`, or `$experiment_exposure` for
+newer experiments; resolved server-side, so don't hardcode either name). Both default events carry
+the same properties — only the event name changes.
+
```sql
--- Default exposure event ($feature_flag_called):
+-- Default exposure event (resolved_exposure_event from experiment-get):
SELECT
properties.$feature_flag_response AS variant,
count() AS exposures,
count(DISTINCT person_id) AS persons,
count(DISTINCT distinct_id) AS distinct_ids
FROM events
-WHERE event = '$feature_flag_called'
+WHERE event = '<resolved_exposure_event>'
AND properties.$feature_flag = '<flag-key>'
AND timestamp >= '<start_date>'
GROUP BY variant
@@ -44,7 +50,7 @@ GROUP BY variant
ORDER BY exposures DESC
```
-Reason: `$feature_flag_called` carries `$feature_flag` (the flag key being evaluated) and
+Reason: the default exposure events carry `$feature_flag` (the flag key being evaluated) and
`$feature_flag_response` (the variant returned). Custom exposure events don't carry those — the SDK
stamps `$feature/<flag-key>` onto subsequent events instead. Querying a custom exposure event with
`$feature_flag_response` returns zero rows even when exposure capture is working fine.
@@ -69,7 +75,7 @@ Read off:
`feature-flags-activity-retrieve`: if there are no post-launch flag edits, the flag config
can't explain the plateau and the cause is application-side. Walk B-series footer.
-**Ignore `$feature_flag_response = false` / `None` / `null` rows.** `$feature_flag_called` fires on
+**Ignore `$feature_flag_response = false` / `None` / `null` rows.** The default exposure event fires on
every flag evaluation, including ones that didn't bucket the user into the experiment — flag returned
`false` (user didn't match release conditions), evaluation failed, or the SDK didn't stamp the
response. PostHog's experiment query filters these out via `in(properties.$feature_flag_response,
diff --git a/products/experiments/skills/diagnosing-experiment-results/references/empty-experiment.md b/products/experiments/skills/diagnosing-experiment-results/references/empty-experiment.md
index 5ff7b27a88ea..a8c2a738c185 100644
--- a/products/experiments/skills/diagnosing-experiment-results/references/empty-experiment.md
+++ b/products/experiments/skills/diagnosing-experiment-results/references/empty-experiment.md
@@ -3,6 +3,14 @@
Diagnose by walking the chain:
SDK call → exposure event captured → ingested → matches the configured exposure criteria → counted.
+**Which exposure event?** When `exposure_criteria` doesn't name a custom event, the experiment counts
+exposures on its default event — read `resolved_exposure_event` from `experiment-get`
+(`$feature_flag_called`, or `$experiment_exposure` for newer experiments). `$experiment_exposure` is
+duplicated at ingestion from `$feature_flag_called` and carries the same properties, so the SDK-side
+diagnostics below apply to both: an SDK that never fires `$feature_flag_called` produces neither
+event. In the SQL below, substitute the experiment's resolved event name where `$feature_flag_called`
+appears as the exposure filter.
+
## Contents
- Quick triage decision tree
diff --git a/products/experiments/skills/diagnosing-experiment-results/references/numbers-vs-sql.md b/products/experiments/skills/diagnosing-experiment-results/references/numbers-vs-sql.md
index ec4d891d5e20..208ef69887bf 100644
--- a/products/experiments/skills/diagnosing-experiment-results/references/numbers-vs-sql.md
+++ b/products/experiments/skills/diagnosing-experiment-results/references/numbers-vs-sql.md
@@ -70,7 +70,7 @@ WITH exposures AS (
argMin(properties.$feature_flag_response, timestamp) AS variant,
min(timestamp) AS first_exposure
FROM events
- WHERE event = '$feature_flag_called' -- or exposure_criteria.exposure_event when set
+ WHERE event = '<exposure-event>' -- resolved_exposure_event from experiment-get; exposure_criteria.exposure_config.event when set
AND properties.$feature_flag = '<flag-key>'
AND properties.$feature_flag_response != '$multiple' -- source 2 (drop if multiple_variant_handling='first_seen')
AND timestamp >= '<start_date>' -- source 4
@@ -170,7 +170,7 @@ shows as "none" rather than an error. This is silent and confusing.
**Verify:** check that the breakdown property is actually being captured on the relevant event.
**Recommend:** if it's the exposure event missing the property, see D3 — set the property earlier in
-the journey, or capture it on `$feature_flag_called` directly.
+the journey, or capture it on the exposure event directly.
## D6 — Recordings panel ≠ statistical calculation [MEDIUM]
diff --git a/products/signals/skills/signals-scout-experiments/SKILL.md b/products/signals/skills/signals-scout-experiments/SKILL.md
index d6de780307de..6a62266658e6 100644
--- a/products/signals/skills/signals-scout-experiments/SKILL.md
+++ b/products/signals/skills/signals-scout-experiments/SKILL.md
@@ -88,7 +88,7 @@ Two caveats before trusting a clean p-value:
- It tests against the **current** configured split. If variants were redistributed mid-run, post-edit balance can look clean while pre-edit data is contaminated — check the flag history (below) whenever `feature_flag.version` is high.
- It says nothing about `$multiple` — read `bias_risk.multiple_variant_percentage` as its own check (below).
-When the tool can't serve the experiment (legacy metrics) or you need to date an onset, fall back to the exposure SQL. Default exposure event:
+When the tool can't serve the experiment (legacy metrics) or you need to date an onset, fall back to the exposure SQL. Read the default exposure event off `experiment-get`'s `resolved_exposure_event` (`$feature_flag_called` or `$experiment_exposure` — resolved server-side, same properties either way):
```sql
SELECT
@@ -96,14 +96,14 @@ SELECT
count() AS exposures,
count(DISTINCT person_id) AS persons
FROM events
-WHERE event = '$feature_flag_called'
+WHERE event = '<resolved_exposure_event>'
AND properties.$feature_flag = '<flag-key>'
AND timestamp >= toDateTime('<start_date>', 'UTC')
GROUP BY variant
ORDER BY exposures DESC
```
-If `exposure_criteria.exposure_event` is set, the experiment uses a custom exposure event — query that event name instead and read the variant from `properties.$feature/<flag-key>` (a different property; the default's `$feature_flag_response` won't exist there).
+If `exposure_criteria.exposure_config.event` is set, the experiment uses a custom exposure event — query that event name instead and read the variant from `properties.$feature/<flag-key>` (a different property; the default's `$feature_flag_response` won't exist there).
Reading the output:
@@ -127,7 +127,7 @@ SELECT person_id,
count(DISTINCT properties.$feature_flag_response) AS variants_seen,
count(DISTINCT distinct_id) AS distinct_ids
FROM events
-WHERE event = '$feature_flag_called'
+WHERE event = '<resolved_exposure_event>'
AND properties.$feature_flag = '<flag-key>'
AND properties.$feature_flag_response NOT IN ('$multiple', 'false', '')
AND timestamp >= toDateTime('<start_date>', 'UTC')
@@ -147,12 +147,12 @@ Both are report-worthy: the team thinks they're collecting evidence and they are
#### Exposure stall / dormant experiment
-A running experiment should accrue exposures continuously. Read the per-variant `exposures.timeseries` off `experiment-results-get` (cumulative daily counts — a flat tail is the stall shape), or by SQL. **Query the experiment's actual exposure event**: default experiments use `$feature_flag_called`, but if `exposure_criteria.exposure_event` is set, query that event name instead (filtering on `properties.$feature/<flag-key>` rather than `$feature_flag`) — running the default query against a custom-exposure experiment returns zero rows and fakes a stall:
+A running experiment should accrue exposures continuously. Read the per-variant `exposures.timeseries` off `experiment-results-get` (cumulative daily counts — a flat tail is the stall shape), or by SQL. **Query the experiment's actual exposure event**: default experiments use `resolved_exposure_event` from `experiment-get` (`$feature_flag_called` or `$experiment_exposure`), but if `exposure_criteria.exposure_config.event` is set, query that event name instead (filtering on `properties.$feature/<flag-key>` rather than `$feature_flag`) — running the wrong event's query returns zero rows and fakes a stall:
```sql
SELECT toDate(timestamp) AS day, count() AS exposures
FROM events
-WHERE event = '$feature_flag_called' -- or exposure_criteria.exposure_event
+WHERE event = '<resolved_exposure_event>' -- or exposure_criteria.exposure_config.event
AND properties.$feature_flag = '<flag-key>'
AND timestamp >= toDateTime('<start_date>', 'UTC')
GROUP BY day ORDER BY day
@@ -231,12 +231,12 @@ Direct calls (read-only):
- `experiment-list` — cheap candidate discovery: id, name, status (draft / running / paused / stopped), dates, `feature_flag_key`. Filter by `status`; start here.
- `experiment-results-get` — **the flagship detector**: exposure block (`total_exposures`, daily `timeseries`, native `sample_ratio_mismatch.p_value`, `bias_risk.multiple_variant_percentage`) plus per-metric `validation_failures` / `data: null`. Heavy response with many metrics — read the exposure + validation fields, skip the per-metric stats. New-engine experiments only; pass `refresh: false`.
-- `experiment-get` — full config for a candidate: `parameters.feature_flag_variants` (configured split), `parameters.rollout_percentage`, `recommended_sample_size`, `parameters.excluded_variants`, `exposure_criteria` (custom `exposure_event`, `multiple_variant_handling`, `filterTestAccounts`), `stats_config.method`, `holdout_id`, linked `feature_flag` (active, `version`, `bucketing_identifier`, `ensure_experience_continuity`, `filters.groups[].variant` overrides), `metrics` (each with `uuid` + fingerprint). Large response — candidates only.
+- `experiment-get` — full config for a candidate: `parameters.feature_flag_variants` (configured split), `parameters.rollout_percentage`, `recommended_sample_size`, `parameters.excluded_variants`, `exposure_criteria` (custom `exposure_config.event`, `multiple_variant_handling`, `filterTestAccounts`), `resolved_exposure_event` (the default exposure event to query), `stats_config.method`, `holdout_id`, linked `feature_flag` (active, `version`, `bucketing_identifier`, `ensure_experience_continuity`, `filters.groups[].variant` overrides), `metrics` (each with `uuid` + fingerprint). Large response — candidates only.
- `experiment-stats` — project-wide velocity aggregate (launched / completed last 30d, active count). Cheap context for the hygiene pass.
- `experiment-timeseries-results` — day-by-day per-variant results for one metric (`metric_uuid` + `fingerprint` from the metrics array). Use sparingly, for the zombie "decide now" check.
- `feature-flag-get-definition` / `feature-flags-activity-retrieve` — flag state and edit-history diffs; the latter is how you date mid-run mutations.
- `advanced-activity-logs-list` (`scopes: ["Experiment"]`) — experiment-level edit timeline.
-- `execute-sql` against `events` — exposure analysis. Properties: `$feature_flag` (flag key) + `$feature_flag_response` (variant, incl. `$multiple`) on `$feature_flag_called`; `$feature/<flag-key>` on custom exposure events.
+- `execute-sql` against `events` — exposure analysis. Properties: `$feature_flag` (flag key) + `$feature_flag_response` (variant, incl. `$multiple`) on the default exposure events (`$feature_flag_called` / `$experiment_exposure`); `$feature/<flag-key>` on custom exposure events.
- `read-data-schema` — confirm a custom exposure event and its properties exist before aggregating over them.
Inbox & reviewer routing:
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index 1ff84504d6be..702450cf0449 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -3492,7 +3492,7 @@
}
},
"experiment-end": {
- "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nEnd a running experiment without shipping a variant. Sets end_date to now and transitions status to stopped. The feature flag is NOT modified — users continue seeing their assigned variants and exposure events ($feature_flag_called) continue to fire, but only data up to end_date is included in results.\n\nOptionally provide conclusion (\"won\", \"lost\", \"inconclusive\", \"stopped_early\", \"invalid\") and conclusion_comment.\n\nReturns 400 if the experiment is in draft (\"Experiment has not been launched yet.\") or already stopped (\"Experiment has already ended.\").\n\nOther options: use experiment-ship-variant to end AND roll out a winner. Use pause to temporarily deactivate the flag without ending.",
+ "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nEnd a running experiment without shipping a variant. Sets end_date to now and transitions status to stopped. The feature flag is NOT modified — users continue seeing their assigned variants and exposure events continue to fire, but only data up to end_date is included in results.\n\nOptionally provide conclusion (\"won\", \"lost\", \"inconclusive\", \"stopped_early\", \"invalid\") and conclusion_comment.\n\nReturns 400 if the experiment is in draft (\"Experiment has not been launched yet.\") or already stopped (\"Experiment has already ended.\").\n\nOther options: use experiment-ship-variant to end AND roll out a winner. Use pause to temporarily deactivate the flag without ending.",
"category": "Experiments",
"feature": "experiments",
"summary": "End experiment",
@@ -3520,7 +3520,7 @@
}
},
"experiment-get": {
- "description": "Get a single experiment by ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first.\n\nReturns the full experiment object including: status (draft/running/paused/exposure_frozen/stopped — \"paused\" is a virtual value returned when the experiment is launched but its feature flag has been deactivated, \"exposure_frozen\" when its flag's release groups are narrowed to the already-exposed cohort so enrollment is closed while metrics keep flowing), start_date and end_date, linked feature_flag (with variants, filters, active state), metrics and metrics_secondary arrays, conclusion and conclusion_comment if ended, parameters (including feature_flag_variants and recommended_running_time), stats_config, and type (web/product).",
+ "description": "Get a single experiment by ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first.\n\nReturns the full experiment object including: status (draft/running/paused/exposure_frozen/stopped — \"paused\" is a virtual value returned when the experiment is launched but its feature flag has been deactivated, \"exposure_frozen\" when its flag's release groups are narrowed to the already-exposed cohort so enrollment is closed while metrics keep flowing), start_date and end_date, linked feature_flag (with variants, filters, active state), metrics and metrics_secondary arrays, conclusion and conclusion_comment if ended, parameters (including feature_flag_variants and recommended_running_time), stats_config, type (web/product), and resolved_exposure_event (the event exposures are counted on when no custom exposure event is configured — resolved server-side to $feature_flag_called or $experiment_exposure; use it in SQL instead of hardcoding either name).",
"category": "Experiments",
"feature": "experiments",
"summary": "Get experiment details",
@@ -3674,7 +3674,7 @@
}
},
"experiment-pause": {
- "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nPause a running experiment by deactivating its feature flag (sets flag active=false). The flag is no longer returned by the /decide endpoint, so users fall back to the application default (typically control). No new exposure events ($feature_flag_called) are recorded while paused. The experiment stays in running status — it is not ended.\n\nReturns 400 if: experiment is in draft (\"Experiment has not been launched yet.\"), already stopped (\"Experiment has already ended.\"), no linked flag (\"Experiment does not have a feature flag linked.\"), or already paused (\"Experiment is already paused.\").\n\nNo request body needed. Use resume to reactivate.",
+ "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nPause a running experiment by deactivating its feature flag (sets flag active=false). The flag is no longer returned by the /decide endpoint, so users fall back to the application default (typically control). No new exposure events are recorded while paused. The experiment stays in running status — it is not ended.\n\nReturns 400 if: experiment is in draft (\"Experiment has not been launched yet.\"), already stopped (\"Experiment has already ended.\"), no linked flag (\"Experiment does not have a feature flag linked.\"), or already paused (\"Experiment is already paused.\").\n\nNo request body needed. Use resume to reactivate.",
"category": "Experiments",
"feature": "experiments",
"summary": "Pause experiment",
@@ -3716,7 +3716,7 @@
}
},
"experiment-resume": {
- "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nResume a paused experiment by reactivating its feature flag (sets flag active=true). Users are re-bucketed deterministically into the same variants they had before the pause, and exposure tracking ($feature_flag_called) resumes.\n\nReturns 400 if: experiment is in draft (\"Experiment has not been launched yet.\"), already stopped (\"Experiment has already ended.\"), no linked flag (\"Experiment does not have a feature flag linked.\"), or not currently paused (\"Experiment is not paused.\").\n\nNo request body needed.",
+ "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nResume a paused experiment by reactivating its feature flag (sets flag active=true). Users are re-bucketed deterministically into the same variants they had before the pause, and exposure tracking resumes.\n\nReturns 400 if: experiment is in draft (\"Experiment has not been launched yet.\"), already stopped (\"Experiment has already ended.\"), no linked flag (\"Experiment does not have a feature flag linked.\"), or not currently paused (\"Experiment is not paused.\").\n\nNo request body needed.",
"category": "Experiments",
"feature": "experiments",
"summary": "Resume experiment",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index ffb69d296cb0..80458d5a5aa8 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -3647,7 +3647,7 @@
}
},
"experiment-end": {
- "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nEnd a running experiment without shipping a variant. Sets end_date to now and transitions status to stopped. The feature flag is NOT modified — users continue seeing their assigned variants and exposure events ($feature_flag_called) continue to fire, but only data up to end_date is included in results.\n\nOptionally provide conclusion (\"won\", \"lost\", \"inconclusive\", \"stopped_early\", \"invalid\") and conclusion_comment.\n\nReturns 400 if the experiment is in draft (\"Experiment has not been launched yet.\") or already stopped (\"Experiment has already ended.\").\n\nOther options: use experiment-ship-variant to end AND roll out a winner. Use pause to temporarily deactivate the flag without ending.",
+ "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nEnd a running experiment without shipping a variant. Sets end_date to now and transitions status to stopped. The feature flag is NOT modified — users continue seeing their assigned variants and exposure events continue to fire, but only data up to end_date is included in results.\n\nOptionally provide conclusion (\"won\", \"lost\", \"inconclusive\", \"stopped_early\", \"invalid\") and conclusion_comment.\n\nReturns 400 if the experiment is in draft (\"Experiment has not been launched yet.\") or already stopped (\"Experiment has already ended.\").\n\nOther options: use experiment-ship-variant to end AND roll out a winner. Use pause to temporarily deactivate the flag without ending.",
"category": "Experiments",
"feature": "experiments",
"summary": "End experiment",
@@ -3675,7 +3675,7 @@
}
},
"experiment-get": {
- "description": "Get a single experiment by ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first.\n\nReturns the full experiment object including: status (draft/running/paused/exposure_frozen/stopped — \"paused\" is a virtual value returned when the experiment is launched but its feature flag has been deactivated, \"exposure_frozen\" when its flag's release groups are narrowed to the already-exposed cohort so enrollment is closed while metrics keep flowing), start_date and end_date, linked feature_flag (with variants, filters, active state), metrics and metrics_secondary arrays, conclusion and conclusion_comment if ended, parameters (including feature_flag_variants and recommended_running_time), stats_config, and type (web/product).",
+ "description": "Get a single experiment by ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first.\n\nReturns the full experiment object including: status (draft/running/paused/exposure_frozen/stopped — \"paused\" is a virtual value returned when the experiment is launched but its feature flag has been deactivated, \"exposure_frozen\" when its flag's release groups are narrowed to the already-exposed cohort so enrollment is closed while metrics keep flowing), start_date and end_date, linked feature_flag (with variants, filters, active state), metrics and metrics_secondary arrays, conclusion and conclusion_comment if ended, parameters (including feature_flag_variants and recommended_running_time), stats_config, type (web/product), and resolved_exposure_event (the event exposures are counted on when no custom exposure event is configured — resolved server-side to $feature_flag_called or $experiment_exposure; use it in SQL instead of hardcoding either name).",
"category": "Experiments",
"feature": "experiments",
"summary": "Get experiment details",
@@ -3843,7 +3843,7 @@
}
},
"experiment-pause": {
- "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nPause a running experiment by deactivating its feature flag (sets flag active=false). The flag is no longer returned by the /decide endpoint, so users fall back to the application default (typically control). No new exposure events ($feature_flag_called) are recorded while paused. The experiment stays in running status — it is not ended.\n\nReturns 400 if: experiment is in draft (\"Experiment has not been launched yet.\"), already stopped (\"Experiment has already ended.\"), no linked flag (\"Experiment does not have a feature flag linked.\"), or already paused (\"Experiment is already paused.\").\n\nNo request body needed. Use resume to reactivate.",
+ "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nPause a running experiment by deactivating its feature flag (sets flag active=false). The flag is no longer returned by the /decide endpoint, so users fall back to the application default (typically control). No new exposure events are recorded while paused. The experiment stays in running status — it is not ended.\n\nReturns 400 if: experiment is in draft (\"Experiment has not been launched yet.\"), already stopped (\"Experiment has already ended.\"), no linked flag (\"Experiment does not have a feature flag linked.\"), or already paused (\"Experiment is already paused.\").\n\nNo request body needed. Use resume to reactivate.",
"category": "Experiments",
"feature": "experiments",
"summary": "Pause experiment",
@@ -3899,7 +3899,7 @@
}
},
"experiment-resume": {
- "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nResume a paused experiment by reactivating its feature flag (sets flag active=true). Users are re-bucketed deterministically into the same variants they had before the pause, and exposure tracking ($feature_flag_called) resumes.\n\nReturns 400 if: experiment is in draft (\"Experiment has not been launched yet.\"), already stopped (\"Experiment has already ended.\"), no linked flag (\"Experiment does not have a feature flag linked.\"), or not currently paused (\"Experiment is not paused.\").\n\nNo request body needed.",
+ "description": "Requires an experiment ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Load the managing-experiment-lifecycle skill for preconditions and side effects.\n\nResume a paused experiment by reactivating its feature flag (sets flag active=true). Users are re-bucketed deterministically into the same variants they had before the pause, and exposure tracking resumes.\n\nReturns 400 if: experiment is in draft (\"Experiment has not been launched yet.\"), already stopped (\"Experiment has already ended.\"), no linked flag (\"Experiment does not have a feature flag linked.\"), or not currently paused (\"Experiment is not paused.\").\n\nNo request body needed.",
"category": "Experiments",
"feature": "experiments",
"summary": "Resume experiment",