: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(mcp): Fix stale tool references in various help texts and skills (#62994)
Marcel Poelker17b655409e2c
diff --git a/products/endpoints/skills/consuming-endpoints-from-client-code/SKILL.md b/products/endpoints/skills/consuming-endpoints-from-client-code/SKILL.mdindex 62006e4cdc87..e7b61e705549 100644--- a/products/endpoints/skills/consuming-endpoints-from-client-code/SKILL.md+++ b/products/endpoints/skills/consuming-endpoints-from-client-code/SKILL.md@@ -40,7 +40,7 @@ If the user is **creating** the endpoint, use `creating-an-endpoint` first.```- `team_id` is the project ID (numeric). Available in PostHog under project settings, or via- `posthog-get-projects` if the user doesn't know it.+ `projects-get` if the user doesn't know it.- `name` is the endpoint name — see `endpoints-get-all` if the user isn't sure.- The trailing `/run` is required.diff --git a/products/experiments/mcp/tools.yaml b/products/experiments/mcp/tools.yamlindex 2a2159e2e360..4e712086358c 100644--- a/products/experiments/mcp/tools.yaml+++ b/products/experiments/mcp/tools.yaml@@ -277,8 +277,8 @@ tools:("Experiment has already ended.").- Other options: use ship_variant to end AND roll out a winner. Use pause to temporarily deactivate the flag- without ending.+ Other options: use experiment-ship-variant to end AND roll out a winner. Use pause to temporarily deactivate+ the flag without ending.param_overrides:id:cast: string-int@@ -803,7 +803,7 @@ tools:Do NOT use this to change lifecycle state — use the dedicated launch, end, pause, resume, archive, or- ship_variant tools instead.+ experiment-ship-variant tools instead.include_params:- name- descriptiondiff --git a/products/experiments/skills/diagnosing-experiment-results/references/mid-run-changes.md b/products/experiments/skills/diagnosing-experiment-results/references/mid-run-changes.mdindex 8acd7cfad0ee..7dc76881a868 100644--- a/products/experiments/skills/diagnosing-experiment-results/references/mid-run-changes.md+++ b/products/experiments/skills/diagnosing-experiment-results/references/mid-run-changes.md@@ -145,7 +145,7 @@ The MCP tool that performs this rewrite is `experiment-ship-variant`. It takesagent should confirm the release mode with the user before invoking, in addition to the variant key.Note: `activity-log-list { scope: "Experiment", item_id: <id> }` will _not_ tell you this — that-endpoint returns `activity: "updated"` with no change diff. Use the flag-activity tool.+endpoint returns `activity: "updated"` with no change diff. Use the `feature-flags-activity-retrieve` tool.**Default to control on ambiguous ships.** If the user is unsure which variant to ship — primaryunclear, secondaries mixed, or they're still investigating — recommend shipping **control**.diff --git a/products/posthog_ai/skills/querying-posthog-data/references/models-batch-exports.md b/products/posthog_ai/skills/querying-posthog-data/references/models-batch-exports.mdindex 52911293d6e0..eea7ecb175f1 100644--- a/products/posthog_ai/skills/querying-posthog-data/references/models-batch-exports.md+++ b/products/posthog_ai/skills/querying-posthog-data/references/models-batch-exports.md@@ -34,7 +34,7 @@ Batch exports define recurring data export jobs that send events, persons, or se- Filter with `deleted = 0` to exclude soft-deleted exports- Filter with `paused = 0` to find actively running exports- Destination details (type, connection config) are not in this table; use the `batch-export-get` MCP tool instead-- Run history is not directly queryable via SQL; use the `batch-export-runs-list` MCP tool+- Run history is not directly queryable via SQL; `batch-export-get` returns the 10 most recent runs in `latest_runs` — for older runs use the PostHog UI (the runs endpoints are not exposed as MCP tools)---diff --git a/services/mcp/definitions/core.yaml b/services/mcp/definitions/core.yamlindex e12dc44f1704..22775684a9ad 100644--- a/services/mcp/definitions/core.yaml+++ b/services/mcp/definitions/core.yaml@@ -85,7 +85,7 @@ tools:description: >Create a new channel (folder) on the desktop surface. Pass a slash-delimited `path` (parent folders arecreated automatically) and `type: folder`. A blank instruction set is created for the channel automatically;- use the update-instructions tool to fill it in.+ use the desktop-file-system-instructions-partial-update tool to fill it in.param_overrides:path:description: >diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 931bffb552de..bcd2d4fb4cbf 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -1427,7 +1427,7 @@}},"desktop-file-system-create": {- "description": "Create a new channel (folder) on the desktop surface. Pass a slash-delimited `path` (parent folders are created automatically) and `type: folder`. A blank instruction set is created for the channel automatically; use the update-instructions tool to fill it in.",+ "description": "Create a new channel (folder) on the desktop surface. Pass a slash-delimited `path` (parent folders are created automatically) and `type: folder`. A blank instruction set is created for the channel automatically; use the desktop-file-system-instructions-partial-update tool to fill it in.","category": "Core","feature": "core","summary": "Create desktop channel",@@ -2015,7 +2015,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 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 ($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.","category": "Experiments","feature": "experiments","summary": "End experiment",@@ -2239,7 +2239,7 @@}},"experiment-update": {- "description": "RULES (follow before calling):\n1. If changing rollout or variants on a RUNNING\n experiment, you MUST warn the user about user\n experience AND statistical implications BEFORE\n making the change and get explicit confirmation.\n Load the configuring-experiment-rollout skill for\n the full warning. Do NOT silently apply the change\n — even if the user asked directly.\n\n2. If the user mentions a percentage, clarify whether\n they mean variant split or overall rollout BEFORE\n calling.\n\n3. If adding or changing metrics, load the\n configuring-experiment-analytics skill first. Call\n read-data-schema to discover available events BEFORE\n suggesting or using any event name. Never suggest\n event names you haven't confirmed exist.\n\n4. For running experiments, set\n update_feature_flag_params=true when changing\n parameters — without it, changes save but do NOT\n sync to the feature flag.\n\n5. Setting allow_unknown_events=true REQUIRES EXPLICIT\n USER CONFIRMATION. When the API returns\n \"Event(s) '...' not found\", do NOT silently retry\n with allow_unknown_events=true. Default to\n course-correcting: surface the missing event names\n and ask whether the user meant a different (existing)\n event. Only set allow_unknown_events=true when the\n user explicitly confirms the event is intentional\n (e.g. about to be instrumented). Course-correcting\n to a known event is the expected default; flipping\n the flag is the exception.\n\n\nUpdate an experiment by ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Metrics can be changed at any time including while running. Cannot add/remove variants on non-draft experiments (changing percentages between existing variants is allowed). Cannot change holdout on non-draft experiments.\n\nDo NOT use this to change lifecycle state — use the dedicated launch, end, pause, resume, archive, or ship_variant tools instead.",+ "description": "RULES (follow before calling):\n1. If changing rollout or variants on a RUNNING\n experiment, you MUST warn the user about user\n experience AND statistical implications BEFORE\n making the change and get explicit confirmation.\n Load the configuring-experiment-rollout skill for\n the full warning. Do NOT silently apply the change\n — even if the user asked directly.\n\n2. If the user mentions a percentage, clarify whether\n they mean variant split or overall rollout BEFORE\n calling.\n\n3. If adding or changing metrics, load the\n configuring-experiment-analytics skill first. Call\n read-data-schema to discover available events BEFORE\n suggesting or using any event name. Never suggest\n event names you haven't confirmed exist.\n\n4. For running experiments, set\n update_feature_flag_params=true when changing\n parameters — without it, changes save but do NOT\n sync to the feature flag.\n\n5. Setting allow_unknown_events=true REQUIRES EXPLICIT\n USER CONFIRMATION. When the API returns\n \"Event(s) '...' not found\", do NOT silently retry\n with allow_unknown_events=true. Default to\n course-correcting: surface the missing event names\n and ask whether the user meant a different (existing)\n event. Only set allow_unknown_events=true when the\n user explicitly confirms the event is intentional\n (e.g. about to be instrumented). Course-correcting\n to a known event is the expected default; flipping\n the flag is the exception.\n\n\nUpdate an experiment by ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Metrics can be changed at any time including while running. Cannot add/remove variants on non-draft experiments (changing percentages between existing variants is allowed). Cannot change holdout on non-draft experiments.\n\nDo NOT use this to change lifecycle state — use the dedicated launch, end, pause, resume, archive, or experiment-ship-variant tools instead.","category": "Experiments","feature": "experiments","summary": "Update experiment",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex e6704430b4b4..f18278e2b2d7 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -1457,7 +1457,7 @@}},"desktop-file-system-create": {- "description": "Create a new channel (folder) on the desktop surface. Pass a slash-delimited `path` (parent folders are created automatically) and `type: folder`. A blank instruction set is created for the channel automatically; use the update-instructions tool to fill it in.",+ "description": "Create a new channel (folder) on the desktop surface. Pass a slash-delimited `path` (parent folders are created automatically) and `type: folder`. A blank instruction set is created for the channel automatically; use the desktop-file-system-instructions-partial-update tool to fill it in.","category": "Core","feature": "core","summary": "Create desktop channel",@@ -2059,7 +2059,7 @@}},"evaluations-get": {- "description": "List AI observability evaluations for the project. Evaluations automatically score AI generations for quality, relevance, safety, and other criteria. Supports optional search by name/description and filtering by enabled status. Evaluation results are stored as '$ai_evaluation' events — to query results, use the execute-sql or query-run tool with a HogQL query filtering on event = '$ai_evaluation'. Key properties: $ai_evaluation_id (evaluation UUID), $ai_evaluation_name, $ai_target_event_id (generation event UUID), $ai_trace_id, $ai_evaluation_result (boolean pass/fail), $ai_evaluation_reasoning (text), $ai_evaluation_applicable (boolean, false = N/A).",+ "description": "List AI observability evaluations for the project. Evaluations automatically score AI generations for quality, relevance, safety, and other criteria. Supports optional search by name/description and filtering by enabled status. Evaluation results are stored as '$ai_evaluation' events — to query results, use the execute-sql tool with a HogQL query filtering on event = '$ai_evaluation'. Key properties: $ai_evaluation_id (evaluation UUID), $ai_evaluation_name, $ai_target_event_id (generation event UUID), $ai_trace_id, $ai_evaluation_result (boolean pass/fail), $ai_evaluation_reasoning (text), $ai_evaluation_applicable (boolean, false = N/A).","category": "AI observability","feature": "llm_analytics","summary": "List AI observability evaluations.",@@ -2171,7 +2171,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 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 ($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.","category": "Experiments","feature": "experiments","summary": "End experiment",@@ -2423,7 +2423,7 @@}},"experiment-update": {- "description": "RULES (follow before calling):\n1. If changing rollout or variants on a RUNNING\n experiment, you MUST warn the user about user\n experience AND statistical implications BEFORE\n making the change and get explicit confirmation.\n Load the configuring-experiment-rollout skill for\n the full warning. Do NOT silently apply the change\n — even if the user asked directly.\n\n2. If the user mentions a percentage, clarify whether\n they mean variant split or overall rollout BEFORE\n calling.\n\n3. If adding or changing metrics, load the\n configuring-experiment-analytics skill first. Call\n read-data-schema to discover available events BEFORE\n suggesting or using any event name. Never suggest\n event names you haven't confirmed exist.\n\n4. For running experiments, set\n update_feature_flag_params=true when changing\n parameters — without it, changes save but do NOT\n sync to the feature flag.\n\n5. Setting allow_unknown_events=true REQUIRES EXPLICIT\n USER CONFIRMATION. When the API returns\n \"Event(s) '...' not found\", do NOT silently retry\n with allow_unknown_events=true. Default to\n course-correcting: surface the missing event names\n and ask whether the user meant a different (existing)\n event. Only set allow_unknown_events=true when the\n user explicitly confirms the event is intentional\n (e.g. about to be instrumented). Course-correcting\n to a known event is the expected default; flipping\n the flag is the exception.\n\n\nUpdate an experiment by ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Metrics can be changed at any time including while running. Cannot add/remove variants on non-draft experiments (changing percentages between existing variants is allowed). Cannot change holdout on non-draft experiments.\n\nDo NOT use this to change lifecycle state — use the dedicated launch, end, pause, resume, archive, or ship_variant tools instead.",+ "description": "RULES (follow before calling):\n1. If changing rollout or variants on a RUNNING\n experiment, you MUST warn the user about user\n experience AND statistical implications BEFORE\n making the change and get explicit confirmation.\n Load the configuring-experiment-rollout skill for\n the full warning. Do NOT silently apply the change\n — even if the user asked directly.\n\n2. If the user mentions a percentage, clarify whether\n they mean variant split or overall rollout BEFORE\n calling.\n\n3. If adding or changing metrics, load the\n configuring-experiment-analytics skill first. Call\n read-data-schema to discover available events BEFORE\n suggesting or using any event name. Never suggest\n event names you haven't confirmed exist.\n\n4. For running experiments, set\n update_feature_flag_params=true when changing\n parameters — without it, changes save but do NOT\n sync to the feature flag.\n\n5. Setting allow_unknown_events=true REQUIRES EXPLICIT\n USER CONFIRMATION. When the API returns\n \"Event(s) '...' not found\", do NOT silently retry\n with allow_unknown_events=true. Default to\n course-correcting: surface the missing event names\n and ask whether the user meant a different (existing)\n event. Only set allow_unknown_events=true when the\n user explicitly confirms the event is intentional\n (e.g. about to be instrumented). Course-correcting\n to a known event is the expected default; flipping\n the flag is the exception.\n\n\nUpdate an experiment by ID. If you don't have the ID, load the finding-experiments skill to resolve the user's reference first. Metrics can be changed at any time including while running. Cannot add/remove variants on non-draft experiments (changing percentages between existing variants is allowed). Cannot change holdout on non-draft experiments.\n\nDo NOT use this to change lifecycle state — use the dedicated launch, end, pause, resume, archive, or experiment-ship-variant tools instead.","category": "Experiments","feature": "experiments","summary": "Update experiment",diff --git a/services/mcp/schema/tool-definitions.json b/services/mcp/schema/tool-definitions.jsonindex bc0c3c8737ec..2718b08bd08e 100644--- a/services/mcp/schema/tool-definitions.json+++ b/services/mcp/schema/tool-definitions.json@@ -72,7 +72,7 @@}},"evaluations-get": {- "description": "List AI observability evaluations for the project. Evaluations automatically score AI generations for quality, relevance, safety, and other criteria. Supports optional search by name/description and filtering by enabled status. Evaluation results are stored as '$ai_evaluation' events — to query results, use the execute-sql or query-run tool with a HogQL query filtering on event = '$ai_evaluation'. Key properties: $ai_evaluation_id (evaluation UUID), $ai_evaluation_name, $ai_target_event_id (generation event UUID), $ai_trace_id, $ai_evaluation_result (boolean pass/fail), $ai_evaluation_reasoning (text), $ai_evaluation_applicable (boolean, false = N/A).",+ "description": "List AI observability evaluations for the project. Evaluations automatically score AI generations for quality, relevance, safety, and other criteria. Supports optional search by name/description and filtering by enabled status. Evaluation results are stored as '$ai_evaluation' events — to query results, use the execute-sql tool with a HogQL query filtering on event = '$ai_evaluation'. Key properties: $ai_evaluation_id (evaluation UUID), $ai_evaluation_name, $ai_target_event_id (generation event UUID), $ai_trace_id, $ai_evaluation_result (boolean pass/fail), $ai_evaluation_reasoning (text), $ai_evaluation_applicable (boolean, false = N/A).","category": "AI observability","feature": "llm_analytics","summary": "List AI observability evaluations.",