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(mcp): remove v1 tools and the v1/v2 version split (#60850)

Georgiy Tarasov8423dca7bfc2
diff --git a/products/ai_observability/mcp/tools.yaml b/products/ai_observability/mcp/tools.yaml
index 5bcfb33f2cbf..bf0103a5bddd 100644
--- a/products/ai_observability/mcp/tools.yaml
+++ b/products/ai_observability/mcp/tools.yaml
@@ -582,7 +582,6 @@ tools:
title: Get review queue
description: |
Retrieve a review queue by ID. Returns its name, current pending_item_count, creator, and timestamps.
- mcp_version: 1
llma-review-queue-item-create:
operation: llm_analytics_review_queue_items_create
enabled: true
@@ -624,7 +623,6 @@ tools:
description: >
Retrieve a single pending trace review assignment by ID. Returns the owning queue, trace_id, creator, and
timestamps for the pending review task.
- mcp_version: 1
llma-review-queue-item-list:
operation: llm_analytics_review_queue_items_list
enabled: true
@@ -640,7 +638,6 @@ tools:
description: >
List pending trace review assignments across review queues. Supports filtering by queue_id, trace_id,
trace_id__in, search, and ordering so agents can find traces that are still queued for review.
- mcp_version: 1
llma-review-queue-item-update:
operation: llm_analytics_review_queue_items_partial_update
enabled: true
@@ -670,7 +667,6 @@ tools:
description: >
List review queues used for trace reviews. Returns queue names, pending_item_count, creator info, and
timestamps. Supports queue-name search and ordering.
- mcp_version: 1
llma-review-queue-update:
operation: llm_analytics_review_queues_partial_update
enabled: true
@@ -732,7 +728,6 @@ tools:
List active scorers for the current project. By default only active rows are returned — pass `archived=true`
to see only archived scorers. Other filters: `kind` (`categorical`, `numeric`, `boolean`) and `search` over
name/description. Returns metadata plus the current config snapshot.
- mcp_version: 1
llma-score-definition-new-version:
operation: llm_analytics_score_definitions_new_version_create
enabled: true
@@ -1079,7 +1074,6 @@ tools:
description: >
Retrieve a saved trace review by ID. Returns the trace_id, comment, scores, creator, reviewer, and
timestamps.
- mcp_version: 1
llma-trace-review-list:
operation: llm_analytics_trace_reviews_list
enabled: true
@@ -1095,7 +1089,6 @@ tools:
description: >
List saved trace reviews. Supports filtering by trace_id, definition_id, search, and ordering. Returns
comments, scores, reviewers, and timestamps.
- mcp_version: 1
llma-trace-review-update:
operation: llm_analytics_trace_reviews_partial_update
enabled: true
diff --git a/products/customer_analytics/mcp/tools.yaml b/products/customer_analytics/mcp/tools.yaml
index 010b73fda3bb..c9415499ceff 100644
--- a/products/customer_analytics/mcp/tools.yaml
+++ b/products/customer_analytics/mcp/tools.yaml
@@ -73,7 +73,6 @@ tools:
description: >
JSON-encoded array of tag names to filter by, e.g. `["enterprise","priority"]`. Returns accounts
that have any of the listed tags.
- mcp_version: 1
feature_flag: customer-analytics-csp
accounts-notebooks-create:
operation: accounts_notebooks_create
@@ -121,7 +120,6 @@ tools:
description: >
List notebooks attached to a Customer Analytics account, ordered by most recently modified. Each result
includes the notebook `short_id`, `title`, `content`, and authorship metadata.
- mcp_version: 1
feature_flag: customer-analytics-csp
accounts-notebooks-retrieve:
operation: accounts_notebooks_retrieve
@@ -136,7 +134,6 @@ tools:
description: >
Fetch a single account notebook by its `short_id`. Returns the full notebook including `content`
(ProseMirror JSON document structure) and authorship metadata.
- mcp_version: 1
feature_flag: customer-analytics-csp
accounts-partial-update:
operation: accounts_partial_update
@@ -177,7 +174,6 @@ tools:
Fetch a single Customer Analytics account by id. Returns the full account including typed `properties` (csm,
account_executive, account_owner assignments plus stripe_customer_id, hubspot_deal_id, billing_id, sfdc_id,
zendesk_id external identifiers) and `tags`.
- mcp_version: 1
feature_flag: customer-analytics-csp
accounts-update:
operation: accounts_update
@@ -292,7 +288,6 @@ tools:
description: >
Legacy URL parameter retained for backward compatibility. Pass `0`. The stored value does not scope
the metric — usage metrics apply to both groups and persons regardless of this value.
- mcp_version: 1
usage-metrics-partial-update:
operation: groups_types_metrics_partial_update
enabled: true
@@ -341,7 +336,6 @@ tools:
description: >
Legacy URL parameter retained for backward compatibility. Pass `0`. The stored value does not scope
the metric — usage metrics apply to both groups and persons regardless of this value.
- mcp_version: 1
usage-metrics-update:
operation: groups_types_metrics_update
enabled: false
diff --git a/products/replay/mcp/tools.yaml b/products/replay/mcp/tools.yaml
index 4bc221ac7fed..949546bbef3a 100644
--- a/products/replay/mcp/tools.yaml
+++ b/products/replay/mcp/tools.yaml
@@ -162,7 +162,6 @@ wrappers:
readOnly: true
destructive: false
idempotent: true
- mcp_version: 2
title: List session recordings
description_file: ./prompts/query-session-recordings-list.md
system_prompt_hint: Session replay metadata and activity
diff --git a/services/mcp/definitions/query-wrappers.yaml b/services/mcp/definitions/query-wrappers.yaml
index 42a806203200..482414c72592 100644
--- a/services/mcp/definitions/query-wrappers.yaml
+++ b/services/mcp/definitions/query-wrappers.yaml
@@ -17,7 +17,6 @@ wrappers:
readOnly: true
destructive: false
idempotent: true
- mcp_version: 2
title: Run a trends query
description_file: ./prompts/query-trends.md
system_prompt_hint: Time series, aggregations, formulas, comparisons
@@ -37,7 +36,6 @@ wrappers:
readOnly: true
destructive: false
idempotent: true
- mcp_version: 2
title: Run a funnel query
description_file: ./prompts/query-funnel.md
system_prompt_hint: Conversion rates, drop-off analysis, time to convert
@@ -57,7 +55,6 @@ wrappers:
readOnly: true
destructive: false
idempotent: true
- mcp_version: 2
title: Run a retention query
description_file: ./prompts/query-retention.md
system_prompt_hint: User return patterns over time
@@ -77,7 +74,6 @@ wrappers:
readOnly: true
destructive: false
idempotent: true
- mcp_version: 2
title: Run a stickiness query
description_file: ./prompts/query-stickiness.md
system_prompt_hint: Engagement frequency (how many days users do X)
@@ -97,7 +93,6 @@ wrappers:
readOnly: true
destructive: false
idempotent: true
- mcp_version: 2
title: Run a paths query
description_file: ./prompts/query-paths.md
system_prompt_hint: User navigation flows and sequences
@@ -117,7 +112,6 @@ wrappers:
readOnly: true
destructive: false
idempotent: true
- mcp_version: 2
title: Run a lifecycle query
description_file: ./prompts/query-lifecycle.md
system_prompt_hint: New, returning, resurrecting, dormant user composition
@@ -137,7 +131,6 @@ wrappers:
readOnly: true
destructive: false
idempotent: true
- mcp_version: 2
title: List LLM traces
description_file: ./prompts/query-llm-traces-list.md
system_prompt_hint: LLM/AI trace listing and inspection
@@ -154,7 +147,6 @@ wrappers:
readOnly: true
destructive: false
idempotent: true
- mcp_version: 2
title: Get LLM trace
description_file: ./prompts/query-llm-trace.md
system_prompt_hint: Single LLM/AI trace deep-dive
@@ -172,7 +164,6 @@ wrappers:
readOnly: true
destructive: false
idempotent: true
- mcp_version: 2
title: List persons behind a trends data point
description_file: ./prompts/query-trends-actors.md
system_prompt_hint: List persons behind a trends data point
@@ -192,7 +183,6 @@ wrappers:
readOnly: true
destructive: false
idempotent: true
- mcp_version: 2
title: List persons in a lifecycle bucket
description_file: ./prompts/query-lifecycle-actors.md
system_prompt_hint: List persons in a lifecycle bucket (new/returning/resurrecting/dormant) for a given day
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index 1ff091d97ce4..d0719ef1f0cd 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -6,7 +6,6 @@
"summary": "Create account",
"title": "Create account",
"required_scopes": ["account:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -22,7 +21,6 @@
"summary": "Delete account",
"title": "Delete account",
"required_scopes": ["account:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -38,7 +36,6 @@
"summary": "List accounts",
"title": "List accounts",
"required_scopes": ["account:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -54,7 +51,6 @@
"summary": "Create account notebook",
"title": "Create account notebook",
"required_scopes": ["account:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -70,7 +66,6 @@
"summary": "Delete account notebook",
"title": "Delete account notebook",
"required_scopes": ["account:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -86,7 +81,6 @@
"summary": "List account notebooks",
"title": "List account notebooks",
"required_scopes": ["account:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -102,7 +96,6 @@
"summary": "Get account notebook",
"title": "Get account notebook",
"required_scopes": ["account:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -118,7 +111,6 @@
"summary": "Update account",
"title": "Update account",
"required_scopes": ["account:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -134,7 +126,6 @@
"summary": "Get account",
"title": "Get account",
"required_scopes": ["account:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -150,7 +141,6 @@
"summary": "Create action",
"title": "Create action",
"required_scopes": ["action:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -165,7 +155,6 @@
"summary": "Delete action",
"title": "Delete action",
"required_scopes": ["action:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -180,7 +169,6 @@
"summary": "Get action",
"title": "Get action",
"required_scopes": ["action:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -195,7 +183,6 @@
"summary": "Update action",
"title": "Update action",
"required_scopes": ["action:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -210,7 +197,6 @@
"summary": "Get all actions",
"title": "Get all actions",
"required_scopes": ["action:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -225,7 +211,6 @@
"summary": "List recent activity in the project.",
"title": "List recent activity in the project.",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -240,7 +225,6 @@
"summary": "Get available activity log filter options.",
"title": "Get available activity log filter options.",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -255,7 +239,6 @@
"summary": "List activity logs with advanced filtering.",
"title": "List activity logs with advanced filtering.",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -270,7 +253,6 @@
"summary": "Create alert",
"title": "Create alert",
"required_scopes": ["alert:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -285,7 +267,6 @@
"summary": "Delete alert",
"title": "Delete alert",
"required_scopes": ["alert:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -300,7 +281,6 @@
"summary": "Get alert",
"title": "Get alert",
"required_scopes": ["alert:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -315,7 +295,6 @@
"summary": "Simulate detector on insight",
"title": "Simulate detector on insight",
"required_scopes": ["alert:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -330,7 +309,6 @@
"summary": "Update alert",
"title": "Update alert",
"required_scopes": ["alert:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -345,7 +323,6 @@
"summary": "List alerts",
"title": "List alerts",
"required_scopes": ["alert:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -360,7 +337,6 @@
"summary": "Create annotation",
"title": "Create annotation",
"required_scopes": ["annotation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -375,7 +351,6 @@
"summary": "Delete annotation",
"title": "Delete annotation",
"required_scopes": ["annotation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -390,7 +365,6 @@
"summary": "Retrieve annotation",
"title": "Retrieve annotation",
"required_scopes": ["annotation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -405,7 +379,6 @@
"summary": "List annotations",
"title": "List annotations",
"required_scopes": ["annotation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -420,7 +393,6 @@
"summary": "Update annotation",
"title": "Update annotation",
"required_scopes": ["annotation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -435,7 +407,6 @@
"summary": "List tracing attribute values",
"title": "List tracing attribute values",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -451,7 +422,6 @@
"summary": "List tracing span attributes",
"title": "List tracing span attributes",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -467,7 +437,6 @@
"summary": "List tracing service names",
"title": "List tracing service names",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -483,7 +452,6 @@
"summary": "Aggregate span statistics",
"title": "Aggregate span statistics",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -499,7 +467,6 @@
"summary": "Aggregate span call tree",
"title": "Aggregate span call tree",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -515,7 +482,6 @@
"summary": "Retrieve trace spans",
"title": "Retrieve trace spans",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -531,7 +497,6 @@
"summary": "List approval policies for the project.",
"title": "List approval policies for the project.",
"required_scopes": ["approvals:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -546,7 +511,6 @@
"summary": "Get a specific approval policy.",
"title": "Get a specific approval policy.",
"required_scopes": ["approvals:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -561,7 +525,6 @@
"summary": "Create batch export",
"title": "Create batch export",
"required_scopes": ["batch_export:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -576,7 +539,6 @@
"summary": "Delete batch export",
"title": "Delete batch export",
"required_scopes": ["batch_export:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -591,7 +553,6 @@
"summary": "Get batch export",
"title": "Get batch export",
"required_scopes": ["batch_export:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -606,7 +567,6 @@
"summary": "Update batch export",
"title": "Update batch export",
"required_scopes": ["batch_export:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -621,7 +581,6 @@
"summary": "List batch exports",
"title": "List batch exports",
"required_scopes": ["batch_export:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -636,7 +595,6 @@
"summary": "List function templates",
"title": "List function templates",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -651,7 +609,6 @@
"summary": "Get function template",
"title": "Get function template",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -666,7 +623,6 @@
"summary": "Create function",
"title": "Create function",
"required_scopes": ["hog_function:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -681,7 +637,6 @@
"summary": "Delete function",
"title": "Delete function",
"required_scopes": ["hog_function:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -696,7 +651,6 @@
"summary": "Test-invoke function",
"title": "Test-invoke function",
"required_scopes": ["hog_function:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -711,7 +665,6 @@
"summary": "List functions",
"title": "List functions",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -726,7 +679,6 @@
"summary": "Get function logs",
"title": "Get function logs",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -741,7 +693,6 @@
"summary": "Get function metrics",
"title": "Get function metrics",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -756,7 +707,6 @@
"summary": "Update function",
"title": "Update function",
"required_scopes": ["hog_function:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -771,7 +721,6 @@
"summary": "Reorder transformation execution",
"title": "Reorder transformation execution",
"required_scopes": ["hog_function:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -786,7 +735,6 @@
"summary": "Get function",
"title": "Get function",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -801,7 +749,6 @@
"summary": "Get details of a specific approval request.",
"title": "Get details of a specific approval request.",
"required_scopes": ["approvals:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -816,7 +763,6 @@
"summary": "List pending and resolved approval requests.",
"title": "List pending and resolved approval requests.",
"required_scopes": ["approvals:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -831,7 +777,6 @@
"summary": "Add persons to static cohort",
"title": "Add persons to static cohort",
"required_scopes": ["cohort:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -846,7 +791,6 @@
"summary": "Create cohort",
"title": "Create cohort",
"required_scopes": ["cohort:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -861,7 +805,6 @@
"summary": "List all cohorts",
"title": "List all cohorts",
"required_scopes": ["cohort:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -876,7 +819,6 @@
"summary": "Update cohort",
"title": "Update cohort",
"required_scopes": ["cohort:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -891,7 +833,6 @@
"summary": "Get cohort",
"title": "Get cohort",
"required_scopes": ["cohort:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -906,7 +847,6 @@
"summary": "Remove person from static cohort",
"title": "Remove person from static cohort",
"required_scopes": ["cohort:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -921,7 +861,6 @@
"summary": "Get comment counts.",
"title": "Get comment counts.",
"required_scopes": ["comment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -936,7 +875,6 @@
"summary": "Get a specific comment.",
"title": "Get a specific comment.",
"required_scopes": ["comment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -951,7 +889,6 @@
"summary": "Get all replies in a comment thread.",
"title": "Get all replies in a comment thread.",
"required_scopes": ["comment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -966,7 +903,6 @@
"summary": "List comments and discussion threads.",
"title": "List comments and discussion threads.",
"required_scopes": ["comment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -981,7 +917,6 @@
"summary": "List support tickets",
"title": "List support tickets",
"required_scopes": ["ticket:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -996,7 +931,6 @@
"summary": "Get support ticket",
"title": "Get support ticket",
"required_scopes": ["ticket:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1011,7 +945,6 @@
"summary": "Update support ticket",
"title": "Update support ticket",
"required_scopes": ["ticket:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1026,7 +959,6 @@
"summary": "Create feature flag",
"title": "Create feature flag",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1041,7 +973,6 @@
"summary": "Create dashboard",
"title": "Create dashboard",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1056,7 +987,6 @@
"summary": "Create dashboard text tile",
"title": "Create dashboard text tile",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1071,7 +1001,6 @@
"summary": "Delete dashboard",
"title": "Delete dashboard",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -1086,7 +1015,6 @@
"summary": "Get dashboard",
"title": "Get dashboard",
"required_scopes": ["dashboard:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1101,7 +1029,6 @@
"summary": "Run dashboard insights",
"title": "Run dashboard insights",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1116,7 +1043,6 @@
"summary": "Reorder dashboard tiles",
"title": "Reorder dashboard tiles",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1131,7 +1057,6 @@
"summary": "Update dashboard",
"title": "Update dashboard",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1146,7 +1071,6 @@
"summary": "Update dashboard text tile",
"title": "Update dashboard text tile",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1161,7 +1085,6 @@
"summary": "Get all dashboards",
"title": "Get all dashboards",
"required_scopes": ["dashboard:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1176,7 +1099,6 @@
"summary": "List data pipeline health issues",
"title": "List data pipeline health issues",
"required_scopes": ["warehouse_view:read", "external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1191,7 +1113,6 @@
"summary": "Delete feature flag",
"title": "Delete feature flag",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1206,7 +1127,6 @@
"summary": "Search documentation",
"title": "Search documentation",
"required_scopes": ["project:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1221,7 +1141,6 @@
"summary": "Create early access feature",
"title": "Create early access feature",
"required_scopes": ["early_access_feature:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1236,7 +1155,6 @@
"summary": "Delete early access feature",
"title": "Delete early access feature",
"required_scopes": ["early_access_feature:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1251,7 +1169,6 @@
"summary": "List early access features",
"title": "List early access features",
"required_scopes": ["early_access_feature:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1266,7 +1183,6 @@
"summary": "Update early access feature",
"title": "Update early access feature",
"required_scopes": ["early_access_feature:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1281,7 +1197,6 @@
"summary": "Get early access feature",
"title": "Get early access feature",
"required_scopes": ["early_access_feature:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1296,7 +1211,6 @@
"summary": "Create endpoint",
"title": "Create endpoint",
"required_scopes": ["endpoint:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1311,7 +1225,6 @@
"summary": "Delete endpoint",
"title": "Delete endpoint",
"required_scopes": ["endpoint:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1326,7 +1239,6 @@
"summary": "Get endpoint",
"title": "Get endpoint",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1341,7 +1253,6 @@
"summary": "Get materialization status",
"title": "Get materialization status",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1356,7 +1267,6 @@
"summary": "Get endpoint OpenAPI spec",
"title": "Get endpoint OpenAPI spec",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1371,7 +1281,6 @@
"summary": "Run endpoint",
"title": "Run endpoint",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1386,7 +1295,6 @@
"summary": "Update endpoint",
"title": "Update endpoint",
"required_scopes": ["endpoint:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1401,7 +1309,6 @@
"summary": "Get endpoint versions",
"title": "Get endpoint versions",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1416,7 +1323,6 @@
"summary": "Get all endpoints",
"title": "Get all endpoints",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1431,7 +1337,6 @@
"summary": "Create error tracking assignment rule",
"title": "Create error tracking assignment rule",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1446,7 +1351,6 @@
"summary": "List error tracking assignment rules",
"title": "List error tracking assignment rules",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1461,7 +1365,6 @@
"summary": "Create error tracking grouping rule",
"title": "Create error tracking grouping rule",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1476,7 +1379,6 @@
"summary": "List error tracking grouping rules",
"title": "List error tracking grouping rules",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1491,7 +1393,6 @@
"summary": "Update error tracking grouping rule",
"title": "Update error tracking grouping rule",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1506,7 +1407,6 @@
"summary": "Merge error tracking issues",
"title": "Merge error tracking issues",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -1521,7 +1421,6 @@
"summary": "Update error tracking issue",
"title": "Update error tracking issue",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1536,7 +1435,6 @@
"summary": "Split error tracking issue fingerprints",
"title": "Split error tracking issue fingerprints",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -1551,7 +1449,6 @@
"summary": "Create error tracking suppression rule",
"title": "Create error tracking suppression rule",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -1566,7 +1463,6 @@
"summary": "List error tracking suppression rules",
"title": "List error tracking suppression rules",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1581,7 +1477,6 @@
"summary": "Update error tracking suppression rule",
"title": "Update error tracking suppression rule",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1596,7 +1491,6 @@
"summary": "Download error tracking symbol set",
"title": "Download error tracking symbol set",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1611,7 +1505,6 @@
"summary": "List error tracking symbol sets",
"title": "List error tracking symbol sets",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1626,7 +1519,6 @@
"summary": "Get error tracking symbol set",
"title": "Get error tracking symbol set",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1641,7 +1533,6 @@
"summary": "Archive experiment",
"title": "Archive experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1656,7 +1547,6 @@
"summary": "Create experiment",
"title": "Create experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1671,7 +1561,6 @@
"summary": "Delete experiment",
"title": "Delete experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1686,7 +1575,6 @@
"summary": "Duplicate experiment",
"title": "Duplicate experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1701,7 +1589,6 @@
"summary": "End experiment",
"title": "End experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1716,7 +1603,6 @@
"summary": "Get experiment details",
"title": "Get experiment details",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1731,7 +1617,6 @@
"summary": "Launch experiment",
"title": "Launch experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1746,7 +1631,6 @@
"summary": "Get all experiments",
"title": "Get all experiments",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1761,7 +1645,6 @@
"summary": "Pause experiment",
"title": "Pause experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1776,7 +1659,6 @@
"summary": "Reset experiment",
"title": "Reset experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1791,7 +1673,6 @@
"summary": "Resume experiment",
"title": "Resume experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1806,7 +1687,6 @@
"summary": "Create shared experiment metric",
"title": "Create shared experiment metric",
"required_scopes": ["experiment_saved_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1821,7 +1701,6 @@
"summary": "Delete shared experiment metric",
"title": "Delete shared experiment metric",
"required_scopes": ["experiment_saved_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1836,7 +1715,6 @@
"summary": "List shared experiment metrics",
"title": "List shared experiment metrics",
"required_scopes": ["experiment_saved_metric:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1851,7 +1729,6 @@
"summary": "Update shared experiment metric",
"title": "Update shared experiment metric",
"required_scopes": ["experiment_saved_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1866,7 +1743,6 @@
"summary": "Get shared experiment metric",
"title": "Get shared experiment metric",
"required_scopes": ["experiment_saved_metric:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1881,7 +1757,6 @@
"summary": "Ship experiment variant",
"title": "Ship experiment variant",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -1896,7 +1771,6 @@
"summary": "Get experiment velocity stats",
"title": "Get experiment velocity stats",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1911,7 +1785,6 @@
"summary": "Get experiment timeseries results",
"title": "Get experiment timeseries results",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1926,7 +1799,6 @@
"summary": "Unarchive experiment",
"title": "Unarchive experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1941,7 +1813,6 @@
"summary": "Update experiment",
"title": "Update experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1956,7 +1827,6 @@
"summary": "Cancel running sync",
"title": "Cancel running sync",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1971,7 +1841,6 @@
"summary": "Delete synced table data",
"title": "Delete synced table data",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1986,7 +1855,6 @@
"summary": "Refresh candidate incremental fields for a schema",
"title": "Refresh candidate incremental fields for a schema",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2001,7 +1869,6 @@
"summary": "List data import schemas",
"title": "List data import schemas",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2016,7 +1883,6 @@
"summary": "Update data import schema",
"title": "Update data import schema",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2031,7 +1897,6 @@
"summary": "Trigger sync for a table schema",
"title": "Trigger sync for a table schema",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2046,7 +1911,6 @@
"summary": "Resync table schema from scratch",
"title": "Resync table schema from scratch",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -2061,7 +1925,6 @@
"summary": "Get data import schema",
"title": "Get data import schema",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2076,7 +1939,6 @@
"summary": "Check Postgres CDC prerequisites",
"title": "Check Postgres CDC prerequisites",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2091,7 +1953,6 @@
"summary": "List direct-query connections",
"title": "List direct-query connections",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2106,7 +1967,6 @@
"summary": "Create data warehouse source",
"title": "Create data warehouse source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2121,7 +1981,6 @@
"summary": "Create and register a webhook for a source",
"title": "Create and register a webhook for a source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2136,7 +1995,6 @@
"summary": "Delete a source's webhook",
"title": "Delete a source's webhook",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -2151,7 +2009,6 @@
"summary": "Delete data warehouse source",
"title": "Delete data warehouse source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -2166,7 +2023,6 @@
"summary": "List data warehouse sources",
"title": "List data warehouse sources",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2181,7 +2037,6 @@
"summary": "Update data warehouse source",
"title": "Update data warehouse source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2196,7 +2051,6 @@
"summary": "Refresh available schemas",
"title": "Refresh available schemas",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2211,7 +2065,6 @@
"summary": "Trigger sync for a source",
"title": "Trigger sync for a source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2226,7 +2079,6 @@
"summary": "Get data warehouse source",
"title": "Get data warehouse source",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2241,7 +2093,6 @@
"summary": "Update webhook inputs (signing secret, etc.)",
"title": "Update webhook inputs (signing secret, etc.)",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2256,7 +2107,6 @@
"summary": "Get webhook status for a source",
"title": "Get webhook status for a source",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2271,7 +2121,6 @@
"summary": "Get source type configurations",
"title": "Get source type configurations",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2286,7 +2135,6 @@
"summary": "Get all feature flags",
"title": "Get all feature flags",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2301,7 +2149,6 @@
"summary": "Get feature flag definition",
"title": "Get feature flag definition",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2316,7 +2163,6 @@
"summary": "Get feature flag activity log",
"title": "Get feature flag activity log",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2331,7 +2177,6 @@
"summary": "Bulk delete feature flags",
"title": "Bulk delete feature flags",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -2346,7 +2191,6 @@
"summary": "Look up feature flag keys by ID",
"title": "Look up feature flag keys by ID",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2361,7 +2205,6 @@
"summary": "Bulk update tags on feature flags",
"title": "Bulk update tags on feature flags",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -2376,7 +2219,6 @@
"summary": "Copy feature flag across projects",
"title": "Copy feature flag across projects",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2391,7 +2233,6 @@
"summary": "Get dependent feature flags",
"title": "Get dependent feature flags",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2406,7 +2247,6 @@
"summary": "Get feature flag evaluation reasons",
"title": "Get feature flag evaluation reasons",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2421,7 +2261,6 @@
"summary": "Get my evaluated feature flags",
"title": "Get my evaluated feature flags",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2436,7 +2275,6 @@
"summary": "Get feature flag status",
"title": "Get feature flag status",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2451,7 +2289,6 @@
"summary": "Test feature flag evaluation",
"title": "Test feature flag evaluation",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2466,7 +2303,6 @@
"summary": "Get user blast radius",
"title": "Get user blast radius",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2481,7 +2317,6 @@
"summary": "Cancel a running file download export",
"title": "Cancel a running file download export",
"required_scopes": ["batch_export:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2496,7 +2331,6 @@
"summary": "Start file download export",
"title": "Start file download export",
"required_scopes": ["batch_export:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2511,7 +2345,6 @@
"summary": "Get file download export status",
"title": "Get file download export status",
"required_scopes": ["batch_export:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2526,7 +2359,6 @@
"summary": "Get workflow logs",
"title": "Get workflow logs",
"required_scopes": ["hog_flow:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2541,7 +2373,6 @@
"summary": "Get workflow metrics",
"title": "Get workflow metrics",
"required_scopes": ["hog_flow:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2556,7 +2387,6 @@
"summary": "List signal reports",
"title": "List signal reports",
"required_scopes": ["task:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2571,7 +2401,6 @@
"summary": "Get signal report",
"title": "Get signal report",
"required_scopes": ["task:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2586,7 +2415,6 @@
"summary": "List signal source configs",
"title": "List signal source configs",
"required_scopes": ["task:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2601,7 +2429,6 @@
"summary": "Get signal source config",
"title": "Get signal source config",
"required_scopes": ["task:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2616,7 +2443,6 @@
"summary": "Create insight",
"title": "Create insight",
"required_scopes": ["insight:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2631,7 +2457,6 @@
"summary": "Delete insight",
"title": "Delete insight",
"required_scopes": ["insight:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -2646,7 +2471,6 @@
"summary": "Get insight",
"title": "Get insight",
"required_scopes": ["insight:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2661,7 +2485,6 @@
"summary": "Update insight",
"title": "Update insight",
"required_scopes": ["insight:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2676,7 +2499,6 @@
"summary": "Get insight activity log",
"title": "Get insight activity log",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2691,7 +2513,6 @@
"summary": "Get recent insight activity across the project",
"title": "Get recent insight activity across the project",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2706,7 +2527,6 @@
"summary": "Get all insights",
"title": "Get all insights",
"required_scopes": ["insight:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2721,7 +2541,6 @@
"summary": "Get most-viewed insights",
"title": "Get most-viewed insights",
"required_scopes": ["insight:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2736,7 +2555,6 @@
"summary": "Delete integration",
"title": "Delete integration",
"required_scopes": ["integration:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -2751,7 +2569,6 @@
"summary": "Get integration",
"title": "Get integration",
"required_scopes": ["integration:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2766,7 +2583,6 @@
"summary": "List integration channels",
"title": "List integration channels",
"required_scopes": ["integration:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2781,7 +2597,6 @@
"summary": "List integrations",
"title": "List integrations",
"required_scopes": ["integration:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2796,7 +2611,6 @@
"summary": "Get clustering job",
"title": "Get clustering job",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2811,7 +2625,6 @@
"summary": "List clustering jobs",
"title": "List clustering jobs",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2826,7 +2639,6 @@
"summary": "Get evaluation config",
"title": "Get evaluation config",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2841,7 +2653,6 @@
"summary": "Set active evaluation provider key",
"title": "Set active evaluation provider key",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2856,7 +2667,6 @@
"summary": "Create evaluation",
"title": "Create evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2871,7 +2681,6 @@
"summary": "Delete evaluation",
"title": "Delete evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -2886,7 +2695,6 @@
"summary": "Get evaluation",
"title": "Get evaluation",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2901,7 +2709,6 @@
"summary": "List supported llm_judge models",
"title": "List supported llm_judge models",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2916,7 +2723,6 @@
"summary": "List evaluations",
"title": "List evaluations",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2931,7 +2737,6 @@
"summary": "Create evaluation report config",
"title": "Create evaluation report config",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2946,7 +2751,6 @@
"summary": "Delete evaluation report config",
"title": "Delete evaluation report config",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -2961,7 +2765,6 @@
"summary": "Trigger evaluation report generation",
"title": "Trigger evaluation report generation",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2976,7 +2779,6 @@
"summary": "Get evaluation report config",
"title": "Get evaluation report config",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2991,7 +2793,6 @@
"summary": "List evaluation report configs",
"title": "List evaluation report configs",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3006,7 +2807,6 @@
"summary": "List evaluation report runs",
"title": "List evaluation report runs",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3021,7 +2821,6 @@
"summary": "Update evaluation report config",
"title": "Update evaluation report config",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3036,7 +2835,6 @@
"summary": "Run evaluation",
"title": "Run evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3051,7 +2849,6 @@
"summary": "Summarize evaluation results",
"title": "Summarize evaluation results",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3067,7 +2864,6 @@
"summary": "Test Hog evaluation code",
"title": "Test Hog evaluation code",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3082,7 +2878,6 @@
"summary": "Update evaluation",
"title": "Update evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3097,7 +2892,6 @@
"summary": "Get my LLM spend analysis",
"title": "Get my LLM spend analysis",
"required_scopes": ["user:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3112,7 +2906,6 @@
"summary": "Create prompt",
"title": "Create prompt",
"required_scopes": ["llm_prompt:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3127,7 +2920,6 @@
"summary": "Duplicate prompt",
"title": "Duplicate prompt",
"required_scopes": ["llm_prompt:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3142,7 +2934,6 @@
"summary": "Get prompt",
"title": "Get prompt",
"required_scopes": ["llm_prompt:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3157,7 +2948,6 @@
"summary": "List prompts",
"title": "List prompts",
"required_scopes": ["llm_prompt:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3172,7 +2962,6 @@
"summary": "Update prompt",
"title": "Update prompt",
"required_scopes": ["llm_prompt:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3187,7 +2976,6 @@
"summary": "Create review queue",
"title": "Create review queue",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3202,7 +2990,6 @@
"summary": "Delete review queue",
"title": "Delete review queue",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3217,7 +3004,6 @@
"summary": "Get review queue",
"title": "Get review queue",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3232,7 +3018,6 @@
"summary": "Create review queue item",
"title": "Create review queue item",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3247,7 +3032,6 @@
"summary": "Delete review queue item",
"title": "Delete review queue item",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3262,7 +3046,6 @@
"summary": "Get review queue item",
"title": "Get review queue item",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3277,7 +3060,6 @@
"summary": "List review queue items",
"title": "List review queue items",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3292,7 +3074,6 @@
"summary": "Update review queue item",
"title": "Update review queue item",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3307,7 +3088,6 @@
"summary": "List review queues",
"title": "List review queues",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3322,7 +3102,6 @@
"summary": "Update review queue",
"title": "Update review queue",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3337,7 +3116,6 @@
"summary": "Create scorer",
"title": "Create scorer",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3352,7 +3130,6 @@
"summary": "Get scorer",
"title": "Get scorer",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3367,7 +3144,6 @@
"summary": "List scorers",
"title": "List scorers",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3382,7 +3158,6 @@
"summary": "Bump scorer to a new version",
"title": "Bump scorer to a new version",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3397,7 +3172,6 @@
"summary": "Update scorer metadata",
"title": "Update scorer metadata",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3412,7 +3186,6 @@
"summary": "Analyze sentiment",
"title": "Analyze sentiment",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3427,7 +3200,6 @@
"summary": "Archive skill",
"title": "Archive skill",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -3442,7 +3214,6 @@
"summary": "Create skill",
"title": "Create skill",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3457,7 +3228,6 @@
"summary": "Duplicate skill",
"title": "Duplicate skill",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3472,7 +3242,6 @@
"summary": "Create skill file",
"title": "Create skill file",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3487,7 +3256,6 @@
"summary": "Delete skill file",
"title": "Delete skill file",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -3502,7 +3270,6 @@
"summary": "Get skill file",
"title": "Get skill file",
"required_scopes": ["llm_skill:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3517,7 +3284,6 @@
"summary": "Rename skill file",
"title": "Rename skill file",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3532,7 +3298,6 @@
"summary": "Get skill",
"title": "Get skill",
"required_scopes": ["llm_skill:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3547,7 +3312,6 @@
"summary": "List skills",
"title": "List skills",
"required_scopes": ["llm_skill:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3562,7 +3326,6 @@
"summary": "Update skill",
"title": "Update skill",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3577,7 +3340,6 @@
"summary": "Summarize trace or generation",
"title": "Summarize trace or generation",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3593,7 +3355,6 @@
"summary": "Create tagger",
"title": "Create tagger",
"required_scopes": ["tagger:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3608,7 +3369,6 @@
"summary": "List taggers",
"title": "List taggers",
"required_scopes": ["tagger:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3623,7 +3383,6 @@
"summary": "Test Hog tagger code",
"title": "Test Hog tagger code",
"required_scopes": ["tagger:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3638,7 +3397,6 @@
"summary": "Create trace review",
"title": "Create trace review",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3653,7 +3411,6 @@
"summary": "Delete trace review",
"title": "Delete trace review",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3668,7 +3425,6 @@
"summary": "Get trace review",
"title": "Get trace review",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3683,7 +3439,6 @@
"summary": "List trace reviews",
"title": "List trace reviews",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3698,7 +3453,6 @@
"summary": "Update trace review",
"title": "Update trace review",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3713,7 +3467,6 @@
"summary": "Create log alert",
"title": "Create log alert",
"required_scopes": ["logs:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3729,7 +3482,6 @@
"summary": "Attach alert destination",
"title": "Attach alert destination",
"required_scopes": ["logs:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3745,7 +3497,6 @@
"summary": "Detach alert destination",
"title": "Detach alert destination",
"required_scopes": ["logs:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3761,7 +3512,6 @@
"summary": "Delete log alert",
"title": "Delete log alert",
"required_scopes": ["logs:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3777,7 +3527,6 @@
"summary": "List alert events",
"title": "List alert events",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3793,7 +3542,6 @@
"summary": "List log alerts",
"title": "List log alerts",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3809,7 +3557,6 @@
"summary": "Update log alert",
"title": "Update log alert",
"required_scopes": ["logs:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3825,7 +3572,6 @@
"summary": "Get log alert",
"title": "Get log alert",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3841,7 +3587,6 @@
"summary": "Simulate log alert",
"title": "Simulate log alert",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3857,7 +3602,6 @@
"summary": "List log attribute values",
"title": "List log attribute values",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3872,7 +3616,6 @@
"summary": "List log attributes",
"title": "List log attributes",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3887,7 +3630,6 @@
"summary": "Count logs",
"title": "Count logs",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3902,7 +3644,6 @@
"summary": "Count logs by time bucket",
"title": "Count logs by time bucket",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3917,7 +3658,6 @@
"summary": "List services with stats",
"title": "List services with stats",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3932,7 +3672,6 @@
"summary": "Query logs sparkline",
"title": "Query logs sparkline",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3947,7 +3686,6 @@
"summary": "Create notebook",
"title": "Create notebook",
"required_scopes": ["notebook:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3962,7 +3700,6 @@
"summary": "Delete notebook",
"title": "Delete notebook",
"required_scopes": ["notebook:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3977,7 +3714,6 @@
"summary": "List notebooks",
"title": "List notebooks",
"required_scopes": ["notebook:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3992,7 +3728,6 @@
"summary": "Update notebook",
"title": "Update notebook",
"required_scopes": ["notebook:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4009,7 +3744,6 @@
"summary": "Get notebook",
"title": "Get notebook",
"required_scopes": ["notebook:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4024,7 +3758,6 @@
"summary": "List organization members.",
"title": "List organization members.",
"required_scopes": ["organization_member:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4039,7 +3772,6 @@
"summary": "Get organization details.",
"title": "Get organization details.",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4054,7 +3786,6 @@
"summary": "List organizations.",
"title": "List organizations.",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4069,7 +3800,6 @@
"summary": "Bulk delete persons",
"title": "Bulk delete persons",
"required_scopes": ["person:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -4084,7 +3814,6 @@
"summary": "Get person cohorts",
"title": "Get person cohorts",
"required_scopes": ["person:read", "cohort:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4099,7 +3828,6 @@
"summary": "List persons",
"title": "List persons",
"required_scopes": ["person:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4114,7 +3842,6 @@
"summary": "Delete person property",
"title": "Delete person property",
"required_scopes": ["person:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4129,7 +3856,6 @@
"summary": "Set person property",
"title": "Set person property",
"required_scopes": ["person:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4144,7 +3870,6 @@
"summary": "Get person",
"title": "Get person",
"required_scopes": ["person:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4159,7 +3884,6 @@
"summary": "Get person property values",
"title": "Get person property values",
"required_scopes": ["person:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4174,7 +3898,6 @@
"summary": "Get project",
"title": "Get project",
"required_scopes": ["project:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4189,7 +3912,6 @@
"summary": "Update project settings",
"title": "Update project settings",
"required_scopes": ["project:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -4204,7 +3926,6 @@
"summary": "Create reverse proxy",
"title": "Create reverse proxy",
"required_scopes": ["organization:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4219,7 +3940,6 @@
"summary": "Delete reverse proxy",
"title": "Delete reverse proxy",
"required_scopes": ["organization:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -4234,7 +3954,6 @@
"summary": "Diagnose reverse proxy",
"title": "Diagnose reverse proxy",
"required_scopes": ["organization:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4249,7 +3968,6 @@
"summary": "Get reverse proxy details",
"title": "Get reverse proxy details",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4264,7 +3982,6 @@
"summary": "List reverse proxies",
"title": "List reverse proxies",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4279,7 +3996,6 @@
"summary": "Retry reverse proxy provisioning",
"title": "Retry reverse proxy provisioning",
"required_scopes": ["organization:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4294,7 +4010,6 @@
"summary": "Query tracing spans",
"title": "Query tracing spans",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4310,7 +4025,6 @@
"summary": "Query error tracking issue",
"title": "Query error tracking issue",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4326,7 +4040,6 @@
"summary": "Query error tracking issue events",
"title": "Query error tracking issue events",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4342,7 +4055,6 @@
"summary": "Query error tracking issues list",
"title": "Query error tracking issues list",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4358,7 +4070,6 @@
"summary": "Run a funnel query",
"title": "Run a funnel query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4374,7 +4085,6 @@
"summary": "Run a lifecycle query",
"title": "Run a lifecycle query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4390,7 +4100,6 @@
"summary": "List persons in a lifecycle bucket",
"title": "List persons in a lifecycle bucket",
"required_scopes": ["query:read", "person:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4406,7 +4115,6 @@
"summary": "Get LLM trace",
"title": "Get LLM trace",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4422,7 +4130,6 @@
"summary": "List LLM traces",
"title": "List LLM traces",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4438,7 +4145,6 @@
"summary": "Query logs",
"title": "Query logs",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4454,7 +4160,6 @@
"summary": "Run a paths query",
"title": "Run a paths query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4470,7 +4175,6 @@
"summary": "Run a retention query",
"title": "Run a retention query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4486,7 +4190,6 @@
"summary": "List session recordings",
"title": "List session recordings",
"required_scopes": ["session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4502,7 +4205,6 @@
"summary": "Run a stickiness query",
"title": "Run a stickiness query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4518,7 +4220,6 @@
"summary": "Run a trends query",
"title": "Run a trends query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4534,7 +4235,6 @@
"summary": "List persons behind a trends data point",
"title": "List persons behind a trends data point",
"required_scopes": ["query:read", "person:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4550,7 +4250,6 @@
"summary": "Get a specific role.",
"title": "Get a specific role.",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4565,7 +4264,6 @@
"summary": "List members of a role.",
"title": "List members of a role.",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4580,7 +4278,6 @@
"summary": "List organization roles.",
"title": "List organization roles.",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4595,7 +4292,6 @@
"summary": "Create a scheduled change",
"title": "Create a scheduled change",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4610,7 +4306,6 @@
"summary": "Delete a scheduled change",
"title": "Delete a scheduled change",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -4625,7 +4320,6 @@
"summary": "Get a scheduled change",
"title": "Get a scheduled change",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4640,7 +4334,6 @@
"summary": "List scheduled changes for feature flags",
"title": "List scheduled changes for feature flags",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4655,7 +4348,6 @@
"summary": "Update a scheduled change",
"title": "Update a scheduled change",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4670,7 +4362,6 @@
"summary": "Get SDK health report",
"title": "Get SDK health report",
"required_scopes": ["project:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4685,7 +4376,6 @@
"summary": "Delete session recording",
"title": "Delete session recording",
"required_scopes": ["session_recording:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -4700,7 +4390,6 @@
"summary": "Get session recording",
"title": "Get session recording",
"required_scopes": ["session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4715,7 +4404,6 @@
"summary": "Create session recording playlist",
"title": "Create session recording playlist",
"required_scopes": ["session_recording_playlist:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4730,7 +4418,6 @@
"summary": "Get session recording playlist",
"title": "Get session recording playlist",
"required_scopes": ["session_recording_playlist:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4745,7 +4432,6 @@
"summary": "Update session recording playlist",
"title": "Update session recording playlist",
"required_scopes": ["session_recording_playlist:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4760,7 +4446,6 @@
"summary": "List session recording playlists",
"title": "List session recording playlists",
"required_scopes": ["session_recording_playlist:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4775,7 +4460,6 @@
"summary": "Emit a finding for a run",
"title": "Emit a finding for a run",
"required_scopes": ["signal_scout_internal:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4790,7 +4474,6 @@
"summary": "Get the project profile",
"title": "Get the project profile",
"required_scopes": ["signal_scout:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4805,7 +4488,6 @@
"summary": "List recent scout runs",
"title": "List recent scout runs",
"required_scopes": ["signal_scout:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4820,7 +4502,6 @@
"summary": "Get a scout run by ID",
"title": "Get a scout run by ID",
"required_scopes": ["signal_scout:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4835,7 +4516,6 @@
"summary": "Forget a scratchpad entry by key",
"title": "Forget a scratchpad entry by key",
"required_scopes": ["signal_scout_internal:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -4850,7 +4530,6 @@
"summary": "Remember a scratchpad entry",
"title": "Remember a scratchpad entry",
"required_scopes": ["signal_scout_internal:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4865,7 +4544,6 @@
"summary": "Search the scout scratchpad",
"title": "Search the scout scratchpad",
"required_scopes": ["signal_scout:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4880,7 +4558,6 @@
"summary": "Create SQL variable",
"title": "Create SQL variable",
"required_scopes": ["insight_variable:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4895,7 +4572,6 @@
"summary": "Delete SQL variable",
"title": "Delete SQL variable",
"required_scopes": ["insight_variable:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -4910,7 +4586,6 @@
"summary": "Update SQL variable",
"title": "Update SQL variable",
"required_scopes": ["insight_variable:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4925,7 +4600,6 @@
"summary": "Create subscription",
"title": "Create subscription",
"required_scopes": ["subscription:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4940,7 +4614,6 @@
"summary": "List subscription deliveries",
"title": "List subscription deliveries",
"required_scopes": ["subscription:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4955,7 +4628,6 @@
"summary": "Get subscription delivery",
"title": "Get subscription delivery",
"required_scopes": ["subscription:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4970,7 +4642,6 @@
"summary": "List subscriptions",
"title": "List subscriptions",
"required_scopes": ["subscription:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4985,7 +4656,6 @@
"summary": "Update subscription",
"title": "Update subscription",
"required_scopes": ["subscription:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5000,7 +4670,6 @@
"summary": "Get subscription",
"title": "Get subscription",
"required_scopes": ["subscription:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5015,7 +4684,6 @@
"summary": "Send test delivery",
"title": "Send test delivery",
"required_scopes": ["subscription:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -5030,7 +4698,6 @@
"summary": "Creates a new survey in the project.",
"title": "Creates a new survey in the project.",
"required_scopes": ["survey:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5045,7 +4712,6 @@
"summary": "Delete a survey by ID.",
"title": "Delete a survey by ID.",
"required_scopes": ["survey:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5060,7 +4726,6 @@
"summary": "Get a specific survey by ID.",
"title": "Get a specific survey by ID.",
"required_scopes": ["survey:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5075,7 +4740,6 @@
"summary": "Get response statistics for a specific survey.",
"title": "Get response statistics for a specific survey.",
"required_scopes": ["survey:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5090,7 +4754,6 @@
"summary": "Update an existing survey by ID.",
"title": "Update an existing survey by ID.",
"required_scopes": ["survey:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5105,7 +4768,6 @@
"summary": "Get all surveys in the project with optional filtering.",
"title": "Get all surveys in the project with optional filtering.",
"required_scopes": ["survey:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5120,7 +4782,6 @@
"summary": "Get aggregated response statistics across all surveys.",
"title": "Get aggregated response statistics across all surveys.",
"required_scopes": ["survey:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5135,7 +4796,6 @@
"summary": "Update feature flag",
"title": "Update feature flag",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5150,7 +4810,6 @@
"summary": "Create usage metric",
"title": "Create usage metric",
"required_scopes": ["usage_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5165,7 +4824,6 @@
"summary": "Delete usage metric",
"title": "Delete usage metric",
"required_scopes": ["usage_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5180,7 +4838,6 @@
"summary": "List usage metrics",
"title": "List usage metrics",
"required_scopes": ["usage_metric:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5195,7 +4852,6 @@
"summary": "Update usage metric",
"title": "Update usage metric",
"required_scopes": ["usage_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5210,7 +4866,6 @@
"summary": "Get usage metric",
"title": "Get usage metric",
"required_scopes": ["usage_metric:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5225,7 +4880,6 @@
"summary": "Get user",
"title": "Get user",
"required_scopes": ["user:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5240,7 +4894,6 @@
"summary": "Get pinned tabs and homepage.",
"title": "Get pinned tabs and homepage.",
"required_scopes": ["user:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5255,7 +4908,6 @@
"summary": "Update pinned tabs and homepage.",
"title": "Update pinned tabs and homepage.",
"required_scopes": ["user:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5270,7 +4922,6 @@
"summary": "Add an interviewee to a topic",
"title": "Add an interviewee to a topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5286,7 +4937,6 @@
"summary": "Create user interview topic",
"title": "Create user interview topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5302,7 +4952,6 @@
"summary": "Generate public interview links for a topic",
"title": "Generate public interview links for a topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5318,7 +4967,6 @@
"summary": "Create many per-interviewee context rows at once",
"title": "Create many per-interviewee context rows at once",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5334,7 +4982,6 @@
"summary": "Add per-interviewee context to a topic",
"title": "Add per-interviewee context to a topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5350,7 +4997,6 @@
"summary": "Delete a per-interviewee context row",
"title": "Delete a per-interviewee context row",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5366,7 +5012,6 @@
"summary": "List per-interviewee contexts for a topic",
"title": "List per-interviewee contexts for a topic",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5382,7 +5027,6 @@
"summary": "Update a per-interviewee context row",
"title": "Update a per-interviewee context row",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5398,7 +5042,6 @@
"summary": "Export interview links for a topic as CSV",
"title": "Export interview links for a topic as CSV",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5414,7 +5057,6 @@
"summary": "List user interview topics",
"title": "List user interview topics",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5430,7 +5072,6 @@
"summary": "Update a user interview topic",
"title": "Update a user interview topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5446,7 +5087,6 @@
"summary": "Remove an interviewee from a topic",
"title": "Remove an interviewee from a topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5462,7 +5102,6 @@
"summary": "Get user interview topic",
"title": "Get user interview topic",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5478,7 +5117,6 @@
"summary": "Email interview invites to every targeted interviewee",
"title": "Email interview invites to every targeted interviewee",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5494,7 +5132,6 @@
"summary": "List user interview responses",
"title": "List user interview responses",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5510,7 +5147,6 @@
"summary": "Retrieve a user interview response",
"title": "Retrieve a user interview response",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5526,7 +5162,6 @@
"summary": "Semantic search across interview responses",
"title": "Semantic search across interview responses",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5542,7 +5177,6 @@
"summary": "Update user settings",
"title": "Update user settings",
"required_scopes": ["user:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5557,7 +5191,6 @@
"summary": "Create saved query",
"title": "Create saved query",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5572,7 +5205,6 @@
"summary": "Delete saved query",
"title": "Delete saved query",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -5587,7 +5219,6 @@
"summary": "Get saved query",
"title": "Get saved query",
"required_scopes": ["warehouse_view:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5602,7 +5233,6 @@
"summary": "List saved queries",
"title": "List saved queries",
"required_scopes": ["warehouse_view:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5617,7 +5247,6 @@
"summary": "Materialize saved query",
"title": "Materialize saved query",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5632,7 +5261,6 @@
"summary": "Run saved query",
"title": "Run saved query",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5647,7 +5275,6 @@
"summary": "Get run history",
"title": "Get run history",
"required_scopes": ["warehouse_view:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5662,7 +5289,6 @@
"summary": "Revert materialization",
"title": "Revert materialization",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5677,7 +5303,6 @@
"summary": "Update saved query",
"title": "Update saved query",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5692,7 +5317,6 @@
"summary": "Create replay vision scanner",
"title": "Create replay vision scanner",
"required_scopes": ["replay_scanner:write", "session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5709,7 +5333,6 @@
"summary": "Delete replay vision scanner",
"title": "Delete replay vision scanner",
"required_scopes": ["replay_scanner:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5725,7 +5348,6 @@
"summary": "Get replay vision scanner",
"title": "Get replay vision scanner",
"required_scopes": ["replay_scanner:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5741,7 +5363,6 @@
"summary": "List replay vision scanners",
"title": "List replay vision scanners",
"required_scopes": ["replay_scanner:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5757,7 +5378,6 @@
"summary": "Get scanner observation",
"title": "Get scanner observation",
"required_scopes": ["replay_scanner:read", "session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5773,7 +5393,6 @@
"summary": "List scanner observations",
"title": "List scanner observations",
"required_scopes": ["replay_scanner:read", "session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5789,7 +5408,6 @@
"summary": "Run scanner against a session now",
"title": "Run scanner against a session now",
"required_scopes": ["replay_scanner:write", "session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5806,7 +5424,6 @@
"summary": "Update replay vision scanner",
"title": "Update replay vision scanner",
"required_scopes": ["replay_scanner:write", "session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5823,7 +5440,6 @@
"summary": "List visual review repos",
"title": "List visual review repos",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5839,7 +5455,6 @@
"summary": "Get visual review repo",
"title": "Get visual review repo",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5855,7 +5470,6 @@
"summary": "Approve visual review snapshots",
"title": "Approve visual review snapshots",
"required_scopes": ["visual_review:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -5871,7 +5485,6 @@
"summary": "Visual review run counts",
"title": "Visual review run counts",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5887,7 +5500,6 @@
"summary": "List visual review runs",
"title": "List visual review runs",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5903,7 +5515,6 @@
"summary": "Get visual review run",
"title": "Get visual review run",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5919,7 +5530,6 @@
"summary": "Snapshot change history",
"title": "Snapshot change history",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5935,7 +5545,6 @@
"summary": "List run snapshots",
"title": "List run snapshots",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5951,7 +5560,6 @@
"summary": "Tolerate visual review snapshot",
"title": "Tolerate visual review snapshot",
"required_scopes": ["visual_review:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5967,7 +5575,6 @@
"summary": "List tolerated hashes",
"title": "List tolerated hashes",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5983,7 +5590,6 @@
"summary": "Summarize web analytics",
"title": "Summarize web analytics",
"required_scopes": ["web_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5998,7 +5604,6 @@
"summary": "Create workflow",
"title": "Create workflow",
"required_scopes": ["hog_flow:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -6013,7 +5618,6 @@
"summary": "Get workflow",
"title": "Get workflow",
"required_scopes": ["hog_flow:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6028,7 +5632,6 @@
"summary": "List workflows",
"title": "List workflows",
"required_scopes": ["hog_flow:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6043,7 +5646,6 @@
"summary": "Test-run workflow",
"title": "Test-run workflow",
"required_scopes": ["hog_flow:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -6058,7 +5660,6 @@
"summary": "Update workflow",
"title": "Update workflow",
"required_scopes": ["hog_flow:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index 266b1747203f..efc330f53d72 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -6,7 +6,6 @@
"summary": "Create account",
"title": "Create account",
"required_scopes": ["account:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -22,7 +21,6 @@
"summary": "Delete account",
"title": "Delete account",
"required_scopes": ["account:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -38,7 +36,6 @@
"summary": "List accounts",
"title": "List accounts",
"required_scopes": ["account:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -54,7 +51,6 @@
"summary": "Create account notebook",
"title": "Create account notebook",
"required_scopes": ["account:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -70,7 +66,6 @@
"summary": "Delete account notebook",
"title": "Delete account notebook",
"required_scopes": ["account:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -86,7 +81,6 @@
"summary": "List account notebooks",
"title": "List account notebooks",
"required_scopes": ["account:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -102,7 +96,6 @@
"summary": "Get account notebook",
"title": "Get account notebook",
"required_scopes": ["account:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -118,7 +111,6 @@
"summary": "Update account",
"title": "Update account",
"required_scopes": ["account:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -134,7 +126,6 @@
"summary": "Get account",
"title": "Get account",
"required_scopes": ["account:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -150,7 +141,6 @@
"summary": "Create action",
"title": "Create action",
"required_scopes": ["action:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -165,7 +155,6 @@
"summary": "Delete action",
"title": "Delete action",
"required_scopes": ["action:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -180,7 +169,6 @@
"summary": "Get action",
"title": "Get action",
"required_scopes": ["action:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -195,7 +183,6 @@
"summary": "Update action",
"title": "Update action",
"required_scopes": ["action:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -210,7 +197,6 @@
"summary": "Get all actions",
"title": "Get all actions",
"required_scopes": ["action:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -225,7 +211,6 @@
"summary": "List recent activity in the project.",
"title": "List recent activity in the project.",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -240,7 +225,6 @@
"summary": "Get available activity log filter options.",
"title": "Get available activity log filter options.",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -255,7 +239,6 @@
"summary": "List activity logs with advanced filtering.",
"title": "List activity logs with advanced filtering.",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -270,7 +253,6 @@
"summary": "Optional: submit feedback about the PostHog MCP server.",
"title": "Submit agent feedback",
"required_scopes": [],
- "new_mcp": true,
"always_available": true,
"feature_flag": "mcp-feedback-tool",
"annotations": {
@@ -287,7 +269,6 @@
"summary": "Create alert",
"title": "Create alert",
"required_scopes": ["alert:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -302,7 +283,6 @@
"summary": "Delete alert",
"title": "Delete alert",
"required_scopes": ["alert:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -317,7 +297,6 @@
"summary": "Get alert",
"title": "Get alert",
"required_scopes": ["alert:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -332,7 +311,6 @@
"summary": "Simulate detector on insight",
"title": "Simulate detector on insight",
"required_scopes": ["alert:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -347,7 +325,6 @@
"summary": "Update alert",
"title": "Update alert",
"required_scopes": ["alert:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -362,7 +339,6 @@
"summary": "List alerts",
"title": "List alerts",
"required_scopes": ["alert:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -377,7 +353,6 @@
"summary": "Create annotation",
"title": "Create annotation",
"required_scopes": ["annotation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -392,7 +367,6 @@
"summary": "Delete annotation",
"title": "Delete annotation",
"required_scopes": ["annotation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -407,7 +381,6 @@
"summary": "Retrieve annotation",
"title": "Retrieve annotation",
"required_scopes": ["annotation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -422,7 +395,6 @@
"summary": "List annotations",
"title": "List annotations",
"required_scopes": ["annotation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -437,7 +409,6 @@
"summary": "Update annotation",
"title": "Update annotation",
"required_scopes": ["annotation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -452,7 +423,6 @@
"summary": "List tracing attribute values",
"title": "List tracing attribute values",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -468,7 +438,6 @@
"summary": "List tracing span attributes",
"title": "List tracing span attributes",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -484,7 +453,6 @@
"summary": "List tracing service names",
"title": "List tracing service names",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -500,7 +468,6 @@
"summary": "Aggregate span statistics",
"title": "Aggregate span statistics",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -516,7 +483,6 @@
"summary": "Aggregate span call tree",
"title": "Aggregate span call tree",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -532,7 +498,6 @@
"summary": "Retrieve trace spans",
"title": "Retrieve trace spans",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -548,7 +513,6 @@
"summary": "List approval policies for the project.",
"title": "List approval policies for the project.",
"required_scopes": ["approvals:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -563,7 +527,6 @@
"summary": "Get a specific approval policy.",
"title": "Get a specific approval policy.",
"required_scopes": ["approvals:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -578,7 +541,6 @@
"summary": "Create batch export",
"title": "Create batch export",
"required_scopes": ["batch_export:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -593,7 +555,6 @@
"summary": "Delete batch export",
"title": "Delete batch export",
"required_scopes": ["batch_export:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -608,7 +569,6 @@
"summary": "Get batch export",
"title": "Get batch export",
"required_scopes": ["batch_export:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -623,7 +583,6 @@
"summary": "Update batch export",
"title": "Update batch export",
"required_scopes": ["batch_export:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -638,7 +597,6 @@
"summary": "List batch exports",
"title": "List batch exports",
"required_scopes": ["batch_export:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -653,7 +611,6 @@
"summary": "List function templates",
"title": "List function templates",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -668,7 +625,6 @@
"summary": "Get function template",
"title": "Get function template",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -683,7 +639,6 @@
"summary": "Create function",
"title": "Create function",
"required_scopes": ["hog_function:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -698,7 +653,6 @@
"summary": "Delete function",
"title": "Delete function",
"required_scopes": ["hog_function:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -713,7 +667,6 @@
"summary": "Test-invoke function",
"title": "Test-invoke function",
"required_scopes": ["hog_function:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -728,7 +681,6 @@
"summary": "List functions",
"title": "List functions",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -743,7 +695,6 @@
"summary": "Get function logs",
"title": "Get function logs",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -758,7 +709,6 @@
"summary": "Get function metrics",
"title": "Get function metrics",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -773,7 +723,6 @@
"summary": "Update function",
"title": "Update function",
"required_scopes": ["hog_function:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -788,7 +737,6 @@
"summary": "Reorder transformation execution",
"title": "Reorder transformation execution",
"required_scopes": ["hog_function:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -803,7 +751,6 @@
"summary": "Get function",
"title": "Get function",
"required_scopes": ["hog_function:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -818,7 +765,6 @@
"summary": "Get details of a specific approval request.",
"title": "Get details of a specific approval request.",
"required_scopes": ["approvals:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -833,7 +779,6 @@
"summary": "List pending and resolved approval requests.",
"title": "List pending and resolved approval requests.",
"required_scopes": ["approvals:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -848,7 +793,6 @@
"summary": "Add persons to static cohort",
"title": "Add persons to static cohort",
"required_scopes": ["cohort:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -863,7 +807,6 @@
"summary": "Create cohort",
"title": "Create cohort",
"required_scopes": ["cohort:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -878,7 +821,6 @@
"summary": "List all cohorts",
"title": "List all cohorts",
"required_scopes": ["cohort:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -893,7 +835,6 @@
"summary": "Update cohort",
"title": "Update cohort",
"required_scopes": ["cohort:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -908,7 +849,6 @@
"summary": "Get cohort",
"title": "Get cohort",
"required_scopes": ["cohort:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -923,7 +863,6 @@
"summary": "Remove person from static cohort",
"title": "Remove person from static cohort",
"required_scopes": ["cohort:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -938,7 +877,6 @@
"summary": "Get comment counts.",
"title": "Get comment counts.",
"required_scopes": ["comment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -953,7 +891,6 @@
"summary": "Get a specific comment.",
"title": "Get a specific comment.",
"required_scopes": ["comment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -968,7 +905,6 @@
"summary": "Get all replies in a comment thread.",
"title": "Get all replies in a comment thread.",
"required_scopes": ["comment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -983,7 +919,6 @@
"summary": "List comments and discussion threads.",
"title": "List comments and discussion threads.",
"required_scopes": ["comment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -998,7 +933,6 @@
"summary": "List support tickets",
"title": "List support tickets",
"required_scopes": ["ticket:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1013,7 +947,6 @@
"summary": "Get support ticket",
"title": "Get support ticket",
"required_scopes": ["ticket:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1028,7 +961,6 @@
"summary": "Update support ticket",
"title": "Update support ticket",
"required_scopes": ["ticket:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1043,7 +975,6 @@
"summary": "Create feature flag",
"title": "Create feature flag",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1058,7 +989,6 @@
"summary": "Create dashboard",
"title": "Create dashboard",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1073,7 +1003,6 @@
"summary": "Create dashboard text tile",
"title": "Create dashboard text tile",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1088,7 +1017,6 @@
"summary": "Delete dashboard",
"title": "Delete dashboard",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -1103,7 +1031,6 @@
"summary": "Get dashboard",
"title": "Get dashboard",
"required_scopes": ["dashboard:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1118,7 +1045,6 @@
"summary": "Run dashboard insights",
"title": "Run dashboard insights",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1133,7 +1059,6 @@
"summary": "Reorder dashboard tiles",
"title": "Reorder dashboard tiles",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1148,7 +1073,6 @@
"summary": "Update dashboard",
"title": "Update dashboard",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1163,7 +1087,6 @@
"summary": "Update dashboard text tile",
"title": "Update dashboard text tile",
"required_scopes": ["dashboard:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1178,7 +1101,6 @@
"summary": "Get all dashboards",
"title": "Get all dashboards",
"required_scopes": ["dashboard:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1193,7 +1115,6 @@
"summary": "List data pipeline health issues",
"title": "List data pipeline health issues",
"required_scopes": ["warehouse_view:read", "external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1222,7 +1143,6 @@
"summary": "Delete feature flag",
"title": "Delete feature flag",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1237,7 +1157,6 @@
"summary": "Search documentation",
"title": "Search documentation",
"required_scopes": ["project:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1252,7 +1171,6 @@
"summary": "Create early access feature",
"title": "Create early access feature",
"required_scopes": ["early_access_feature:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1267,7 +1185,6 @@
"summary": "Delete early access feature",
"title": "Delete early access feature",
"required_scopes": ["early_access_feature:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1282,7 +1199,6 @@
"summary": "List early access features",
"title": "List early access features",
"required_scopes": ["early_access_feature:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1297,7 +1213,6 @@
"summary": "Update early access feature",
"title": "Update early access feature",
"required_scopes": ["early_access_feature:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1312,7 +1227,6 @@
"summary": "Get early access feature",
"title": "Get early access feature",
"required_scopes": ["early_access_feature:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1327,7 +1241,6 @@
"summary": "Create endpoint",
"title": "Create endpoint",
"required_scopes": ["endpoint:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1342,7 +1255,6 @@
"summary": "Delete endpoint",
"title": "Delete endpoint",
"required_scopes": ["endpoint:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1357,7 +1269,6 @@
"summary": "Get endpoint",
"title": "Get endpoint",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1372,7 +1283,6 @@
"summary": "Get materialization status",
"title": "Get materialization status",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1387,7 +1297,6 @@
"summary": "Get endpoint OpenAPI spec",
"title": "Get endpoint OpenAPI spec",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1402,7 +1311,6 @@
"summary": "Run endpoint",
"title": "Run endpoint",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1417,7 +1325,6 @@
"summary": "Update endpoint",
"title": "Update endpoint",
"required_scopes": ["endpoint:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1432,7 +1339,6 @@
"summary": "Get endpoint versions",
"title": "Get endpoint versions",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1447,22 +1353,6 @@
"summary": "Get all endpoints",
"title": "Get all endpoints",
"required_scopes": ["endpoint:read"],
- "new_mcp": true,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
- "entity-search": {
- "description": "Search for PostHog entities by name or description. Can search across multiple entity types including insights, dashboards, experiments, feature flags, notebooks, actions, cohorts, event definitions, and surveys. Use this to find entities when you know part of their name. Returns matching entities with their IDs and URLs.",
- "category": "Search",
- "feature": "search",
- "summary": "Search for entities by name or description.",
- "title": "Search entities",
- "required_scopes": ["project:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1477,7 +1367,6 @@
"summary": "Create error tracking assignment rule",
"title": "Create error tracking assignment rule",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1492,7 +1381,6 @@
"summary": "List error tracking assignment rules",
"title": "List error tracking assignment rules",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1507,7 +1395,6 @@
"summary": "Create error tracking grouping rule",
"title": "Create error tracking grouping rule",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1522,7 +1409,6 @@
"summary": "List error tracking grouping rules",
"title": "List error tracking grouping rules",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1537,7 +1423,6 @@
"summary": "Update error tracking grouping rule",
"title": "Update error tracking grouping rule",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1552,7 +1437,6 @@
"summary": "Merge error tracking issues",
"title": "Merge error tracking issues",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -1567,7 +1451,6 @@
"summary": "Update error tracking issue",
"title": "Update error tracking issue",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1582,7 +1465,6 @@
"summary": "Split error tracking issue fingerprints",
"title": "Split error tracking issue fingerprints",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -1597,7 +1479,6 @@
"summary": "Create error tracking suppression rule",
"title": "Create error tracking suppression rule",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -1612,7 +1493,6 @@
"summary": "List error tracking suppression rules",
"title": "List error tracking suppression rules",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1627,7 +1507,6 @@
"summary": "Update error tracking suppression rule",
"title": "Update error tracking suppression rule",
"required_scopes": ["error_tracking:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1642,7 +1521,6 @@
"summary": "Download error tracking symbol set",
"title": "Download error tracking symbol set",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1657,7 +1535,6 @@
"summary": "List error tracking symbol sets",
"title": "List error tracking symbol sets",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1672,7 +1549,6 @@
"summary": "Get error tracking symbol set",
"title": "Get error tracking symbol set",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1687,7 +1563,6 @@
"summary": "Create a new evaluation.",
"title": "Create evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1702,7 +1577,6 @@
"summary": "Delete an evaluation.",
"title": "Delete evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1717,7 +1591,6 @@
"summary": "Get a specific evaluation by ID.",
"title": "Get evaluation",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1732,7 +1605,6 @@
"summary": "Run an evaluation on a specific event.",
"title": "Run evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1747,7 +1619,6 @@
"summary": "Dry-run Hog evaluation code against sample events.",
"title": "Test Hog evaluation",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1762,7 +1633,6 @@
"summary": "Update an evaluation.",
"title": "Update evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1777,7 +1647,6 @@
"summary": "List AI observability evaluations.",
"title": "List evaluations",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1799,21 +1668,6 @@
"readOnlyHint": false
}
},
- "event-definitions-list": {
- "description": "List all event definitions in the project with optional filtering. Can filter by search term.",
- "category": "Events & properties",
- "feature": "events",
- "summary": "List all event definitions in the project with optional filtering.",
- "title": "List all events",
- "required_scopes": ["event_definition:read"],
- "new_mcp": false,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
"execute-sql": {
"description": "Use this tool to execute an SQL query (or HogQL, which is PostHog's variant of SQL that supports most of ClickHouse SQL). We're going to use terms \"HogQL\" and \"SQL\" interchangeably. For more information, see the querying-posthog-data skill.\nBEFORE writing any query, you should follow these steps:\n1. Call posthog:read-data-warehouse-schema to discover available tables, views, columns, and their types. Do NOT guess table or column names.\n2. Call posthog:read-data-schema to discover available events, properties, and property values. Do NOT rely on training data or PostHog defaults.\n3. Only after completing steps 1 and 2, write and execute your SQL query using verified table and column names.\nUse system tables with the system. prefix for PostHog-created data. For example, count SQL insight variables with:\n```sql\nSELECT count() AS total FROM system.insight_variables\n```\nAn example query to retrieve columns of a custom data warehouse table:\n```sql\nSELECT columns FROM system.data_warehouse_tables WHERE name = 'my_table'\n```\nIMPORTANT: By default, large JSON values in results (like full `properties` objects) are truncated. If you anticipate that results might be large or you are selecting the full `properties` object (e.g., `SELECT properties FROM events`), you should dump the results to a file instead of outputting them directly. Use bash commands to process the file. Alternatively, cherry-pick only the specific properties you need (e.g., `properties.$browser`) instead of selecting the entire object.",
"category": "SQL",
@@ -1821,7 +1675,6 @@
"summary": "Execute an SQL query.",
"title": "Execute SQL query",
"required_scopes": ["query:read", "insight:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1836,7 +1689,6 @@
"summary": "Archive experiment",
"title": "Archive experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1851,7 +1703,6 @@
"summary": "Create experiment",
"title": "Create experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1866,7 +1717,6 @@
"summary": "Delete experiment",
"title": "Delete experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -1881,7 +1731,6 @@
"summary": "Duplicate experiment",
"title": "Duplicate experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1896,7 +1745,6 @@
"summary": "End experiment",
"title": "End experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1911,7 +1759,6 @@
"summary": "Get experiment details",
"title": "Get experiment details",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1926,7 +1773,6 @@
"summary": "Deprecated alias for experiment-list.",
"title": "Get all experiments (deprecated)",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1941,7 +1787,6 @@
"summary": "Launch experiment",
"title": "Launch experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1956,7 +1801,6 @@
"summary": "Get all experiments",
"title": "Get all experiments",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -1971,7 +1815,6 @@
"summary": "Pause experiment",
"title": "Pause experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -1986,7 +1829,6 @@
"summary": "Reset experiment",
"title": "Reset experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2001,7 +1843,6 @@
"summary": "Get experiment metric and exposure results with self-describing per-metric metadata.",
"title": "Get experiment results",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2016,7 +1857,6 @@
"summary": "Resume experiment",
"title": "Resume experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2031,7 +1871,6 @@
"summary": "Create shared experiment metric",
"title": "Create shared experiment metric",
"required_scopes": ["experiment_saved_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2046,7 +1885,6 @@
"summary": "Delete shared experiment metric",
"title": "Delete shared experiment metric",
"required_scopes": ["experiment_saved_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -2061,7 +1899,6 @@
"summary": "List shared experiment metrics",
"title": "List shared experiment metrics",
"required_scopes": ["experiment_saved_metric:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2076,7 +1913,6 @@
"summary": "Update shared experiment metric",
"title": "Update shared experiment metric",
"required_scopes": ["experiment_saved_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2091,7 +1927,6 @@
"summary": "Get shared experiment metric",
"title": "Get shared experiment metric",
"required_scopes": ["experiment_saved_metric:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2106,7 +1941,6 @@
"summary": "Ship experiment variant",
"title": "Ship experiment variant",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -2121,7 +1955,6 @@
"summary": "Get experiment velocity stats",
"title": "Get experiment velocity stats",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2136,7 +1969,6 @@
"summary": "Get experiment timeseries results",
"title": "Get experiment timeseries results",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2151,7 +1983,6 @@
"summary": "Unarchive experiment",
"title": "Unarchive experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2166,7 +1997,6 @@
"summary": "Update experiment",
"title": "Update experiment",
"required_scopes": ["experiment:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2181,7 +2011,6 @@
"summary": "Cancel running sync",
"title": "Cancel running sync",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2196,7 +2025,6 @@
"summary": "Delete synced table data",
"title": "Delete synced table data",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -2211,7 +2039,6 @@
"summary": "Refresh candidate incremental fields for a schema",
"title": "Refresh candidate incremental fields for a schema",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2226,7 +2053,6 @@
"summary": "List data import schemas",
"title": "List data import schemas",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2241,7 +2067,6 @@
"summary": "Update data import schema",
"title": "Update data import schema",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2256,7 +2081,6 @@
"summary": "Trigger sync for a table schema",
"title": "Trigger sync for a table schema",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2271,7 +2095,6 @@
"summary": "Resync table schema from scratch",
"title": "Resync table schema from scratch",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -2286,7 +2109,6 @@
"summary": "Get data import schema",
"title": "Get data import schema",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2301,7 +2123,6 @@
"summary": "Check Postgres CDC prerequisites",
"title": "Check Postgres CDC prerequisites",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2316,7 +2137,6 @@
"summary": "List direct-query connections",
"title": "List direct-query connections",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2331,7 +2151,6 @@
"summary": "Create data warehouse source",
"title": "Create data warehouse source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2346,7 +2165,6 @@
"summary": "Create and register a webhook for a source",
"title": "Create and register a webhook for a source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2361,7 +2179,6 @@
"summary": "Discover tables and sync methods for a source",
"title": "Discover tables and sync methods for a source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2376,7 +2193,6 @@
"summary": "Delete a source's webhook",
"title": "Delete a source's webhook",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -2391,7 +2207,6 @@
"summary": "Delete data warehouse source",
"title": "Delete data warehouse source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -2420,7 +2235,6 @@
"summary": "List data warehouse sources",
"title": "List data warehouse sources",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2435,7 +2249,6 @@
"summary": "Update data warehouse source",
"title": "Update data warehouse source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2450,7 +2263,6 @@
"summary": "Refresh available schemas",
"title": "Refresh available schemas",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2465,7 +2277,6 @@
"summary": "Trigger sync for a source",
"title": "Trigger sync for a source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2480,7 +2291,6 @@
"summary": "Get data warehouse source",
"title": "Get data warehouse source",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2495,7 +2305,6 @@
"summary": "Update webhook inputs (signing secret, etc.)",
"title": "Update webhook inputs (signing secret, etc.)",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2510,7 +2319,6 @@
"summary": "Get webhook status for a source",
"title": "Get webhook status for a source",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2525,7 +2333,6 @@
"summary": "Get source type configurations",
"title": "Get source type configurations",
"required_scopes": ["external_data_source:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2554,7 +2361,6 @@
"summary": "Get all feature flags",
"title": "Get all feature flags",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2569,7 +2375,6 @@
"summary": "Get feature flag definition",
"title": "Get feature flag definition",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2584,7 +2389,6 @@
"summary": "Get feature flag activity log",
"title": "Get feature flag activity log",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2599,7 +2403,6 @@
"summary": "Bulk delete feature flags",
"title": "Bulk delete feature flags",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -2614,7 +2417,6 @@
"summary": "Look up feature flag keys by ID",
"title": "Look up feature flag keys by ID",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2629,7 +2431,6 @@
"summary": "Bulk update tags on feature flags",
"title": "Bulk update tags on feature flags",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -2644,7 +2445,6 @@
"summary": "Copy feature flag across projects",
"title": "Copy feature flag across projects",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2659,7 +2459,6 @@
"summary": "Get dependent feature flags",
"title": "Get dependent feature flags",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2674,7 +2473,6 @@
"summary": "Get feature flag evaluation reasons",
"title": "Get feature flag evaluation reasons",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2689,7 +2487,6 @@
"summary": "Get my evaluated feature flags",
"title": "Get my evaluated feature flags",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2704,7 +2501,6 @@
"summary": "Get feature flag status",
"title": "Get feature flag status",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2719,7 +2515,6 @@
"summary": "Test feature flag evaluation",
"title": "Test feature flag evaluation",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2734,7 +2529,6 @@
"summary": "Get user blast radius",
"title": "Get user blast radius",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2749,7 +2543,6 @@
"summary": "Cancel a running file download export",
"title": "Cancel a running file download export",
"required_scopes": ["batch_export:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2764,7 +2557,6 @@
"summary": "Start file download export",
"title": "Start file download export",
"required_scopes": ["batch_export:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2779,7 +2571,6 @@
"summary": "Get file download export status",
"title": "Get file download export status",
"required_scopes": ["batch_export:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2794,7 +2585,6 @@
"summary": "Fetches the total LLM daily costs for each model for a project over a given number of days.",
"title": "Get LLM costs",
"required_scopes": ["warehouse_table:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2809,7 +2599,6 @@
"summary": "Get workflow logs",
"title": "Get workflow logs",
"required_scopes": ["hog_flow:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2824,7 +2613,6 @@
"summary": "Get workflow metrics",
"title": "Get workflow metrics",
"required_scopes": ["hog_flow:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2832,21 +2620,6 @@
"readOnlyHint": true
}
},
- "hogql-schema": {
- "description": "Return the HogQL catalog for the active project: every queryable table (PostHog, system, warehouse, view, materialized view, batch export, endpoint) keyed by name, with each table's fields, plus the join graph between data-warehouse tables. Call this once up front when building a HogQL query from scratch so you pick real table and column names on the first attempt instead of guessing. Cheap — no ClickHouse cost. Pass 'connectionId' to introspect a Postgres or DuckDB direct-query data warehouse source instead of the ClickHouse catalog (use external-data-sources-list to find ids).",
- "category": "Insights & analytics",
- "summary": "List tables and columns available to HogQL queries.",
- "feature": "insights",
- "title": "HogQL schema",
- "required_scopes": ["query:read"],
- "new_mcp": false,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": false,
- "readOnlyHint": true
- }
- },
"inbox-reports-list": {
"description": "List signal reports for the current project. A signal report is a cluster of related observations (signals) that PostHog has aggregated into a single issue or trend. Reports surface in the Inbox. Supports filtering by status (potential, candidate, in_progress, pending_input, ready, failed, suppressed), free-text search across title and summary, source_product (e.g. error_tracking, session_replay), and suggested_reviewers (PostHog user UUIDs). Results are paginated and ordered by '-is_suggested_reviewer,status,-updated_at' by default.",
"category": "Signals",
@@ -2854,7 +2627,6 @@
"summary": "List signal reports",
"title": "List signal reports",
"required_scopes": ["task:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2869,7 +2641,6 @@
"summary": "Get signal report",
"title": "Get signal report",
"required_scopes": ["task:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2884,7 +2655,6 @@
"summary": "List signal source configs",
"title": "List signal source configs",
"required_scopes": ["task:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2899,7 +2669,6 @@
"summary": "Get signal source config",
"title": "Get signal source config",
"required_scopes": ["task:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2914,7 +2683,6 @@
"summary": "Create insight",
"title": "Create insight",
"required_scopes": ["insight:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -2929,7 +2697,6 @@
"summary": "Delete insight",
"title": "Delete insight",
"required_scopes": ["insight:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -2944,7 +2711,6 @@
"summary": "Get insight",
"title": "Get insight",
"required_scopes": ["insight:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2959,7 +2725,6 @@
"summary": "Run a saved insight's query and return results.",
"title": "Query insight",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2974,7 +2739,6 @@
"summary": "Update insight",
"title": "Update insight",
"required_scopes": ["insight:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -2989,7 +2753,6 @@
"summary": "Get insight activity log",
"title": "Get insight activity log",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3004,7 +2767,6 @@
"summary": "Get recent insight activity across the project",
"title": "Get recent insight activity across the project",
"required_scopes": ["activity_log:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3019,7 +2781,6 @@
"summary": "Get all insights",
"title": "Get all insights",
"required_scopes": ["insight:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3034,7 +2795,6 @@
"summary": "Get most-viewed insights",
"title": "Get most-viewed insights",
"required_scopes": ["insight:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3049,7 +2809,6 @@
"summary": "Delete integration",
"title": "Delete integration",
"required_scopes": ["integration:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3064,7 +2823,6 @@
"summary": "Get integration",
"title": "Get integration",
"required_scopes": ["integration:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3079,7 +2837,6 @@
"summary": "List integration channels",
"title": "List integration channels",
"required_scopes": ["integration:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3094,7 +2851,6 @@
"summary": "List integrations",
"title": "List integrations",
"required_scopes": ["integration:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3109,7 +2865,6 @@
"summary": "Get clustering job",
"title": "Get clustering job",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3124,7 +2879,6 @@
"summary": "List clustering jobs",
"title": "List clustering jobs",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3139,7 +2893,6 @@
"summary": "Get evaluation config",
"title": "Get evaluation config",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3154,7 +2907,6 @@
"summary": "Set active evaluation provider key",
"title": "Set active evaluation provider key",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3169,7 +2921,6 @@
"summary": "Create evaluation",
"title": "Create evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3184,7 +2935,6 @@
"summary": "Delete evaluation",
"title": "Delete evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3199,7 +2949,6 @@
"summary": "Get evaluation",
"title": "Get evaluation",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3214,7 +2963,6 @@
"summary": "List supported llm_judge models",
"title": "List supported llm_judge models",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3229,7 +2977,6 @@
"summary": "List evaluations",
"title": "List evaluations",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3244,7 +2991,6 @@
"summary": "Create evaluation report config",
"title": "Create evaluation report config",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3259,7 +3005,6 @@
"summary": "Delete evaluation report config",
"title": "Delete evaluation report config",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3274,7 +3019,6 @@
"summary": "Trigger evaluation report generation",
"title": "Trigger evaluation report generation",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3289,7 +3033,6 @@
"summary": "Get evaluation report config",
"title": "Get evaluation report config",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3304,7 +3047,6 @@
"summary": "List evaluation report configs",
"title": "List evaluation report configs",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3319,7 +3061,6 @@
"summary": "List evaluation report runs",
"title": "List evaluation report runs",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3334,7 +3075,6 @@
"summary": "Update evaluation report config",
"title": "Update evaluation report config",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3349,7 +3089,6 @@
"summary": "Run evaluation",
"title": "Run evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3364,7 +3103,6 @@
"summary": "Summarize evaluation results",
"title": "Summarize evaluation results",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3380,7 +3118,6 @@
"summary": "Test Hog evaluation code",
"title": "Test Hog evaluation code",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3395,7 +3132,6 @@
"summary": "Update evaluation",
"title": "Update evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3410,7 +3146,6 @@
"summary": "Get my LLM spend analysis",
"title": "Get my LLM spend analysis",
"required_scopes": ["user:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3425,7 +3160,6 @@
"summary": "Create prompt",
"title": "Create prompt",
"required_scopes": ["llm_prompt:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3440,7 +3174,6 @@
"summary": "Duplicate prompt",
"title": "Duplicate prompt",
"required_scopes": ["llm_prompt:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3455,7 +3188,6 @@
"summary": "Get prompt",
"title": "Get prompt",
"required_scopes": ["llm_prompt:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3470,7 +3202,6 @@
"summary": "List prompts",
"title": "List prompts",
"required_scopes": ["llm_prompt:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3485,7 +3216,6 @@
"summary": "Update prompt",
"title": "Update prompt",
"required_scopes": ["llm_prompt:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3500,7 +3230,6 @@
"summary": "Create review queue",
"title": "Create review queue",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3515,7 +3244,6 @@
"summary": "Delete review queue",
"title": "Delete review queue",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3530,7 +3258,6 @@
"summary": "Get review queue",
"title": "Get review queue",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3545,7 +3272,6 @@
"summary": "Create review queue item",
"title": "Create review queue item",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3560,7 +3286,6 @@
"summary": "Delete review queue item",
"title": "Delete review queue item",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3575,7 +3300,6 @@
"summary": "Get review queue item",
"title": "Get review queue item",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3590,7 +3314,6 @@
"summary": "List review queue items",
"title": "List review queue items",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3605,7 +3328,6 @@
"summary": "Update review queue item",
"title": "Update review queue item",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3620,7 +3342,6 @@
"summary": "List review queues",
"title": "List review queues",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3635,7 +3356,6 @@
"summary": "Update review queue",
"title": "Update review queue",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3650,7 +3370,6 @@
"summary": "Create scorer",
"title": "Create scorer",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3665,7 +3384,6 @@
"summary": "Get scorer",
"title": "Get scorer",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3680,7 +3398,6 @@
"summary": "List scorers",
"title": "List scorers",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3695,7 +3412,6 @@
"summary": "Bump scorer to a new version",
"title": "Bump scorer to a new version",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3710,7 +3426,6 @@
"summary": "Update scorer metadata",
"title": "Update scorer metadata",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3725,7 +3440,6 @@
"summary": "Analyze sentiment",
"title": "Analyze sentiment",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3740,7 +3454,6 @@
"summary": "Archive skill",
"title": "Archive skill",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -3755,7 +3468,6 @@
"summary": "Create skill",
"title": "Create skill",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3770,7 +3482,6 @@
"summary": "Duplicate skill",
"title": "Duplicate skill",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3785,7 +3496,6 @@
"summary": "Create skill file",
"title": "Create skill file",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3800,7 +3510,6 @@
"summary": "Delete skill file",
"title": "Delete skill file",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -3815,7 +3524,6 @@
"summary": "Get skill file",
"title": "Get skill file",
"required_scopes": ["llm_skill:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3830,7 +3538,6 @@
"summary": "Rename skill file",
"title": "Rename skill file",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3845,7 +3552,6 @@
"summary": "Get skill",
"title": "Get skill",
"required_scopes": ["llm_skill:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3860,7 +3566,6 @@
"summary": "List skills",
"title": "List skills",
"required_scopes": ["llm_skill:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3875,7 +3580,6 @@
"summary": "Update skill",
"title": "Update skill",
"required_scopes": ["llm_skill:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3890,7 +3594,6 @@
"summary": "Summarize trace or generation",
"title": "Summarize trace or generation",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3906,7 +3609,6 @@
"summary": "Create tagger",
"title": "Create tagger",
"required_scopes": ["tagger:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3921,7 +3623,6 @@
"summary": "List taggers",
"title": "List taggers",
"required_scopes": ["tagger:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3936,7 +3637,6 @@
"summary": "Test Hog tagger code",
"title": "Test Hog tagger code",
"required_scopes": ["tagger:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3951,7 +3651,6 @@
"summary": "Create trace review",
"title": "Create trace review",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -3966,7 +3665,6 @@
"summary": "Delete trace review",
"title": "Delete trace review",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -3981,7 +3679,6 @@
"summary": "Get trace review",
"title": "Get trace review",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -3996,7 +3693,6 @@
"summary": "List trace reviews",
"title": "List trace reviews",
"required_scopes": ["llm_analytics:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4011,7 +3707,6 @@
"summary": "Update trace review",
"title": "Update trace review",
"required_scopes": ["llm_analytics:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4026,7 +3721,6 @@
"summary": "Create log alert",
"title": "Create log alert",
"required_scopes": ["logs:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4042,7 +3736,6 @@
"summary": "Attach alert destination",
"title": "Attach alert destination",
"required_scopes": ["logs:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4058,7 +3751,6 @@
"summary": "Detach alert destination",
"title": "Detach alert destination",
"required_scopes": ["logs:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -4074,7 +3766,6 @@
"summary": "Delete log alert",
"title": "Delete log alert",
"required_scopes": ["logs:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -4090,7 +3781,6 @@
"summary": "List alert events",
"title": "List alert events",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4106,7 +3796,6 @@
"summary": "List log alerts",
"title": "List log alerts",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4122,7 +3811,6 @@
"summary": "Update log alert",
"title": "Update log alert",
"required_scopes": ["logs:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4138,7 +3826,6 @@
"summary": "Get log alert",
"title": "Get log alert",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4154,7 +3841,6 @@
"summary": "Simulate log alert",
"title": "Simulate log alert",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4170,7 +3856,6 @@
"summary": "List log attribute values",
"title": "List log attribute values",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4185,7 +3870,6 @@
"summary": "List log attributes",
"title": "List log attributes",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4200,7 +3884,6 @@
"summary": "Count logs",
"title": "Count logs",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4215,7 +3898,6 @@
"summary": "Count logs by time bucket",
"title": "Count logs by time bucket",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4230,7 +3912,6 @@
"summary": "List services with stats",
"title": "List services with stats",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4245,7 +3926,6 @@
"summary": "Query logs sparkline",
"title": "Query logs sparkline",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4260,7 +3940,6 @@
"summary": "Edit part of a notebook's content.",
"title": "Edit notebook",
"required_scopes": ["notebook:write"],
- "new_mcp": true,
"feature_flag": "notebooks-collaboration",
"annotations": {
"destructiveHint": false,
@@ -4276,7 +3955,6 @@
"summary": "Create notebook",
"title": "Create notebook",
"required_scopes": ["notebook:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4291,7 +3969,6 @@
"summary": "Delete notebook",
"title": "Delete notebook",
"required_scopes": ["notebook:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -4306,7 +3983,6 @@
"summary": "List notebooks",
"title": "List notebooks",
"required_scopes": ["notebook:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4321,7 +3997,6 @@
"summary": "Update notebook",
"title": "Update notebook",
"required_scopes": ["notebook:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4338,7 +4013,6 @@
"summary": "Get notebook",
"title": "Get notebook",
"required_scopes": ["notebook:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4353,7 +4027,6 @@
"summary": "List organization members.",
"title": "List organization members.",
"required_scopes": ["organization_member:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4368,7 +4041,6 @@
"summary": "Get organization details.",
"title": "Get organization details.",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4383,7 +4055,6 @@
"summary": "List organizations.",
"title": "List organizations.",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4398,7 +4069,6 @@
"summary": "Bulk delete persons",
"title": "Bulk delete persons",
"required_scopes": ["person:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -4413,7 +4083,6 @@
"summary": "Get person cohorts",
"title": "Get person cohorts",
"required_scopes": ["person:read", "cohort:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4428,7 +4097,6 @@
"summary": "List persons",
"title": "List persons",
"required_scopes": ["person:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4443,7 +4111,6 @@
"summary": "Delete person property",
"title": "Delete person property",
"required_scopes": ["person:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4458,7 +4125,6 @@
"summary": "Set person property",
"title": "Set person property",
"required_scopes": ["person:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4473,7 +4139,6 @@
"summary": "Get person",
"title": "Get person",
"required_scopes": ["person:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4488,7 +4153,6 @@
"summary": "Get person property values",
"title": "Get person property values",
"required_scopes": ["person:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4503,7 +4167,6 @@
"summary": "Get project",
"title": "Get project",
"required_scopes": ["project:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4518,7 +4181,6 @@
"summary": "Update project settings",
"title": "Update project settings",
"required_scopes": ["project:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -4533,37 +4195,6 @@
"summary": "Fetches projects that the user has access to in the current organization.",
"title": "Get projects",
"required_scopes": ["organization:read"],
- "new_mcp": true,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
- "properties-list": {
- "description": "List properties for events or persons. If fetching event properties, you must provide an event name.",
- "category": "Events & properties",
- "feature": "events",
- "summary": "Get properties for events or persons.",
- "title": "Get properties",
- "required_scopes": ["property_definition:read"],
- "new_mcp": false,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
- "property-definitions": {
- "description": "Get event and property definitions for the project.",
- "category": "Organization & project management",
- "feature": "workspace",
- "summary": "Get event and property definitions for the project.",
- "title": "Get property definitions",
- "required_scopes": ["property_definition:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4578,7 +4209,6 @@
"summary": "Create reverse proxy",
"title": "Create reverse proxy",
"required_scopes": ["organization:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4593,7 +4223,6 @@
"summary": "Delete reverse proxy",
"title": "Delete reverse proxy",
"required_scopes": ["organization:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -4608,7 +4237,6 @@
"summary": "Diagnose reverse proxy",
"title": "Diagnose reverse proxy",
"required_scopes": ["organization:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4623,7 +4251,6 @@
"summary": "Get reverse proxy details",
"title": "Get reverse proxy details",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4638,7 +4265,6 @@
"summary": "List reverse proxies",
"title": "List reverse proxies",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4653,7 +4279,6 @@
"summary": "Retry reverse proxy provisioning",
"title": "Retry reverse proxy provisioning",
"required_scopes": ["organization:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -4668,7 +4293,6 @@
"summary": "Query tracing spans",
"title": "Query tracing spans",
"required_scopes": ["tracing:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4684,7 +4308,6 @@
"summary": "Query error tracking issue",
"title": "Query error tracking issue",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4700,7 +4323,6 @@
"summary": "Query error tracking issue events",
"title": "Query error tracking issue events",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4716,7 +4338,6 @@
"summary": "Query error tracking issues list",
"title": "Query error tracking issues list",
"required_scopes": ["error_tracking:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4732,7 +4353,6 @@
"summary": "Run a funnel query",
"title": "Run a funnel query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4741,22 +4361,6 @@
},
"system_prompt_hint": "Conversion rates, drop-off analysis, time to convert"
},
- "query-generate-hogql-from-question": {
- "description": "This is a slow tool, and you should only use it once you have tried to create a query using the 'query-run' tool, or the query is too complicated to create a trend / funnel. Queries project's PostHog data based on a provided natural language question - don't provide SQL query as input but describe the output you want. When giving the results back to the user, first show the SQL query that was used, then provide results in easily readable format. You should also offer to save the query as an insight if the user wants to.",
- "category": "Insights & analytics",
- "summary": "Queries project's PostHog data based on a provided natural language question.",
- "feature": "insights",
- "title": "Generate SQL",
- "required_scopes": ["query:read"],
- "new_mcp": false,
- "requires_ai_consent": true,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": false,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
"query-lifecycle": {
"description": "Run a lifecycle query to categorize users into lifecycle stages based on their activity pattern relative to a single event or action. Lifecycle insights break users into four mutually exclusive groups for each time period: new, returning, resurrecting, and dormant. They're useful for understanding the composition of your active users and diagnosing growth or churn patterns.\n\nUse 'read-data-schema' to discover available events, actions, and properties for filters.\n\nExamples of use cases include:\n\n- What is the composition of my active users over time?\n- Are we gaining new users faster than we're losing dormant ones?\n- How many users resurrected (came back after being inactive) last week?\n- Is the returning user base growing or shrinking?\n- How does user engagement change after a product launch?\n\nCRITICAL: Be minimalist. Only include filters and settings that are essential to answer the user's specific question. Default settings are usually sufficient unless the user explicitly requests customization.\n\n# Data narrowing\n\n## Property filters\n\nUse property filters to narrow results. Only include property filters when they are essential to directly answer the user's question. Avoid adding them if the question can be addressed without additional segmentation and always use the minimum set of property filters needed.\n\nIMPORTANT: Do not check if a property is set unless the user explicitly asks for it.\n\nWhen using a property filter, you should:\n\n- **Prioritize properties directly related to the context or objective of the user's query.** Avoid using properties for identification like IDs. Instead, prioritize filtering based on general properties like `paidCustomer` or `icp_score`.\n- **Ensure that you find both the property group and name.** Property groups should be one of the following: event, person, session, group.\n- After selecting a property, **validate that the property value accurately reflects the intended criteria**.\n- **Find the suitable operator for type** (e.g., `contains`, `is set`).\n- If the operator requires a value, use the `read-data-schema` tool to find the property values.\n- You set logical operators to combine multiple properties of a single series: AND or OR.\n\nInfer the property groups from the user's request. If your first guess doesn't yield any results, try to adjust the property group.\n\nSupported operators for the String type are:\n\n- equals (exact)\n- doesn't equal (is_not)\n- contains (icontains)\n- doesn't contain (not_icontains)\n- matches regex (regex)\n- doesn't match regex (not_regex)\n- is set\n- is not set\n\nSupported operators for the Numeric type are:\n\n- equals (exact)\n- doesn't equal (is_not)\n- greater than (gt)\n- less than (lt)\n- is set\n- is not set\n\nSupported operators for the DateTime type are:\n\n- equals (is_date_exact)\n- doesn't equal (is_not for existence check)\n- before (is_date_before)\n- after (is_date_after)\n- is set\n- is not set\n\nSupported operators for the Boolean type are:\n\n- equals\n- doesn't equal\n- is set\n- is not set\n\nAll operators take a single value except for `equals` and `doesn't equal` which can take one or more values (as an array).\n\n## Time period\n\nYou should not filter events by time using property filters. Instead, use the `dateRange` field. If the question doesn't mention time, use last 30 days as a default time period.\n\n# Lifecycle guidelines\n\nLifecycle insights analyze a **single event or action** over time. The `series` array must contain exactly one item. If the user mentions multiple events, pick the most relevant one or clarify.\n\n## Lifecycle statuses\n\nEach user is categorized into one of four statuses for each time period:\n\n- **New** – the user performed the event for the first time ever during this period.\n- **Returning** – the user was active in the previous period and is active again in the current period.\n- **Resurrecting** – the user was inactive for one or more periods and became active again.\n- **Dormant** – the user was active in the previous period but did not perform the event in the current period. Dormant counts are shown as negative values.\n\n## Time interval\n\nSpecify the time interval using the `interval` field. Available intervals are: `hour`, `day`, `week`, `month`. The default is `day`.\n\nUnless the user has specified otherwise, use the following default interval:\n\n- If the time period is less than two days, use the `hour` interval.\n- If the time period is less than a month, use the `day` interval.\n- If the time period is less than three months, use the `week` interval.\n- Otherwise, use the `month` interval.\n\n## Toggled lifecycles\n\nUse `toggledLifecycles` in `lifecycleFilter` to control which lifecycle statuses are displayed. By default, all four statuses are shown. Only set this when the user wants to focus on specific statuses (e.g., only new and dormant users).\n\n## Math aggregation\n\nLifecycle insights do **not** support math aggregation types. Do not set `math` on the series node.\n\n# Examples\n\n## Daily lifecycle of pageviews over the last 30 days\n\n```json\n{\n \"kind\": \"LifecycleQuery\",\n \"series\": [{ \"kind\": \"EventsNode\", \"event\": \"$pageview\" }],\n \"dateRange\": { \"date_from\": \"-30d\" },\n \"interval\": \"day\"\n}\n```\n\n## Weekly lifecycle of sign ups, excluding test accounts\n\n```json\n{\n \"kind\": \"LifecycleQuery\",\n \"series\": [{ \"kind\": \"EventsNode\", \"event\": \"user signed up\" }],\n \"dateRange\": { \"date_from\": \"-90d\" },\n \"interval\": \"week\",\n \"filterTestAccounts\": true\n}\n```\n\n## Monthly lifecycle of \"insight created\" showing only new and dormant users\n\n```json\n{\n \"kind\": \"LifecycleQuery\",\n \"series\": [{ \"kind\": \"EventsNode\", \"event\": \"insight created\" }],\n \"dateRange\": { \"date_from\": \"-12m\" },\n \"interval\": \"month\",\n \"lifecycleFilter\": {\n \"toggledLifecycles\": [\"new\", \"dormant\"]\n },\n \"filterTestAccounts\": true\n}\n```\n\n## Lifecycle of purchases by mobile users\n\n```json\n{\n \"kind\": \"LifecycleQuery\",\n \"series\": [{ \"kind\": \"EventsNode\", \"event\": \"purchase completed\" }],\n \"dateRange\": { \"date_from\": \"-30d\" },\n \"interval\": \"day\",\n \"properties\": [{ \"key\": \"$os\", \"operator\": \"exact\", \"type\": \"event\", \"value\": [\"iOS\", \"Android\"] }]\n}\n```\n\n# Reminders\n\n- Lifecycle insights support only **one** series — do not add multiple events or actions.\n- Do not set `math` on the series node — lifecycle does not support math aggregation.\n- Ensure that any properties included are directly relevant to the context and objectives of the user's question. Avoid unnecessary or unrelated details.\n- Avoid overcomplicating the response with excessive property filters. Focus on the simplest solution.",
"category": "Query wrappers",
@@ -4764,7 +4368,6 @@
"summary": "Run a lifecycle query",
"title": "Run a lifecycle query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4780,7 +4383,6 @@
"summary": "List persons in a lifecycle bucket",
"title": "List persons in a lifecycle bucket",
"required_scopes": ["query:read", "person:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4796,7 +4398,6 @@
"summary": "Get LLM trace",
"title": "Get LLM trace",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4812,7 +4413,6 @@
"summary": "List LLM traces",
"title": "List LLM traces",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4828,7 +4428,6 @@
"summary": "Query logs",
"title": "Query logs",
"required_scopes": ["logs:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4844,7 +4443,6 @@
"summary": "Run a paths query",
"title": "Run a paths query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4860,7 +4458,6 @@
"summary": "Run a retention query",
"title": "Run a retention query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4869,21 +4466,6 @@
},
"system_prompt_hint": "User return patterns over time"
},
- "query-run": {
- "description": "You should use this to answer questions that a user has about their data and for when you want to create a new insight. You can use 'event-definitions-list' to get events to use in the query, and 'event-properties-list' to get properties for those events. It can run a trend, funnel, paths or HogQL query. For existing PostHog-created data, use system tables with the system. prefix; for example, count SQL insight variables with SELECT count() AS total FROM system.insight_variables. Where possible, use a trend, funnel or paths query rather than a HogQL query, unless you know the HogQL is correct (e.g. it came from a previous insight.). Use PathsQuery to visualize user flows and navigation patterns — set includeEventTypes to ['hogql'] with a pathsHogQLExpression for custom path steps. To target a Postgres or DuckDB direct-query data warehouse source instead of ClickHouse, set 'connectionId' on a HogQLQuery (call external-data-sources-list to discover ids).",
- "category": "Insights & analytics",
- "summary": "Run a trend, funnel, paths or HogQL query.",
- "feature": "insights",
- "title": "Run query",
- "required_scopes": ["query:read"],
- "new_mcp": false,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
"query-session-recordings-list": {
"description": "List session recordings in the project. Returns recording metadata including duration, activity counts, console errors, start URL, and interaction metrics. Use this tool to find, filter, and explore session recordings.\n\nUse 'read-data-schema' to discover available person, session, and event properties for filtering.\n\nExamples of use cases include:\n\n- Find recordings with console errors in the last week\n- Show me recordings from users in a specific country\n- List the longest recordings from today\n- Find recordings where users visited a specific page\n- Show recordings with high activity scores\n- Find recordings for a specific person\n\nCRITICAL: Be minimalist. Only include filters and settings essential to answer the user's question. Default settings are usually sufficient.\n\n# Property filters\n\nUse property filters to narrow results. Only include filters directly relevant to the user's question.\n\nWhen using a property filter, you should:\n\n- **Prioritize properties directly related to the user's query.**\n- **Ensure the correct filter type.** Types: `person`, `session`, `event`, `recording`, `cohort`.\n- **Use `read-data-schema` to discover property names and values** before creating filters.\n\n## Common properties\n\n**Recording** (type: `recording`): `console_error_count`, `click_count`, `keypress_count`, `mouse_activity_count`, `activity_score`. These are built-in metrics, not events.\n\n**Session** (type: `session`): `$session_duration`, `$channel_type`, `$entry_current_url`, `$entry_pathname`, `$is_bounce`, `$pageview_count`.\n\n**Person** (type: `person`): `$geoip_country_code`, `$geoip_city_name`, `email`, and custom person properties.\n\n**Event** (type: `event`): `$current_url`, `$pathname`, `$browser`, `$os`, `$device_type`, `$screen_width`.\n\n**Cohort** (type: `cohort`): scope recordings to persons belonging to a cohort. `key` is always `\"id\"`, `value` is the cohort ID, operator is `in` (or `not_in` to exclude). Example: `{ \"type\": \"cohort\", \"key\": \"id\", \"value\": 42, \"operator\": \"in\" }`. Use `cohorts-list` to find cohort IDs.\n\n## Operators\n\n**String**: `exact`, `is_not`, `icontains`, `not_icontains`, `regex`, `not_regex`, `is_set`, `is_not_set`\n**Numeric**: `exact`, `is_not`, `gt`, `gte`, `lt`, `lte`, `is_set`, `is_not_set`\n**DateTime**: `is_date_exact`, `is_date_before`, `is_date_after`, `is_set`, `is_not_set`\n**Boolean**: `exact`, `is_not`, `is_set`, `is_not_set`\n\n`exact` and `is_not` accept arrays of values. Use `icontains` for URLs, `exact` for enumerated values, `gt`/`lt` for counts.\n\n# Ordering\n\nSort recordings by: `start_time` (default), `duration`, `activity_score`, `console_error_count`, `click_count`, `keypress_count`, `mouse_activity_count`, `active_seconds`, `inactive_seconds`.\n\nDefault direction is `DESC` (newest/highest first).\n\n# Date range\n\n- `date_from`: Relative (`-7d`, `-24h`) or absolute (`2025-01-15`). Default: `-3d`.\n- `date_to`: Relative or absolute. Default: now.\n\nDo not use property filters for time-based filtering. Use the `date_from`/`date_to` fields instead.\n\n# Pagination\n\nUse `limit` to control page size and `after` (from the previous response's `next_cursor`) for cursor-based pagination.\n\n# Response shape\n\nEach recording in results contains:\n\n- `id` — session recording ID\n- `distinct_id` — the person's distinct ID\n- `start_time` / `end_time` — recording time range (ISO 8601)\n- `recording_duration` — length in seconds\n- `active_seconds` / `inactive_seconds` — activity breakdown\n- `click_count`, `keypress_count`, `mouse_activity_count` — interaction counts\n- `console_log_count`, `console_warn_count`, `console_error_count` — console output counts\n- `start_url` — first page URL visited\n- `activity_score` — engagement score (higher = more active)\n- `ongoing` — whether the session is still active\n\n# Deep links to specific recordings\n\nTo link a user to a specific recording, build the URL as `{posthog_base_url}/replay/{id}` using the `id` returned in each result row.\n\nDo not use `/replay/home?sessionRecordingId={id}` — that path takes the user to the replay list with the default filter applied and does not open the recording.\n\n# Examples\n\n## Recent recordings with console errors\n\n```json\n{\n \"date_from\": \"-7d\",\n \"filter_test_accounts\": true,\n \"properties\": [{ \"key\": \"console_error_count\", \"operator\": \"gt\", \"type\": \"recording\", \"value\": 0 }],\n \"order\": \"console_error_count\"\n}\n```\n\n## Longest recordings today\n\n```json\n{\n \"date_from\": \"-1d\",\n \"filter_test_accounts\": true,\n \"order\": \"duration\",\n \"limit\": 10\n}\n```\n\n## Recordings for a specific person\n\n```json\n{\n \"date_from\": \"-30d\",\n \"person_uuid\": \"01234567-89ab-cdef-0123-456789abcdef\",\n \"filter_test_accounts\": true\n}\n```\n\n## Recordings from mobile users\n\n```json\n{\n \"date_from\": \"-7d\",\n \"filter_test_accounts\": true,\n \"properties\": [{ \"key\": \"$device_type\", \"operator\": \"exact\", \"type\": \"event\", \"value\": [\"Mobile\"] }]\n}\n```\n\n## Recordings from a cohort of users\n\n```json\n{\n \"date_from\": \"-7d\",\n \"filter_test_accounts\": true,\n \"properties\": [{ \"key\": \"id\", \"operator\": \"in\", \"type\": \"cohort\", \"value\": 42 }]\n}\n```\n\n## Fetch specific recordings by session ID\n\nWhen you have known `$session_id` values (e.g., from `$exception` events or other event data), use the `session_ids` parameter to fetch those recordings directly:\n\n```json\n{\n \"session_ids\": [\"session-id-1\", \"session-id-2\", \"session-id-3\"]\n}\n```\n\n# Reminders\n\n- Use `filter_test_accounts: true` by default to exclude internal users.\n- Only include property filters directly relevant to the user's question.\n- Default time range is last 3 days. Adjust based on the user's needs.\n- Deep-link to a specific recording as `{posthog_base_url}/replay/{id}`, never `/replay/home?sessionRecordingId={id}`.\n- For detailed analysis of a single recording, use `session-recording-get` with the recording's `id`.\n- **If no recordings are found** or the user asks why recordings aren't being captured, diagnose with `execute-sql`: query `$recording_status`, `$session_recording_start_reason`, `$replay_sample_rate`, and `$sdk_debug_recording_script_not_loaded` from recent events (no `$session_id` filter needed for project-wide issues). Common causes: sampling excluded sessions, recording disabled in project settings, ad blocker blocked the recorder script, or SDK misconfigured.",
"category": "Session replays",
@@ -4891,7 +4473,6 @@
"summary": "List session recordings",
"title": "List session recordings",
"required_scopes": ["session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4907,7 +4488,6 @@
"summary": "Run a stickiness query",
"title": "Run a stickiness query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4923,7 +4503,6 @@
"summary": "Run a trends query",
"title": "Run a trends query",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4939,7 +4518,6 @@
"summary": "List persons behind a trends data point",
"title": "List persons behind a trends data point",
"required_scopes": ["query:read", "person:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4948,21 +4526,6 @@
},
"system_prompt_hint": "List persons behind a trends data point"
},
- "query-validate": {
- "description": "Dry-run a HogQL query: parse and type-check it without executing, so there is no ClickHouse cost and no 202 polling. Returns structured errors (with character positions), warnings, notices, and the list of tables the query references. Use this before 'query-run' on any non-trivial HogQL to catch column typos, missing tables, and syntax issues up front instead of iterating on opaque execution errors. Accepts the same language values as the HogQL editor: 'hogQL' (default, full SELECT), 'hogQLExpr' (bare expression), 'hog', or 'hogTemplate'. Pass 'connectionId' to validate against a Postgres or DuckDB direct-query data warehouse source instead of the ClickHouse catalog (use external-data-sources-list to find ids).",
- "category": "Insights & analytics",
- "summary": "Validate a HogQL query without executing it.",
- "feature": "insights",
- "title": "Validate query",
- "required_scopes": ["query:read"],
- "new_mcp": false,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": false,
- "readOnlyHint": true
- }
- },
"read-data-schema": {
"description": "Use this tool to explore the user's data schema. The user implements PostHog SDKs to collect events, properties, and property values. They are used by users to create insights with visualizations, SQL queries, watch session recordings, filter data, target particular users or groups by traits or behavior, etc. Each event, action, and entity has its own data schema. You must verify that specific combinations exist before using it anywhere else. Events or properties starting from \"$\" are system properties automatically captured by SDKs. Do not rely on your training data or PostHog defaults for events or properties. Always use this tool to confirm what actually exists in the user's project before referencing any event, property, or property value.",
"category": "Data schema",
@@ -4970,7 +4533,6 @@
"summary": "Explore the user's events, actions, properties, and property values.",
"title": "Read data schema",
"required_scopes": ["event_definition:read", "property_definition:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -4985,7 +4547,6 @@
"summary": "Read core data warehouse schemas and table lists.",
"title": "Read data warehouse schema",
"required_scopes": ["warehouse_table:read", "warehouse_view:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5000,7 +4561,6 @@
"summary": "Get a specific role.",
"title": "Get a specific role.",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5015,7 +4575,6 @@
"summary": "List members of a role.",
"title": "List members of a role.",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5030,7 +4589,6 @@
"summary": "List organization roles.",
"title": "List organization roles.",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5045,7 +4603,6 @@
"summary": "Create a scheduled change",
"title": "Create a scheduled change",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5060,7 +4617,6 @@
"summary": "Delete a scheduled change",
"title": "Delete a scheduled change",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5075,7 +4631,6 @@
"summary": "Get a scheduled change",
"title": "Get a scheduled change",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5090,7 +4645,6 @@
"summary": "List scheduled changes for feature flags",
"title": "List scheduled changes for feature flags",
"required_scopes": ["feature_flag:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5105,7 +4659,6 @@
"summary": "Update a scheduled change",
"title": "Update a scheduled change",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5120,7 +4673,6 @@
"summary": "Get SDK health report",
"title": "Get SDK health report",
"required_scopes": ["project:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5135,7 +4687,6 @@
"summary": "Delete session recording",
"title": "Delete session recording",
"required_scopes": ["session_recording:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5150,7 +4701,6 @@
"summary": "Get session recording",
"title": "Get session recording",
"required_scopes": ["session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5165,7 +4715,6 @@
"summary": "Create session recording playlist",
"title": "Create session recording playlist",
"required_scopes": ["session_recording_playlist:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5180,7 +4729,6 @@
"summary": "Get session recording playlist",
"title": "Get session recording playlist",
"required_scopes": ["session_recording_playlist:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5195,7 +4743,6 @@
"summary": "Update session recording playlist",
"title": "Update session recording playlist",
"required_scopes": ["session_recording_playlist:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5210,7 +4757,6 @@
"summary": "List session recording playlists",
"title": "List session recording playlists",
"required_scopes": ["session_recording_playlist:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5225,7 +4771,6 @@
"summary": "Generate AI-powered summaries of session recordings via streaming.",
"title": "Summarize session recording",
"required_scopes": ["session_recording:read"],
- "new_mcp": true,
"requires_ai_consent": true,
"feature_flag": "replay-video-based-summarization",
"annotations": {
@@ -5242,7 +4787,6 @@
"summary": "Emit a finding for a run",
"title": "Emit a finding for a run",
"required_scopes": ["signal_scout_internal:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5257,7 +4801,6 @@
"summary": "Get the project profile",
"title": "Get the project profile",
"required_scopes": ["signal_scout:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5272,7 +4815,6 @@
"summary": "List recent scout runs",
"title": "List recent scout runs",
"required_scopes": ["signal_scout:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5287,7 +4829,6 @@
"summary": "Get a scout run by ID",
"title": "Get a scout run by ID",
"required_scopes": ["signal_scout:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5302,7 +4843,6 @@
"summary": "Forget a scratchpad entry by key",
"title": "Forget a scratchpad entry by key",
"required_scopes": ["signal_scout_internal:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5317,7 +4857,6 @@
"summary": "Remember a scratchpad entry",
"title": "Remember a scratchpad entry",
"required_scopes": ["signal_scout_internal:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5332,7 +4871,6 @@
"summary": "Search the scout scratchpad",
"title": "Search the scout scratchpad",
"required_scopes": ["signal_scout:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5347,7 +4885,6 @@
"summary": "Create SQL variable",
"title": "Create SQL variable",
"required_scopes": ["insight_variable:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5362,7 +4899,6 @@
"summary": "Delete SQL variable",
"title": "Delete SQL variable",
"required_scopes": ["insight_variable:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5377,7 +4913,6 @@
"summary": "Update SQL variable",
"title": "Update SQL variable",
"required_scopes": ["insight_variable:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5392,7 +4927,6 @@
"summary": "Create subscription",
"title": "Create subscription",
"required_scopes": ["subscription:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5407,7 +4941,6 @@
"summary": "List subscription deliveries",
"title": "List subscription deliveries",
"required_scopes": ["subscription:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5422,7 +4955,6 @@
"summary": "Get subscription delivery",
"title": "Get subscription delivery",
"required_scopes": ["subscription:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5437,7 +4969,6 @@
"summary": "List subscriptions",
"title": "List subscriptions",
"required_scopes": ["subscription:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5452,7 +4983,6 @@
"summary": "Update subscription",
"title": "Update subscription",
"required_scopes": ["subscription:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5467,7 +4997,6 @@
"summary": "Get subscription",
"title": "Get subscription",
"required_scopes": ["subscription:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5482,7 +5011,6 @@
"summary": "Send test delivery",
"title": "Send test delivery",
"required_scopes": ["subscription:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -5497,7 +5025,6 @@
"summary": "Creates a new survey in the project.",
"title": "Creates a new survey in the project.",
"required_scopes": ["survey:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5512,7 +5039,6 @@
"summary": "Delete a survey by ID.",
"title": "Delete a survey by ID.",
"required_scopes": ["survey:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5527,7 +5053,6 @@
"summary": "Get a specific survey by ID.",
"title": "Get a specific survey by ID.",
"required_scopes": ["survey:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5542,7 +5067,6 @@
"summary": "Get response statistics for a specific survey.",
"title": "Get response statistics for a specific survey.",
"required_scopes": ["survey:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5557,7 +5081,6 @@
"summary": "Update an existing survey by ID.",
"title": "Update an existing survey by ID.",
"required_scopes": ["survey:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5572,7 +5095,6 @@
"summary": "Get all surveys in the project with optional filtering.",
"title": "Get all surveys in the project with optional filtering.",
"required_scopes": ["survey:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5587,7 +5109,6 @@
"summary": "Get aggregated response statistics across all surveys.",
"title": "Get aggregated response statistics across all surveys.",
"required_scopes": ["survey:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5602,7 +5123,6 @@
"summary": "Switch the active PostHog organization for subsequent tool calls.",
"title": "Switch active organization",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5617,7 +5137,6 @@
"summary": "Switch the active PostHog project for subsequent tool calls.",
"title": "Switch active project",
"required_scopes": ["project:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5632,7 +5151,6 @@
"summary": "Update feature flag",
"title": "Update feature flag",
"required_scopes": ["feature_flag:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5647,7 +5165,6 @@
"summary": "Create usage metric",
"title": "Create usage metric",
"required_scopes": ["usage_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5662,7 +5179,6 @@
"summary": "Delete usage metric",
"title": "Delete usage metric",
"required_scopes": ["usage_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5677,7 +5193,6 @@
"summary": "List usage metrics",
"title": "List usage metrics",
"required_scopes": ["usage_metric:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5692,7 +5207,6 @@
"summary": "Update usage metric",
"title": "Update usage metric",
"required_scopes": ["usage_metric:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5707,7 +5221,6 @@
"summary": "Get usage metric",
"title": "Get usage metric",
"required_scopes": ["usage_metric:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5722,7 +5235,6 @@
"summary": "Get user",
"title": "Get user",
"required_scopes": ["user:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5737,7 +5249,6 @@
"summary": "Get pinned tabs and homepage.",
"title": "Get pinned tabs and homepage.",
"required_scopes": ["user:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5752,7 +5263,6 @@
"summary": "Update pinned tabs and homepage.",
"title": "Update pinned tabs and homepage.",
"required_scopes": ["user:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5767,7 +5277,6 @@
"summary": "Add an interviewee to a topic",
"title": "Add an interviewee to a topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5783,7 +5292,6 @@
"summary": "Create user interview topic",
"title": "Create user interview topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5799,7 +5307,6 @@
"summary": "Generate public interview links for a topic",
"title": "Generate public interview links for a topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5815,7 +5322,6 @@
"summary": "Create many per-interviewee context rows at once",
"title": "Create many per-interviewee context rows at once",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5831,7 +5337,6 @@
"summary": "Add per-interviewee context to a topic",
"title": "Add per-interviewee context to a topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -5847,7 +5352,6 @@
"summary": "Delete a per-interviewee context row",
"title": "Delete a per-interviewee context row",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5863,7 +5367,6 @@
"summary": "List per-interviewee contexts for a topic",
"title": "List per-interviewee contexts for a topic",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5879,7 +5382,6 @@
"summary": "Update a per-interviewee context row",
"title": "Update a per-interviewee context row",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5895,7 +5397,6 @@
"summary": "Export interview links for a topic as CSV",
"title": "Export interview links for a topic as CSV",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5911,7 +5412,6 @@
"summary": "List user interview topics",
"title": "List user interview topics",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5927,7 +5427,6 @@
"summary": "Update a user interview topic",
"title": "Update a user interview topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5943,7 +5442,6 @@
"summary": "Remove an interviewee from a topic",
"title": "Remove an interviewee from a topic",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -5959,7 +5457,6 @@
"summary": "Get user interview topic",
"title": "Get user interview topic",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5975,7 +5472,6 @@
"summary": "Email interview invites to every targeted interviewee",
"title": "Email interview invites to every targeted interviewee",
"required_scopes": ["user_interview:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -5991,7 +5487,6 @@
"summary": "List user interview responses",
"title": "List user interview responses",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6007,7 +5502,6 @@
"summary": "Retrieve a user interview response",
"title": "Retrieve a user interview response",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6023,7 +5517,6 @@
"summary": "Semantic search across interview responses",
"title": "Semantic search across interview responses",
"required_scopes": ["user_interview:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6039,7 +5532,6 @@
"summary": "Update user settings",
"title": "Update user settings",
"required_scopes": ["user:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -6054,7 +5546,6 @@
"summary": "Create saved query",
"title": "Create saved query",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -6069,7 +5560,6 @@
"summary": "Delete saved query",
"title": "Delete saved query",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -6084,7 +5574,6 @@
"summary": "Get saved query",
"title": "Get saved query",
"required_scopes": ["warehouse_view:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6099,7 +5588,6 @@
"summary": "List saved queries",
"title": "List saved queries",
"required_scopes": ["warehouse_view:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6114,7 +5602,6 @@
"summary": "Materialize saved query",
"title": "Materialize saved query",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6129,7 +5616,6 @@
"summary": "Run saved query",
"title": "Run saved query",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6144,7 +5630,6 @@
"summary": "Get run history",
"title": "Get run history",
"required_scopes": ["warehouse_view:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6159,7 +5644,6 @@
"summary": "Revert materialization",
"title": "Revert materialization",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6174,7 +5658,6 @@
"summary": "Update saved query",
"title": "Update saved query",
"required_scopes": ["warehouse_view:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6189,7 +5672,6 @@
"summary": "Create replay vision scanner",
"title": "Create replay vision scanner",
"required_scopes": ["replay_scanner:write", "session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -6206,7 +5688,6 @@
"summary": "Delete replay vision scanner",
"title": "Delete replay vision scanner",
"required_scopes": ["replay_scanner:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -6222,7 +5703,6 @@
"summary": "Get replay vision scanner",
"title": "Get replay vision scanner",
"required_scopes": ["replay_scanner:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6238,7 +5718,6 @@
"summary": "List replay vision scanners",
"title": "List replay vision scanners",
"required_scopes": ["replay_scanner:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6254,7 +5733,6 @@
"summary": "Get scanner observation",
"title": "Get scanner observation",
"required_scopes": ["replay_scanner:read", "session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6270,7 +5748,6 @@
"summary": "List scanner observations",
"title": "List scanner observations",
"required_scopes": ["replay_scanner:read", "session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6286,7 +5763,6 @@
"summary": "Run scanner against a session now",
"title": "Run scanner against a session now",
"required_scopes": ["replay_scanner:write", "session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -6303,7 +5779,6 @@
"summary": "Update replay vision scanner",
"title": "Update replay vision scanner",
"required_scopes": ["replay_scanner:write", "session_recording:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6320,7 +5795,6 @@
"summary": "List visual review repos",
"title": "List visual review repos",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6336,7 +5810,6 @@
"summary": "Get visual review repo",
"title": "Get visual review repo",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6352,7 +5825,6 @@
"summary": "Approve visual review snapshots",
"title": "Approve visual review snapshots",
"required_scopes": ["visual_review:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -6368,7 +5840,6 @@
"summary": "Visual review run counts",
"title": "Visual review run counts",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6384,7 +5855,6 @@
"summary": "List visual review runs",
"title": "List visual review runs",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6400,7 +5870,6 @@
"summary": "Get visual review run",
"title": "Get visual review run",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6416,7 +5885,6 @@
"summary": "Snapshot change history",
"title": "Snapshot change history",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6432,7 +5900,6 @@
"summary": "List run snapshots",
"title": "List run snapshots",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6448,7 +5915,6 @@
"summary": "Tolerate visual review snapshot",
"title": "Tolerate visual review snapshot",
"required_scopes": ["visual_review:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6464,7 +5930,6 @@
"summary": "List tolerated hashes",
"title": "List tolerated hashes",
"required_scopes": ["visual_review:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6480,7 +5945,6 @@
"summary": "Summarize web analytics",
"title": "Summarize web analytics",
"required_scopes": ["web_analytics:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6495,7 +5959,6 @@
"summary": "Archive workflow",
"title": "Archive workflow",
"required_scopes": ["hog_flow:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6510,7 +5973,6 @@
"summary": "Create workflow",
"title": "Create workflow",
"required_scopes": ["hog_flow:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -6525,7 +5987,6 @@
"summary": "Disable workflow",
"title": "Disable workflow",
"required_scopes": ["hog_flow:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -6540,7 +6001,6 @@
"summary": "Enable workflow",
"title": "Enable workflow",
"required_scopes": ["hog_flow:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -6555,7 +6015,6 @@
"summary": "Get workflow",
"title": "Get workflow",
"required_scopes": ["hog_flow:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6570,7 +6029,6 @@
"summary": "List workflows",
"title": "List workflows",
"required_scopes": ["hog_flow:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -6585,7 +6043,6 @@
"summary": "Test-run workflow",
"title": "Test-run workflow",
"required_scopes": ["hog_flow:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": false,
@@ -6600,7 +6057,6 @@
"summary": "Update workflow",
"title": "Update workflow",
"required_scopes": ["hog_flow:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
diff --git a/services/mcp/schema/tool-definitions-v2.json b/services/mcp/schema/tool-definitions-v2.json
deleted file mode 100644
index c895c57166fc..000000000000
--- a/services/mcp/schema/tool-definitions-v2.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "execute-sql": {
- "description": "Use this tool to execute an SQL query (or HogQL, which is PostHog's variant of SQL that supports most of ClickHouse SQL). We're going to use terms \"HogQL\" and \"SQL\" interchangeably. For more information, see the querying-posthog-data skill.\nBEFORE writing any query, you should follow these steps:\n1. Call posthog:read-data-warehouse-schema to discover available tables, views, columns, and their types. Do NOT guess table or column names.\n2. Call posthog:read-data-schema to discover available events, properties, and property values. Do NOT rely on training data or PostHog defaults.\n3. Only after completing steps 1 and 2, write and execute your SQL query using verified table and column names.\nUse system tables with the system. prefix for PostHog-created data. For example, count SQL insight variables with:\n```sql\nSELECT count() AS total FROM system.insight_variables\n```\nAn example query to retrieve columns of a custom data warehouse table:\n```sql\nSELECT columns FROM system.data_warehouse_tables WHERE name = 'my_table'\n```\nIMPORTANT: By default, large JSON values in results (like full `properties` objects) are truncated. If you anticipate that results might be large or you are selecting the full `properties` object (e.g., `SELECT properties FROM events`), you should dump the results to a file instead of outputting them directly. Use bash commands to process the file. Alternatively, cherry-pick only the specific properties you need (e.g., `properties.$browser`) instead of selecting the entire object.",
- "category": "SQL",
- "feature": "sql",
- "summary": "Execute an SQL query.",
- "title": "Execute SQL query",
- "required_scopes": ["query:read", "insight:read"],
- "new_mcp": true,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
- "read-data-schema": {
- "description": "Use this tool to explore the user's data schema. The user implements PostHog SDKs to collect events, properties, and property values. They are used by users to create insights with visualizations, SQL queries, watch session recordings, filter data, target particular users or groups by traits or behavior, etc. Each event, action, and entity has its own data schema. You must verify that specific combinations exist before using it anywhere else. Events or properties starting from \"$\" are system properties automatically captured by SDKs. Do not rely on your training data or PostHog defaults for events or properties. Always use this tool to confirm what actually exists in the user's project before referencing any event, property, or property value.",
- "category": "Data schema",
- "feature": "data_schema",
- "summary": "Explore the user's events, actions, properties, and property values.",
- "title": "Read data schema",
- "required_scopes": ["event_definition:read", "property_definition:read"],
- "new_mcp": true,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
- "read-data-warehouse-schema": {
- "description": "Use this tool to retrieve the core data warehouse schemas for PostHog tables (events, groups, persons, sessions) and the available data warehouse tables, views, and system tables. Use this to understand the data model before writing HogQL queries.",
- "category": "Data schema",
- "feature": "data_schema",
- "summary": "Read core data warehouse schemas and table lists.",
- "title": "Read data warehouse schema",
- "required_scopes": ["warehouse_table:read", "warehouse_view:read"],
- "new_mcp": true,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
- "workflows-enable": {
- "description": "Enable / activate a draft workflow and start processing events. Confirm with the user before invoking.",
- "category": "Workflows",
- "feature": "workflows",
- "summary": "Enable workflow",
- "title": "Enable workflow",
- "required_scopes": ["hog_flow:write"],
- "new_mcp": true,
- "annotations": {
- "destructiveHint": true,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": false
- }
- },
- "workflows-disable": {
- "description": "Disable / deactivate a live workflow and stop processing events. Confirm with the user before invoking.",
- "category": "Workflows",
- "feature": "workflows",
- "summary": "Disable workflow",
- "title": "Disable workflow",
- "required_scopes": ["hog_flow:write"],
- "new_mcp": true,
- "annotations": {
- "destructiveHint": true,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": false
- }
- },
- "workflows-archive": {
- "description": "Archive a draft or disabled workflow.",
- "category": "Workflows",
- "feature": "workflows",
- "summary": "Archive workflow",
- "title": "Archive workflow",
- "required_scopes": ["hog_flow:write"],
- "new_mcp": true,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": false
- }
- }
-}
diff --git a/services/mcp/schema/tool-definitions.json b/services/mcp/schema/tool-definitions.json
index 7c5379943e94..d50ba2c3c06e 100644
--- a/services/mcp/schema/tool-definitions.json
+++ b/services/mcp/schema/tool-definitions.json
@@ -6,7 +6,6 @@
"summary": "Optional: submit feedback about the PostHog MCP server.",
"title": "Submit agent feedback",
"required_scopes": [],
- "new_mcp": true,
"always_available": true,
"feature_flag": "mcp-feedback-tool",
"annotations": {
@@ -23,7 +22,6 @@
"summary": "Get experiment metric and exposure results with self-describing per-metric metadata.",
"title": "Get experiment results",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -38,7 +36,6 @@
"summary": "Deprecated alias for experiment-list.",
"title": "Get all experiments (deprecated)",
"required_scopes": ["experiment:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -53,7 +50,6 @@
"summary": "Run a saved insight's query and return results.",
"title": "Query insight",
"required_scopes": ["query:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -61,67 +57,6 @@
"readOnlyHint": true
}
},
- "query-run": {
- "description": "You should use this to answer questions that a user has about their data and for when you want to create a new insight. You can use 'event-definitions-list' to get events to use in the query, and 'event-properties-list' to get properties for those events. It can run a trend, funnel, paths or HogQL query. For existing PostHog-created data, use system tables with the system. prefix; for example, count SQL insight variables with SELECT count() AS total FROM system.insight_variables. Where possible, use a trend, funnel or paths query rather than a HogQL query, unless you know the HogQL is correct (e.g. it came from a previous insight.). Use PathsQuery to visualize user flows and navigation patterns — set includeEventTypes to ['hogql'] with a pathsHogQLExpression for custom path steps. To target a Postgres or DuckDB direct-query data warehouse source instead of ClickHouse, set 'connectionId' on a HogQLQuery (call external-data-sources-list to discover ids).",
- "category": "Insights & analytics",
- "summary": "Run a trend, funnel, paths or HogQL query.",
- "feature": "insights",
- "title": "Run query",
- "required_scopes": ["query:read"],
- "new_mcp": false,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
- "query-validate": {
- "description": "Dry-run a HogQL query: parse and type-check it without executing, so there is no ClickHouse cost and no 202 polling. Returns structured errors (with character positions), warnings, notices, and the list of tables the query references. Use this before 'query-run' on any non-trivial HogQL to catch column typos, missing tables, and syntax issues up front instead of iterating on opaque execution errors. Accepts the same language values as the HogQL editor: 'hogQL' (default, full SELECT), 'hogQLExpr' (bare expression), 'hog', or 'hogTemplate'. Pass 'connectionId' to validate against a Postgres or DuckDB direct-query data warehouse source instead of the ClickHouse catalog (use external-data-sources-list to find ids).",
- "category": "Insights & analytics",
- "summary": "Validate a HogQL query without executing it.",
- "feature": "insights",
- "title": "Validate query",
- "required_scopes": ["query:read"],
- "new_mcp": false,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": false,
- "readOnlyHint": true
- }
- },
- "hogql-schema": {
- "description": "Return the HogQL catalog for the active project: every queryable table (PostHog, system, warehouse, view, materialized view, batch export, endpoint) keyed by name, with each table's fields, plus the join graph between data-warehouse tables. Call this once up front when building a HogQL query from scratch so you pick real table and column names on the first attempt instead of guessing. Cheap — no ClickHouse cost. Pass 'connectionId' to introspect a Postgres or DuckDB direct-query data warehouse source instead of the ClickHouse catalog (use external-data-sources-list to find ids).",
- "category": "Insights & analytics",
- "summary": "List tables and columns available to HogQL queries.",
- "feature": "insights",
- "title": "HogQL schema",
- "required_scopes": ["query:read"],
- "new_mcp": false,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": false,
- "readOnlyHint": true
- }
- },
- "query-generate-hogql-from-question": {
- "description": "This is a slow tool, and you should only use it once you have tried to create a query using the 'query-run' tool, or the query is too complicated to create a trend / funnel. Queries project's PostHog data based on a provided natural language question - don't provide SQL query as input but describe the output you want. When giving the results back to the user, first show the SQL query that was used, then provide results in easily readable format. You should also offer to save the query as an insight if the user wants to.",
- "category": "Insights & analytics",
- "summary": "Queries project's PostHog data based on a provided natural language question.",
- "feature": "insights",
- "title": "Generate SQL",
- "required_scopes": ["query:read"],
- "new_mcp": false,
- "requires_ai_consent": true,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": false,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
"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).",
"category": "AI observability",
@@ -129,7 +64,6 @@
"summary": "List AI observability evaluations.",
"title": "List evaluations",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -144,7 +78,6 @@
"summary": "Get a specific evaluation by ID.",
"title": "Get evaluation",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -159,7 +92,6 @@
"summary": "Create a new evaluation.",
"title": "Create evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -174,7 +106,6 @@
"summary": "Update an evaluation.",
"title": "Update evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -189,7 +120,6 @@
"summary": "Delete an evaluation.",
"title": "Delete evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -204,7 +134,6 @@
"summary": "Run an evaluation on a specific event.",
"title": "Run evaluation",
"required_scopes": ["evaluation:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -219,7 +148,6 @@
"summary": "Dry-run Hog evaluation code against sample events.",
"title": "Test Hog evaluation",
"required_scopes": ["evaluation:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -234,7 +162,6 @@
"summary": "Edit part of a notebook's content.",
"title": "Edit notebook",
"required_scopes": ["notebook:write"],
- "new_mcp": true,
"feature_flag": "notebooks-collaboration",
"annotations": {
"destructiveHint": false,
@@ -250,7 +177,6 @@
"summary": "Fetches the total LLM daily costs for each model for a project over a given number of days.",
"title": "Get LLM costs",
"required_scopes": ["warehouse_table:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -265,7 +191,6 @@
"summary": "Switch the active PostHog organization for subsequent tool calls.",
"title": "Switch active organization",
"required_scopes": ["organization:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -280,22 +205,6 @@
"summary": "Fetches projects that the user has access to in the current organization.",
"title": "Get projects",
"required_scopes": ["organization:read"],
- "new_mcp": true,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
- "event-definitions-list": {
- "description": "List all event definitions in the project with optional filtering. Can filter by search term.",
- "category": "Events & properties",
- "feature": "events",
- "summary": "List all event definitions in the project with optional filtering.",
- "title": "List all events",
- "required_scopes": ["event_definition:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -317,36 +226,6 @@
"readOnlyHint": false
}
},
- "properties-list": {
- "description": "List properties for events or persons. If fetching event properties, you must provide an event name.",
- "category": "Events & properties",
- "feature": "events",
- "summary": "Get properties for events or persons.",
- "title": "Get properties",
- "required_scopes": ["property_definition:read"],
- "new_mcp": false,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
- "property-definitions": {
- "description": "Get event and property definitions for the project.",
- "category": "Organization & project management",
- "feature": "workspace",
- "summary": "Get event and property definitions for the project.",
- "title": "Get property definitions",
- "required_scopes": ["property_definition:read"],
- "new_mcp": false,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
"switch-project": {
"description": "Switch the active PostHog project for subsequent tool calls. Call this proactively whenever the user names a project or workspace they want to operate on. Use `projects-get` to resolve a project name to an id. If the project isn't found, the user may be referring to a project in a different organization, in which case call `organizations-list` and `switch-organization` first, then retry `projects-get`. Default to the active project when no specific project is mentioned.",
"category": "Organization & project management",
@@ -354,7 +233,6 @@
"summary": "Switch the active PostHog project for subsequent tool calls.",
"title": "Switch active project",
"required_scopes": ["project:read"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -369,7 +247,6 @@
"required_scopes": ["survey:write"],
"feature": "surveys",
"title": "Create survey",
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": false,
@@ -412,7 +289,6 @@
"required_scopes": ["survey:write"],
"feature": "surveys",
"title": "Update survey",
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -427,7 +303,6 @@
"required_scopes": ["survey:write"],
"feature": "surveys",
"title": "Delete survey",
- "new_mcp": true,
"annotations": {
"destructiveHint": true,
"idempotentHint": true,
@@ -442,7 +317,6 @@
"required_scopes": ["survey:read"],
"feature": "surveys",
"title": "Get all survey response stats",
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -457,22 +331,6 @@
"required_scopes": ["survey:read"],
"feature": "surveys",
"title": "Get survey response stats",
- "new_mcp": true,
- "annotations": {
- "destructiveHint": false,
- "idempotentHint": true,
- "openWorldHint": true,
- "readOnlyHint": true
- }
- },
- "entity-search": {
- "description": "Search for PostHog entities by name or description. Can search across multiple entity types including insights, dashboards, experiments, feature flags, notebooks, actions, cohorts, event definitions, and surveys. Use this to find entities when you know part of their name. Returns matching entities with their IDs and URLs.",
- "category": "Search",
- "feature": "search",
- "summary": "Search for entities by name or description.",
- "title": "Search entities",
- "required_scopes": ["project:read"],
- "new_mcp": false,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -501,7 +359,6 @@
"summary": "Discover tables and sync methods for a source",
"title": "Discover tables and sync methods for a source",
"required_scopes": ["external_data_source:write"],
- "new_mcp": true,
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
@@ -544,7 +401,6 @@
"summary": "Generate AI-powered summaries of session recordings via streaming.",
"title": "Summarize session recording",
"required_scopes": ["session_recording:read"],
- "new_mcp": true,
"requires_ai_consent": true,
"feature_flag": "replay-video-based-summarization",
"annotations": {
@@ -553,5 +409,89 @@
"openWorldHint": true,
"readOnlyHint": true
}
+ },
+ "execute-sql": {
+ "description": "Use this tool to execute an SQL query (or HogQL, which is PostHog's variant of SQL that supports most of ClickHouse SQL). We're going to use terms \"HogQL\" and \"SQL\" interchangeably. For more information, see the querying-posthog-data skill.\nBEFORE writing any query, you should follow these steps:\n1. Call posthog:read-data-warehouse-schema to discover available tables, views, columns, and their types. Do NOT guess table or column names.\n2. Call posthog:read-data-schema to discover available events, properties, and property values. Do NOT rely on training data or PostHog defaults.\n3. Only after completing steps 1 and 2, write and execute your SQL query using verified table and column names.\nUse system tables with the system. prefix for PostHog-created data. For example, count SQL insight variables with:\n```sql\nSELECT count() AS total FROM system.insight_variables\n```\nAn example query to retrieve columns of a custom data warehouse table:\n```sql\nSELECT columns FROM system.data_warehouse_tables WHERE name = 'my_table'\n```\nIMPORTANT: By default, large JSON values in results (like full `properties` objects) are truncated. If you anticipate that results might be large or you are selecting the full `properties` object (e.g., `SELECT properties FROM events`), you should dump the results to a file instead of outputting them directly. Use bash commands to process the file. Alternatively, cherry-pick only the specific properties you need (e.g., `properties.$browser`) instead of selecting the entire object.",
+ "category": "SQL",
+ "feature": "sql",
+ "summary": "Execute an SQL query.",
+ "title": "Execute SQL query",
+ "required_scopes": ["query:read", "insight:read"],
+ "annotations": {
+ "destructiveHint": false,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": true
+ }
+ },
+ "read-data-schema": {
+ "description": "Use this tool to explore the user's data schema. The user implements PostHog SDKs to collect events, properties, and property values. They are used by users to create insights with visualizations, SQL queries, watch session recordings, filter data, target particular users or groups by traits or behavior, etc. Each event, action, and entity has its own data schema. You must verify that specific combinations exist before using it anywhere else. Events or properties starting from \"$\" are system properties automatically captured by SDKs. Do not rely on your training data or PostHog defaults for events or properties. Always use this tool to confirm what actually exists in the user's project before referencing any event, property, or property value.",
+ "category": "Data schema",
+ "feature": "data_schema",
+ "summary": "Explore the user's events, actions, properties, and property values.",
+ "title": "Read data schema",
+ "required_scopes": ["event_definition:read", "property_definition:read"],
+ "annotations": {
+ "destructiveHint": false,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": true
+ }
+ },
+ "read-data-warehouse-schema": {
+ "description": "Use this tool to retrieve the core data warehouse schemas for PostHog tables (events, groups, persons, sessions) and the available data warehouse tables, views, and system tables. Use this to understand the data model before writing HogQL queries.",
+ "category": "Data schema",
+ "feature": "data_schema",
+ "summary": "Read core data warehouse schemas and table lists.",
+ "title": "Read data warehouse schema",
+ "required_scopes": ["warehouse_table:read", "warehouse_view:read"],
+ "annotations": {
+ "destructiveHint": false,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": true
+ }
+ },
+ "workflows-enable": {
+ "description": "Enable / activate a draft workflow and start processing events. Confirm with the user before invoking.",
+ "category": "Workflows",
+ "feature": "workflows",
+ "summary": "Enable workflow",
+ "title": "Enable workflow",
+ "required_scopes": ["hog_flow:write"],
+ "annotations": {
+ "destructiveHint": true,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": false
+ }
+ },
+ "workflows-disable": {
+ "description": "Disable / deactivate a live workflow and stop processing events. Confirm with the user before invoking.",
+ "category": "Workflows",
+ "feature": "workflows",
+ "summary": "Disable workflow",
+ "title": "Disable workflow",
+ "required_scopes": ["hog_flow:write"],
+ "annotations": {
+ "destructiveHint": true,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": false
+ }
+ },
+ "workflows-archive": {
+ "description": "Archive a draft or disabled workflow.",
+ "category": "Workflows",
+ "feature": "workflows",
+ "summary": "Archive workflow",
+ "title": "Archive workflow",
+ "required_scopes": ["hog_flow:write"],
+ "annotations": {
+ "destructiveHint": false,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": false
+ }
}
}
diff --git a/services/mcp/schema/tool-inputs.json b/services/mcp/schema/tool-inputs.json
index 504d9e86a068..571f54ebee02 100644
--- a/services/mcp/schema/tool-inputs.json
+++ b/services/mcp/schema/tool-inputs.json
@@ -33,35 +33,6 @@
},
"required": ["query"]
},
- "EntitySearchSchema": {
- "type": "object",
- "properties": {
- "query": {
- "type": "string",
- "minLength": 1,
- "description": "Search query to find entities by name or description"
- },
- "entities": {
- "description": "Entity types to search. If not specified, searches all types. Available: insight, dashboard, experiment, feature_flag, notebook, action, cohort, event_definition, survey",
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "insight",
- "dashboard",
- "experiment",
- "feature_flag",
- "notebook",
- "action",
- "cohort",
- "event_definition",
- "survey"
- ]
- }
- }
- },
- "required": ["query"]
- },
"EventDefinitionUpdateInputSchema": {
"type": "object",
"properties": {
@@ -900,26 +871,6 @@
},
"required": ["summary", "sentiment", "category", "task_completed"]
},
- "HogQLSchemaInputSchema": {
- "type": "object",
- "properties": {
- "connectionId": {
- "description": "Optional id of an external data source (e.g. a Postgres or DuckDB direct-query connection). When set, returns the schema of that source instead of the ClickHouse catalog. Use external-data-sources-connections-list to discover available connection ids.",
- "type": "string"
- }
- }
- },
- "InsightGenerateHogQLFromQuestionSchema": {
- "type": "object",
- "properties": {
- "question": {
- "type": "string",
- "maxLength": 1000,
- "description": "Your natural language query describing the SQL insight (max 1000 characters)."
- }
- },
- "required": ["question"]
- },
"InsightQueryInputSchema": {
"type": "object",
"properties": {
@@ -975,58 +926,10 @@
},
"required": ["orgId"]
},
- "ProjectEventDefinitionsSchema": {
- "type": "object",
- "properties": {
- "q": {
- "description": "Search query to filter event names. Only use if there are lots of events.",
- "type": "string"
- },
- "limit": {
- "type": "integer",
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991
- },
- "offset": {
- "type": "integer",
- "minimum": 0,
- "maximum": 9007199254740991
- }
- }
- },
"ProjectGetAllSchema": {
"type": "object",
"properties": {}
},
- "ProjectPropertyDefinitionsInputSchema": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["event", "person"],
- "description": "Type of properties to get"
- },
- "eventName": {
- "type": "string",
- "description": "Event name to filter properties by, required for event type"
- },
- "includePredefinedProperties": {
- "description": "Whether to include predefined properties",
- "type": "boolean"
- },
- "limit": {
- "type": "integer",
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991
- },
- "offset": {
- "type": "integer",
- "minimum": 0,
- "maximum": 9007199254740991
- }
- },
- "required": ["type"]
- },
"ProjectSetActiveSchema": {
"type": "object",
"properties": {
@@ -1053,1959 +956,6 @@
}
}
},
- "QueryRunInputSchema": {
- "type": "object",
- "properties": {
- "query": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "kind": {
- "type": "string",
- "const": "InsightVizNode"
- },
- "source": {
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "dateRange": {
- "type": "object",
- "properties": {
- "date_from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "date_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "explicitDate": {
- "type": "boolean"
- }
- }
- },
- "filterTestAccounts": {
- "default": false,
- "type": "boolean"
- },
- "properties": {
- "default": [],
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- }
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- },
- "kind": {
- "type": "string",
- "const": "TrendsQuery"
- },
- "interval": {
- "default": "day",
- "type": "string",
- "enum": ["hour", "day", "week", "month"]
- },
- "series": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "custom_name": {
- "type": "string",
- "description": "A display name"
- },
- "math": {
- "anyOf": [
- {
- "type": "string",
- "enum": [
- "total",
- "dau",
- "weekly_active",
- "monthly_active",
- "unique_session",
- "first_time_for_user",
- "first_matching_event_for_user"
- ]
- },
- {
- "type": "string",
- "enum": [
- "avg",
- "sum",
- "min",
- "max",
- "median",
- "p75",
- "p90",
- "p95",
- "p99"
- ]
- }
- ]
- },
- "math_property": {
- "type": "string"
- },
- "properties": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- }
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- },
- "kind": {
- "type": "string",
- "const": "EventsNode"
- },
- "event": {
- "type": "string"
- },
- "limit": {
- "type": "number"
- }
- },
- "required": ["custom_name", "kind"]
- }
- },
- "trendsFilter": {
- "type": "object",
- "properties": {
- "display": {
- "default": "ActionsLineGraph",
- "type": "string",
- "enum": [
- "ActionsLineGraph",
- "ActionsTable",
- "ActionsPie",
- "ActionsBar",
- "ActionsStackedBar",
- "ActionsAreaGraph",
- "ActionsBarValue",
- "WorldMap",
- "BoldNumber",
- "TwoDimensionalHeatmap"
- ]
- },
- "showLegend": {
- "default": false,
- "type": "boolean"
- }
- }
- },
- "breakdownFilter": {
- "type": "object",
- "properties": {
- "breakdown_type": {
- "default": "event",
- "anyOf": [
- {
- "type": "string",
- "enum": ["person", "event"]
- },
- {
- "type": "null"
- }
- ]
- },
- "breakdown_limit": {
- "type": "number"
- },
- "breakdown": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- }
- },
- "compareFilter": {
- "type": "object",
- "properties": {
- "compare": {
- "default": false,
- "type": "boolean"
- },
- "compare_to": {
- "type": "string"
- }
- }
- },
- "conversionGoal": {
- "anyOf": [
- {},
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["kind", "series"]
- },
- {
- "type": "object",
- "properties": {
- "dateRange": {
- "type": "object",
- "properties": {
- "date_from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "date_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "explicitDate": {
- "type": "boolean"
- }
- }
- },
- "filterTestAccounts": {
- "default": false,
- "type": "boolean"
- },
- "properties": {
- "default": [],
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- }
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- },
- "kind": {
- "type": "string",
- "const": "FunnelsQuery"
- },
- "interval": {
- "type": "string",
- "enum": ["hour", "day", "week", "month"]
- },
- "series": {
- "minItems": 2,
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "custom_name": {
- "type": "string",
- "description": "A display name"
- },
- "math": {
- "anyOf": [
- {
- "type": "string",
- "enum": [
- "total",
- "dau",
- "weekly_active",
- "monthly_active",
- "unique_session",
- "first_time_for_user",
- "first_matching_event_for_user"
- ]
- },
- {
- "type": "string",
- "enum": [
- "avg",
- "sum",
- "min",
- "max",
- "median",
- "p75",
- "p90",
- "p95",
- "p99"
- ]
- }
- ]
- },
- "math_property": {
- "type": "string"
- },
- "properties": {
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- }
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- },
- "kind": {
- "type": "string",
- "const": "EventsNode"
- },
- "event": {
- "type": "string"
- },
- "limit": {
- "type": "number"
- }
- },
- "required": ["custom_name", "kind"]
- }
- },
- "funnelsFilter": {
- "type": "object",
- "properties": {
- "layout": {
- "type": "string",
- "enum": ["horizontal", "vertical"]
- },
- "breakdownAttributionType": {
- "type": "string",
- "enum": ["first_touch", "last_touch", "all_events"]
- },
- "breakdownAttributionValue": {
- "type": "number"
- },
- "funnelToStep": {
- "type": "number"
- },
- "funnelFromStep": {
- "type": "number"
- },
- "funnelOrderType": {
- "type": "string",
- "enum": ["ordered", "unordered", "strict"]
- },
- "funnelVizType": {
- "type": "string",
- "enum": ["steps", "time_to_convert", "trends"]
- },
- "funnelWindowInterval": {
- "default": 14,
- "type": "number"
- },
- "funnelWindowIntervalUnit": {
- "default": "day",
- "type": "string",
- "enum": ["minute", "hour", "day", "week", "month"]
- },
- "funnelStepReference": {
- "type": "string",
- "enum": ["total", "previous"]
- }
- }
- },
- "breakdownFilter": {
- "type": "object",
- "properties": {
- "breakdown_type": {
- "default": "event",
- "anyOf": [
- {
- "type": "string",
- "enum": ["person", "event"]
- },
- {
- "type": "null"
- }
- ]
- },
- "breakdown_limit": {
- "type": "number"
- },
- "breakdown": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- }
- }
- },
- "required": ["kind", "series"]
- },
- {
- "type": "object",
- "properties": {
- "dateRange": {
- "type": "object",
- "properties": {
- "date_from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "date_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "explicitDate": {
- "type": "boolean"
- }
- }
- },
- "filterTestAccounts": {
- "default": false,
- "type": "boolean"
- },
- "properties": {
- "default": [],
- "anyOf": [
- {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- }
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- },
- "kind": {
- "type": "string",
- "const": "PathsQuery"
- },
- "pathsFilter": {
- "default": {
- "stepLimit": 5,
- "edgeLimit": 50
- },
- "type": "object",
- "properties": {
- "includeEventTypes": {
- "type": "array",
- "items": {
- "type": "string",
- "enum": [
- "$pageview",
- "$screen",
- "custom_event",
- "hogql"
- ]
- }
- },
- "pathsHogQLExpression": {
- "description": "A HogQL expression to use as the path step name. Requires includeEventTypes to contain \"hogql\".",
- "type": "string"
- },
- "startPoint": {
- "description": "Only show paths starting at this step",
- "type": "string"
- },
- "endPoint": {
- "description": "Only show paths ending at this step",
- "type": "string"
- },
- "stepLimit": {
- "default": 5,
- "description": "Maximum number of path steps (default 5)",
- "type": "number"
- },
- "edgeLimit": {
- "default": 50,
- "description": "Maximum number of edges to return (default 50)",
- "type": "number"
- },
- "excludeEvents": {
- "description": "Events to exclude from the path",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "pathGroupings": {
- "description": "Wildcard groups to merge similar path steps",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "localPathCleaningFilters": {
- "description": "Regex rules to clean/simplify path step names",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "alias": {
- "type": "string"
- },
- "regex": {
- "type": "string"
- }
- }
- }
- },
- "minEdgeWeight": {
- "type": "number"
- },
- "maxEdgeWeight": {
- "type": "number"
- }
- }
- }
- },
- "required": ["kind"]
- }
- ]
- }
- },
- "required": ["kind", "source"]
- },
- {
- "type": "object",
- "properties": {
- "kind": {
- "type": "string",
- "const": "DataVisualizationNode"
- },
- "source": {
- "type": "object",
- "properties": {
- "kind": {
- "type": "string",
- "const": "HogQLQuery"
- },
- "query": {
- "type": "string"
- },
- "filters": {
- "type": "object",
- "properties": {
- "properties": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- }
- },
- "dateRange": {
- "type": "object",
- "properties": {
- "date_from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "date_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "explicitDate": {
- "type": "boolean"
- }
- }
- },
- "filterTestAccounts": {
- "type": "boolean"
- }
- }
- },
- "connectionId": {
- "description": "Optional id of an external data source (e.g. a Postgres or DuckDB direct-query connection). When set, the query runs against that source instead of ClickHouse. Use external-data-sources-connections-list to discover available connection ids.",
- "type": "string"
- }
- },
- "required": ["kind", "query"]
- },
- "display": {
- "description": "Visualization type. Time series should usually use ActionsLineGraph or ActionsAreaGraph; use ActionsTable only when table rows are the intended output.",
- "type": "string",
- "enum": [
- "ActionsLineGraph",
- "ActionsTable",
- "ActionsPie",
- "ActionsBar",
- "ActionsStackedBar",
- "ActionsAreaGraph",
- "ActionsBarValue",
- "WorldMap",
- "BoldNumber",
- "TwoDimensionalHeatmap"
- ]
- },
- "chartSettings": {
- "type": "object",
- "properties": {
- "xAxis": {
- "description": "Column used as the X axis, usually a time bucket or category.",
- "type": "object",
- "properties": {
- "column": {
- "type": "string",
- "description": "Name of a column returned by the SQL query."
- },
- "settings": {
- "type": "object",
- "properties": {
- "formatting": {
- "description": "Display formatting for this axis, such as percent, decimals, prefix, or suffix.",
- "type": "object",
- "properties": {
- "style": {
- "type": "string",
- "enum": ["none", "number", "short", "percent"]
- },
- "decimalPlaces": {
- "type": "number"
- },
- "prefix": {
- "type": "string"
- },
- "suffix": {
- "type": "string"
- }
- }
- },
- "display": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "displayType": {
- "type": "string",
- "enum": ["auto", "line", "bar", "area"]
- },
- "yAxisPosition": {
- "type": "string",
- "enum": ["left", "right"]
- }
- }
- }
- }
- }
- },
- "required": ["column"]
- },
- "yAxis": {
- "description": "Numeric columns plotted as Y series. Include only final metrics the user cares about, not helper columns such as numerators or denominators.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "column": {
- "type": "string",
- "description": "Name of a column returned by the SQL query."
- },
- "settings": {
- "type": "object",
- "properties": {
- "formatting": {
- "description": "Display formatting for this axis, such as percent, decimals, prefix, or suffix.",
- "type": "object",
- "properties": {
- "style": {
- "type": "string",
- "enum": ["none", "number", "short", "percent"]
- },
- "decimalPlaces": {
- "type": "number"
- },
- "prefix": {
- "type": "string"
- },
- "suffix": {
- "type": "string"
- }
- }
- },
- "display": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "displayType": {
- "type": "string",
- "enum": ["auto", "line", "bar", "area"]
- },
- "yAxisPosition": {
- "type": "string",
- "enum": ["left", "right"]
- }
- }
- }
- }
- }
- },
- "required": ["column"]
- }
- },
- "seriesBreakdownColumn": {
- "description": "Column that splits a single Y metric into multiple colored series.",
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "showLegend": {
- "type": "boolean"
- },
- "showNullsAsZero": {
- "type": "boolean"
- },
- "stackBars100": {
- "type": "boolean"
- }
- }
- },
- "tableSettings": {
- "type": "object",
- "properties": {
- "columns": {
- "description": "Columns to display and their order.",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "column": {
- "type": "string",
- "description": "Name of a column returned by the SQL query."
- },
- "settings": {
- "type": "object",
- "properties": {
- "formatting": {
- "description": "Display formatting for this axis, such as percent, decimals, prefix, or suffix.",
- "type": "object",
- "properties": {
- "style": {
- "type": "string",
- "enum": ["none", "number", "short", "percent"]
- },
- "decimalPlaces": {
- "type": "number"
- },
- "prefix": {
- "type": "string"
- },
- "suffix": {
- "type": "string"
- }
- }
- },
- "display": {
- "type": "object",
- "properties": {
- "label": {
- "type": "string"
- },
- "displayType": {
- "type": "string",
- "enum": ["auto", "line", "bar", "area"]
- },
- "yAxisPosition": {
- "type": "string",
- "enum": ["left", "right"]
- }
- }
- }
- }
- }
- },
- "required": ["column"]
- }
- },
- "pinnedColumns": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "transpose": {
- "type": "boolean"
- }
- }
- }
- },
- "required": ["kind", "source"]
- },
- {
- "type": "object",
- "properties": {
- "kind": {
- "type": "string",
- "const": "HogQLQuery"
- },
- "query": {
- "type": "string"
- },
- "filters": {
- "type": "object",
- "properties": {
- "properties": {
- "type": "array",
- "items": {
- "anyOf": [
- {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- },
- {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "enum": ["AND", "OR"]
- },
- "values": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- },
- "required": ["key"]
- }
- }
- },
- "required": ["type", "values"]
- }
- ]
- }
- },
- "dateRange": {
- "type": "object",
- "properties": {
- "date_from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "date_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "explicitDate": {
- "type": "boolean"
- }
- }
- },
- "filterTestAccounts": {
- "type": "boolean"
- }
- }
- },
- "connectionId": {
- "description": "Optional id of an external data source (e.g. a Postgres or DuckDB direct-query connection). When set, the query runs against that source instead of ClickHouse. Use external-data-sources-connections-list to discover available connection ids.",
- "type": "string"
- }
- },
- "required": ["kind", "query"]
- }
- ]
- }
- },
- "required": ["query"]
- },
- "QueryValidateInputSchema": {
- "type": "object",
- "properties": {
- "query": {
- "type": "string",
- "minLength": 1,
- "description": "The HogQL (ClickHouse-flavored SQL) query to validate. Parsed and type-checked without executing, so there is no ClickHouse cost."
- },
- "language": {
- "default": "hogQL",
- "description": "Language to validate. Defaults to 'hogQL' (full SELECT statements). Use 'hogQLExpr' for a bare expression, 'hog' or 'hogTemplate' for Hog source.",
- "type": "string",
- "enum": ["hogQL", "hogQLExpr", "hog", "hogTemplate"]
- },
- "connectionId": {
- "description": "Optional id of an external data source (e.g. a Postgres or DuckDB direct-query connection). When set, validates against that source instead of the ClickHouse catalog. Use external-data-sources-connections-list to discover available connection ids.",
- "type": "string"
- }
- },
- "required": ["query"]
- },
"ReadDataSchemaSchema": {
"type": "object",
"properties": {
diff --git a/services/mcp/scripts/generate-tools.ts b/services/mcp/scripts/generate-tools.ts
index a4597ff834d7..567882a9a2f7 100644
--- a/services/mcp/scripts/generate-tools.ts
+++ b/services/mcp/scripts/generate-tools.ts
@@ -40,8 +40,7 @@ const PRODUCTS_DIR = path.resolve(REPO_ROOT, 'products')
const GENERATED_DIR = path.resolve(MCP_ROOT, 'src/tools/generated')
const DEFINITIONS_JSON_PATH = path.resolve(MCP_ROOT, 'schema/generated-tool-definitions.json')
const ALL_DEFINITIONS_JSON_PATH = path.resolve(MCP_ROOT, 'schema/tool-definitions-all.json')
-const TOOL_DEFINITIONS_V1_PATH = path.resolve(MCP_ROOT, 'schema/tool-definitions.json')
-const TOOL_DEFINITIONS_V2_PATH = path.resolve(MCP_ROOT, 'schema/tool-definitions-v2.json')
+const TOOL_DEFINITIONS_PATH = path.resolve(MCP_ROOT, 'schema/tool-definitions.json')
const OPENAPI_PATH = path.resolve(REPO_ROOT, 'frontend/tmp/openapi.json')
const SCHEMA_JSON_PATH = path.resolve(REPO_ROOT, 'frontend/src/queries/schema.json')
@@ -1024,11 +1023,9 @@ function generateToolCode(
composition.bodyFieldNames.length > 0 || hasQuery || composition.pathParamNames.length > 0 || enrichUsesParams
const unusedParamsComment = paramsUsed ? '' : '// eslint-disable-next-line no-unused-vars\n'
- const mcpVersionLine = config.mcp_version !== undefined ? `\n mcpVersion: ${config.mcp_version},` : ''
-
const toolBody = `{
name: '${toolName}',
- schema: ${schemaName},${mcpVersionLine}
+ schema: ${schemaName},
${unusedParamsComment}handler: async (context: Context, params: z.infer<typeof ${schemaName}>) => {
${handlerBody} },
}`
@@ -1125,8 +1122,6 @@ function generateCustomSchemaToolCode(
const enrichmentVar = responseFilter.code ? 'filtered' : 'result'
handlerBody += buildEnrichment(config, category, enrichmentVar)
- const mcpVersionLine = config.mcp_version !== undefined ? `\n mcpVersion: ${config.mcp_version},` : ''
-
let baseSchemaExpr = config.input_schema as string
const toolInputsImports: string[] = config.input_schema ? [config.input_schema] : []
if (config.validators && config.validators.length > 0) {
@@ -1141,7 +1136,7 @@ const ${schemaName} = ${baseSchemaExpr}
const ${factoryName} = (): ToolBase<typeof ${schemaName}, ${responseType ?? 'unknown'}> => ({
name: '${toolName}',
- schema: ${schemaName},${mcpVersionLine}
+ schema: ${schemaName},
handler: async (context: Context, params: z.infer<typeof ${schemaName}>) => {
${handlerBody} },
})
@@ -1356,9 +1351,6 @@ function generateCategoryFile(
if (wrapperConfig.url_prefix) {
configParts.push(`urlPrefix: '${wrapperConfig.url_prefix}'`)
}
- if (wrapperConfig.mcp_version !== undefined) {
- configParts.push(`mcpVersion: ${wrapperConfig.mcp_version}`)
- }
return ` '${name}': createQueryWrapper({ ${configParts.join(', ')} }),`
})
.join('\n')
@@ -1470,7 +1462,6 @@ function generateDefinitionsJson(
summary: toolConfig.title || opDescription.split('.')[0] || name,
title: toolConfig.title || resolved.operation.summary || name,
required_scopes: toolConfig.scopes,
- new_mcp: toolConfig.mcp_version !== undefined ? toolConfig.mcp_version >= 2 : true,
annotations: {
destructiveHint: toolConfig.annotations.destructive,
idempotentHint: toolConfig.annotations.idempotent,
@@ -1495,7 +1486,6 @@ function generateDefinitionsJson(
summary: wrapperConfig.title || name,
title: wrapperConfig.title || name,
required_scopes: wrapperConfig.scopes,
- new_mcp: wrapperConfig.mcp_version !== undefined ? wrapperConfig.mcp_version >= 2 : true,
annotations: {
destructiveHint: wrapperConfig.annotations.destructive,
idempotentHint: wrapperConfig.annotations.idempotent,
@@ -1626,9 +1616,6 @@ function generateQueryWrapperFile(
if (toolConfig.url_prefix) {
configParts.push(`urlPrefix: '${toolConfig.url_prefix}'`)
}
- if (toolConfig.mcp_version !== undefined) {
- configParts.push(`mcpVersion: ${toolConfig.mcp_version}`)
- }
return ` '${name}': createQueryWrapper({ ${configParts.join(', ')} }),`
})
.join('\n')
@@ -1677,7 +1664,6 @@ function generateQueryWrapperDefinitionsJson(
summary: toolConfig.title || name,
title: toolConfig.title || name,
required_scopes: toolConfig.scopes,
- new_mcp: toolConfig.mcp_version !== undefined ? toolConfig.mcp_version >= 2 : true,
annotations: {
destructiveHint: toolConfig.annotations.destructive,
idempotentHint: toolConfig.annotations.idempotent,
@@ -1812,9 +1798,8 @@ ${spreads}
fs.writeFileSync(DEFINITIONS_JSON_PATH, JSON.stringify(definitions, null, 4) + '\n')
// Combined tool definitions for external consumers (docs site)
- const v1Definitions = JSON.parse(fs.readFileSync(TOOL_DEFINITIONS_V1_PATH, 'utf-8'))
- const v2Definitions = JSON.parse(fs.readFileSync(TOOL_DEFINITIONS_V2_PATH, 'utf-8'))
- const allDefinitions = sortKeys({ ...v1Definitions, ...v2Definitions, ...definitions })
+ const handwrittenDefinitions = JSON.parse(fs.readFileSync(TOOL_DEFINITIONS_PATH, 'utf-8'))
+ const allDefinitions = sortKeys({ ...handwrittenDefinitions, ...definitions })
fs.writeFileSync(ALL_DEFINITIONS_JSON_PATH, JSON.stringify(allDefinitions, null, 4) + '\n')
const totalTools = allCategories.reduce((sum, c) => sum + c.enabledTools.length, 0)
diff --git a/services/mcp/scripts/lint-tool-names.ts b/services/mcp/scripts/lint-tool-names.ts
index efbf652ecbd4..5e9f30434ad3 100644
--- a/services/mcp/scripts/lint-tool-names.ts
+++ b/services/mcp/scripts/lint-tool-names.ts
@@ -4,7 +4,7 @@
*
* Validates tool names from three sources:
* 1. YAML definitions (products and services/mcp/definitions)
- * 2. Handwritten JSON definitions (tool-definitions.json, tool-definitions-v2.json)
+ * 2. Handwritten JSON definitions (tool-definitions.json)
* 3. Generated JSON definitions (generated-tool-definitions.json)
*
* Length: tool names must be <= 52 chars because some MCP clients (notably Cursor)
@@ -103,7 +103,7 @@ function main(): void {
hasErrors = validateYamlDefinitions(violations) || hasErrors
- for (const jsonFile of ['tool-definitions.json', 'tool-definitions-v2.json', 'generated-tool-definitions.json']) {
+ for (const jsonFile of ['tool-definitions.json', 'generated-tool-definitions.json']) {
hasErrors = validateJsonDefinitions(jsonFile, violations) || hasErrors
}
diff --git a/services/mcp/scripts/yaml-config-schema.ts b/services/mcp/scripts/yaml-config-schema.ts
index 1866fb095ca4..cb515e83a524 100644
--- a/services/mcp/scripts/yaml-config-schema.ts
+++ b/services/mcp/scripts/yaml-config-schema.ts
@@ -97,7 +97,6 @@ export const ToolConfigSchema = z
})
)
.optional(),
- mcp_version: z.number().int().positive().optional(),
/**
* Cross-field refinements applied to the composed tool schema.
* Each entry names a function exported from `@/schema/tool-inputs` whose
@@ -358,7 +357,6 @@ export const QueryWrapperToolConfigSchema = z
})
.strict()
.optional(),
- mcp_version: z.number().int().positive().optional(),
title: z.string().optional(),
description: z.string().optional(),
/** Path to a file containing the tool description (resolved relative to the YAML file). Mutually exclusive with `description`. */
diff --git a/services/mcp/src/hono/analytics.ts b/services/mcp/src/hono/analytics.ts
index c20fc7c1e837..ce06ddf95696 100644
--- a/services/mcp/src/hono/analytics.ts
+++ b/services/mcp/src/hono/analytics.ts
@@ -1,6 +1,11 @@
import { MCP_ANALYTICS_SOURCE, MCP_SERVER_NAME, MCP_SERVER_VERSION } from '@/lib/constants'
import { getPostHogClient } from '@/lib/posthog'
-import { buildMCPAnalyticsGroups, buildMCPContextProperties, type MCPAnalyticsContext } from '@/lib/posthog/analytics'
+import {
+ buildMCPAnalyticsGroups,
+ buildMCPContextProperties,
+ MCP_ANALYTICS_VERSION,
+ type MCPAnalyticsContext,
+} from '@/lib/posthog/analytics'
import { buildMCPSessionAnalyticsProperties } from './mcp-context'
import type { ResolvedState } from './request-state-resolver'
@@ -20,7 +25,7 @@ function buildBaseProperties(
$mcp_source: MCP_ANALYTICS_SOURCE,
$mcp_server_name: MCP_SERVER_NAME,
$mcp_server_version: MCP_SERVER_VERSION,
- $mcp_version: state.version,
+ $mcp_version: MCP_ANALYTICS_VERSION,
$mcp_client_name: requestContext.mcpClientName,
$mcp_client_version: requestContext.mcpClientVersion,
$mcp_client_user_agent: requestContext.clientUserAgent,
diff --git a/services/mcp/src/hono/instructions.ts b/services/mcp/src/hono/instructions.ts
index 9970ce65dd4c..480f34451fa0 100644
--- a/services/mcp/src/hono/instructions.ts
+++ b/services/mcp/src/hono/instructions.ts
@@ -42,10 +42,8 @@ export class InstructionsBuilder {
if (state.useSingleExec) {
return this.formatter.buildExecInstructions(ctx)
- } else if (state.version === 2) {
- return this.formatter.buildV2Instructions(ctx)
}
- return this.formatter.buildV1Instructions(metadata)
+ return this.formatter.buildToolsInstructions(ctx)
}
buildContext(state: ResolvedState): InstructionsContext {
@@ -53,12 +51,12 @@ export class InstructionsBuilder {
guidelines: this.guidelines,
tools: state.allTools.map((t) => ({
name: t.name,
- category: getToolDefinition(t.name, state.version).category,
+ category: getToolDefinition(t.name).category,
})),
queryTools: state.allTools
.filter((t) => t.name.startsWith('query-'))
.map((t) => {
- const def = getToolDefinition(t.name, state.version)
+ const def = getToolDefinition(t.name)
return {
name: t.name,
title: def.title,
diff --git a/services/mcp/src/hono/request-state-resolver.ts b/services/mcp/src/hono/request-state-resolver.ts
index 6ce295c6eea6..cc4ce7cd4ccc 100644
--- a/services/mcp/src/hono/request-state-resolver.ts
+++ b/services/mcp/src/hono/request-state-resolver.ts
@@ -21,7 +21,6 @@ import type { ToolCatalog } from './tool-catalog'
export interface ResolvedState {
reqCtx: RequestContext
context: Context
- version: number
useSingleExec: boolean
toolFeatureFlags: EvaluatedFlags | undefined
apiKeyScopes: string[]
@@ -34,26 +33,22 @@ export interface ResolvedState {
// ─── Pure helpers ───
-export function resolveModeAndVersion(args: {
- mode: McpMode | undefined
- clientProfile: MCPClientProfile
- flagVersion: number | undefined
- clientVersion: number | undefined
-}): { mode: McpMode; useSingleExec: boolean; version: number } {
- const { mode, clientProfile, flagVersion, clientVersion } = args
+export function resolveMode(args: { mode: McpMode | undefined; clientProfile: MCPClientProfile }): {
+ mode: McpMode
+ useSingleExec: boolean
+} {
+ const { mode, clientProfile } = args
const useSingleExec =
mode === 'cli' ||
(mode !== 'tools' &&
(clientProfile.isCodingAgent() ||
clientProfile.isPostHogCodeConsumer() ||
clientProfile.isVibeCodingClient()))
- const version = useSingleExec ? 2 : (flagVersion ?? clientVersion ?? 1)
- return { mode: mode ?? (useSingleExec ? 'cli' : 'tools'), useSingleExec, version }
+ return { mode: mode ?? (useSingleExec ? 'cli' : 'tools'), useSingleExec }
}
// ─── Resolver ───
-const SYSTEM_FLAGS = ['mcp-version-2'] as const
const SESSION_CONTEXT_KEYS = [
'mcpClientName',
'mcpClientVersion',
@@ -83,7 +78,7 @@ export class RequestStateResolver {
const context = await reqCtx.getContext()
- const { features, tools, version: clientVersion, organizationId, projectId, readOnly } = props
+ const { features, tools, organizationId, projectId, readOnly } = props
await reqCtx.tokenCache.setMany({
...(organizationId ? { orgId: organizationId } : {}),
@@ -96,8 +91,8 @@ export class RequestStateResolver {
cachedProjectId = (await reqCtx.tokenCache.get('projectId')) ?? undefined
}
- const toolFlagKeys = getRequiredFeatureFlags(clientVersion)
- const allFlagKeys = [...SYSTEM_FLAGS, ...toolFlagKeys]
+ const toolFlagKeys = getRequiredFeatureFlags()
+ const allFlagKeys = toolFlagKeys
const flagAnalyticsContext = await reqCtx.getAnalyticsContextSafe(context)
const flagGroups = flagAnalyticsContext ? buildMCPAnalyticsGroups(flagAnalyticsContext) : undefined
@@ -108,7 +103,6 @@ export class RequestStateResolver {
reqCtx.getDistinctId(),
])
- const flagVersion = allFlags['mcp-version-2'] === true ? 2 : undefined
// Preserve variant strings (and `undefined` for unevaluated flags) — the
// tool filter needs raw values to support `feature_flag_variant` matching.
const toolFeatureFlags =
@@ -124,15 +118,9 @@ export class RequestStateResolver {
vendorClient: clientContext.mcpVendorClient,
})
- const {
- mode: resolvedMode,
- useSingleExec,
- version,
- } = resolveModeAndVersion({
+ const { mode: resolvedMode, useSingleExec } = resolveMode({
mode: requestContext.mode,
clientProfile,
- flagVersion,
- clientVersion,
})
requestContext.mode = resolvedMode
reqCtx.setMcpContexts(requestContext, sessionContext)
@@ -152,7 +140,6 @@ export class RequestStateResolver {
const allTools = this.catalog.getFilteredTools({
features,
tools,
- version,
excludeTools,
readOnly,
featureFlags: toolFeatureFlags,
@@ -164,7 +151,6 @@ export class RequestStateResolver {
return {
reqCtx,
context,
- version,
useSingleExec,
toolFeatureFlags,
apiKeyScopes,
diff --git a/services/mcp/src/hono/tool-catalog.ts b/services/mcp/src/hono/tool-catalog.ts
index 025dca8bf986..02f4843cad74 100644
--- a/services/mcp/src/hono/tool-catalog.ts
+++ b/services/mcp/src/hono/tool-catalog.ts
@@ -1,5 +1,6 @@
import { RESOURCE_URI_META_KEY } from '@modelcontextprotocol/ext-apps/server'
import { toJsonSchemaCompat } from '@modelcontextprotocol/sdk/server/zod-json-schema-compat.js'
+import type { Tool as McpTool } from '@modelcontextprotocol/sdk/types.js'
import { hasScopes } from '@/lib/api'
import {
@@ -10,14 +11,9 @@ import {
} from '@/tools/toolDefinitions'
import type { Tool, ToolBase, ZodObjectAny } from '@/tools/types'
-import type { Tool as McpTool } from '@modelcontextprotocol/sdk/types.js'
-
interface PreBuiltTool {
base: ToolBase<ZodObjectAny>
- definitions: {
- v1: ToolDefinition | undefined
- v2: ToolDefinition | undefined
- }
+ definition: ToolDefinition | undefined
}
export interface ToolCatalogFilterOptions extends ToolFilterOptions {
@@ -56,17 +52,13 @@ export class ToolCatalog {
...GENERATED_TOOL_MAP,
}
- const v1Defs = getToolDefinitions(1)
- const v2Defs = getToolDefinitions(2)
+ const defs = getToolDefinitions()
for (const [name, factory] of Object.entries(allFactories)) {
const base = factory()
this._preBuilt.set(name, {
base,
- definitions: {
- v1: v1Defs[name],
- v2: v2Defs[name],
- },
+ definition: defs[name],
})
}
@@ -83,7 +75,7 @@ export class ToolCatalog {
this._entriesByName = new Map()
for (const [name, preBuilt] of this._preBuilt) {
- const def = preBuilt.definitions.v1 ?? preBuilt.definitions.v2
+ const def = preBuilt.definition
if (!def) {
continue
}
@@ -97,10 +89,7 @@ export class ToolCatalog {
// (e.g. `oneOf` on a polymorphic request body) come back without a root `type`.
// Add it so the schema satisfies the MCP tool contract; the union constraint
// still applies via the nested anyOf/oneOf.
- if (
- !jsonSchema['type'] &&
- (Array.isArray(jsonSchema['anyOf']) || Array.isArray(jsonSchema['oneOf']))
- ) {
+ if (!jsonSchema['type'] && (Array.isArray(jsonSchema['anyOf']) || Array.isArray(jsonSchema['oneOf']))) {
jsonSchema = { type: 'object', ...jsonSchema }
}
} catch {
@@ -147,7 +136,6 @@ export class ToolCatalog {
getFilteredTools(options: ToolCatalogFilterOptions): Tool<ZodObjectAny>[] {
const { scopes = [], excludeTools = [], ...filterOptions } = options
const allowedToolNames = getToolsForFeatures(filterOptions).filter((name) => !excludeTools.includes(name))
- const effectiveVersion = filterOptions.version ?? 1
const tools: Tool<ZodObjectAny>[] = []
@@ -158,11 +146,7 @@ export class ToolCatalog {
}
const { base } = preBuilt
- if (base.mcpVersion !== undefined && base.mcpVersion !== effectiveVersion) {
- continue
- }
-
- const definition = preBuilt.definitions[effectiveVersion === 2 ? 'v2' : 'v1'] ?? preBuilt.definitions.v1
+ const definition = preBuilt.definition
if (!definition) {
continue
}
diff --git a/services/mcp/src/hono/tool-executor.ts b/services/mcp/src/hono/tool-executor.ts
index 182e5574fb0b..aa9f3efb2383 100644
--- a/services/mcp/src/hono/tool-executor.ts
+++ b/services/mcp/src/hono/tool-executor.ts
@@ -47,18 +47,16 @@ export class ToolExecutor {
}
const nameSet = new Set(state.allTools.map((t) => t.name))
- let filteredTools = this.catalog.getPreBuiltEntries().filter((e) => nameSet.has(e.name))
-
- if (state.version === 2) {
- filteredTools = filteredTools.map((entry) => {
- if (entry.name === 'execute-sql') {
- return { ...entry, description: this.instructionsBuilder.formatExecuteSqlDescription() }
- }
- return entry
- })
- }
+ const filteredTools = this.catalog.getPreBuiltEntries().filter((e) => nameSet.has(e.name))
+
+ const withSqlDescription = filteredTools.map((entry) => {
+ if (entry.name === 'execute-sql') {
+ return { ...entry, description: this.instructionsBuilder.formatExecuteSqlDescription() }
+ }
+ return entry
+ })
- return { tools: filteredTools }
+ return { tools: withSqlDescription }
}
async handleToolCall(params: Record<string, unknown> | undefined, state: ResolvedState): Promise<unknown> {
diff --git a/services/mcp/src/index.ts b/services/mcp/src/index.ts
index e36f92ad6655..d59e4c34ccda 100644
--- a/services/mcp/src/index.ts
+++ b/services/mcp/src/index.ts
@@ -8,6 +8,7 @@ import {
import { RequestLogger, withLogging } from '@/lib/logging'
import { extractClientInfoFromBody } from '@/lib/mcp-client-info'
import { getPostHogClient } from '@/lib/posthog'
+import { MCP_ANALYTICS_VERSION } from '@/lib/posthog/analytics'
import { buildRedirectUrl, matchAuthServerRedirect } from '@/lib/routing'
import { hash, parseMcpMode, sanitizeHeaderValue } from '@/lib/utils'
import type { CloudRegion } from '@/tools/types'
@@ -134,7 +135,7 @@ const onCatchErrorHandler = async (
team: 'posthog_ai',
source: 'mcp_request_handler',
mcp_transport: ctx.props?.transport,
- mcp_version: ctx.props?.version,
+ mcp_version: MCP_ANALYTICS_VERSION,
has_organization_id: !!ctx.props?.organizationId,
has_project_id: !!ctx.props?.projectId,
})
diff --git a/services/mcp/src/lib/instructions-formatter.ts b/services/mcp/src/lib/instructions-formatter.ts
index 58d7e04b950e..d2eb495afac4 100644
--- a/services/mcp/src/lib/instructions-formatter.ts
+++ b/services/mcp/src/lib/instructions-formatter.ts
@@ -21,7 +21,6 @@ import COMPACT_INSTRUCTIONS from '@/templates/sections/compact-instructions.md'
import ENV_CONTEXT from '@/templates/sections/env-context.md'
import EXAMPLES from '@/templates/sections/examples.md'
import EXEC_TOOL_BLURB from '@/templates/sections/exec-tool-blurb.md'
-import LEGACY from '@/templates/sections/legacy.md'
import RETRIEVING_DATA from '@/templates/sections/retrieving-data.md'
import SCHEMA_WORKFLOW from '@/templates/sections/schema-workflow.md'
import TOOL_SEARCH from '@/templates/sections/tool-search.md'
@@ -39,24 +38,14 @@ export interface InstructionsContext {
}
/**
- * Composes MCP instruction prompts for the three client modes (legacy v1,
- * tools-mode v2, single-exec). Each mode declares an ordered list of
- * subprompts under `services/mcp/src/templates/sections/`; subprompts that
- * appear in multiple modes live in a single file, so prose can't drift.
+ * Composes MCP instruction prompts for the two client modes (tools-mode and
+ * single-exec). Each mode declares an ordered list of subprompts under
+ * `services/mcp/src/templates/sections/`; subprompts that appear in multiple
+ * modes live in a single file, so prose can't drift.
*/
export class InstructionsFormatter {
- /** Build the legacy v1 instructions string. Appends `metadata` to the legacy
- * section if provided. */
- buildV1Instructions(metadata?: string): string {
- const legacy = LEGACY.trim()
- if (!metadata) {
- return legacy
- }
- return `${legacy}\n\n${metadata}`
- }
-
/** Build the system prompt for tools-mode clients (each tool registered separately). */
- buildV2Instructions(ctx: InstructionsContext): string {
+ buildToolsInstructions(ctx: InstructionsContext): string {
return this.compose(
[
BASIC_FUNCTIONALITY,
diff --git a/services/mcp/src/lib/posthog/analytics.ts b/services/mcp/src/lib/posthog/analytics.ts
index d83035f287bd..0a345fdfa183 100644
--- a/services/mcp/src/lib/posthog/analytics.ts
+++ b/services/mcp/src/lib/posthog/analytics.ts
@@ -12,6 +12,11 @@ export enum AnalyticsEvent {
MCP_FEEDBACK_SUBMITTED = 'mcp feedback submitted',
}
+// Emitted as `$mcp_version` / `mcp_version` on analytics events. The MCP server
+// no longer branches on a request version (v2 fully rolled out); this constant
+// keeps the property stable for dashboards that already filter on it.
+export const MCP_ANALYTICS_VERSION = 2
+
export type MCPAnalyticsContext = {
organizationId?: string
projectId?: string
@@ -63,7 +68,6 @@ export type IdentityProvider = {
getRegion: () => Promise<string | undefined>
getAnalyticsContext: () => Promise<MCPAnalyticsContext | undefined>
getClientUserAgent: () => Promise<string | undefined>
- getMcpVersion: () => Promise<number | undefined>
getOAuthClientName: () => Promise<string | undefined>
getReadOnly: () => Promise<boolean | undefined>
getTransport: () => Promise<string | undefined>
@@ -144,7 +148,6 @@ async function buildEventTags(identity: IdentityProvider): Promise<Record<string
export async function buildEventProperties(identity: IdentityProvider): Promise<Record<string, unknown>> {
const [
- mcpVersion,
clientUserAgent,
mcpClientName,
mcpClientVersion,
@@ -160,7 +163,6 @@ export async function buildEventProperties(identity: IdentityProvider): Promise<
mcpSessionId,
mcpConversationId,
] = await Promise.all([
- identity.getMcpVersion(),
identity.getClientUserAgent(),
identity.getMcpClientName(),
identity.getMcpClientVersion(),
@@ -184,7 +186,7 @@ export async function buildEventProperties(identity: IdentityProvider): Promise<
return {
$ai_product: 'mcp',
- $mcp_version: mcpVersion,
+ $mcp_version: MCP_ANALYTICS_VERSION,
$mcp_client_user_agent: clientUserAgent,
$mcp_client_name: mcpClientName,
$mcp_client_version: mcpClientVersion,
diff --git a/services/mcp/src/lib/request-properties.ts b/services/mcp/src/lib/request-properties.ts
index 2543c9ff7720..cc105ba90f3a 100644
--- a/services/mcp/src/lib/request-properties.ts
+++ b/services/mcp/src/lib/request-properties.ts
@@ -12,7 +12,6 @@ export type RequestProperties = {
features?: string[] | undefined
tools?: string[] | undefined
region?: string | undefined
- version?: number | undefined
organizationId?: string | undefined
projectId?: string | undefined
clientUserAgent?: string | undefined
@@ -68,7 +67,6 @@ export function parseRequestProperties(
features: splitCsv(params.get('features')),
tools: splitCsv(params.get('tools')),
region: params.get('region') || undefined,
- version: Number(header(request, 'x-posthog-mcp-version') || params.get('v')) || 1,
readOnly: readOnlyRaw === 'true' || readOnlyRaw === '1' || undefined,
clientUserAgent: sanitizeHeaderValue(header(request, 'User-Agent')),
mcpConsumer: sanitizeHeaderValue(
diff --git a/services/mcp/src/mcp.ts b/services/mcp/src/mcp.ts
index 46c6b8628149..80df86d08943 100644
--- a/services/mcp/src/mcp.ts
+++ b/services/mcp/src/mcp.ts
@@ -27,10 +27,11 @@ import {
buildMCPAnalyticsGroups,
buildMCPContextProperties,
initMcpAnalytics,
+ MCP_ANALYTICS_VERSION,
McpAnalyticsInitResult,
type MCPAnalyticsContext,
} from '@/lib/posthog/analytics'
-import { type EvaluatedFlags, evaluateFeatureFlags, type FlagGroups, isFeatureFlagEnabled } from '@/lib/posthog/flags'
+import { type EvaluatedFlags, evaluateFeatureFlags, type FlagGroups } from '@/lib/posthog/flags'
import { SessionManager } from '@/lib/SessionManager'
import { StateManager } from '@/lib/StateManager'
import { formatPrompt, type McpMode, sanitizeHeaderValue } from '@/lib/utils'
@@ -67,7 +68,6 @@ export type RequestProperties = {
features?: string[]
tools?: string[]
region?: string
- version?: number
organizationId?: string
projectId?: string
clientUserAgent?: string
@@ -91,10 +91,7 @@ export type RequestProperties = {
}
export class MCP extends McpAgent<Env> {
- server = new McpServer(
- { name: MCP_SERVER_NAME, version: MCP_SERVER_VERSION },
- { instructions: instructionsFormatter.buildV1Instructions() }
- )
+ server = new McpServer({ name: MCP_SERVER_NAME, version: MCP_SERVER_VERSION }, { instructions: '' })
initialState: State = {
projectId: undefined,
@@ -121,7 +118,6 @@ export class MCP extends McpAgent<Env> {
private mcpClientVersion: string | undefined
private mcpProtocolVersion: string | undefined
private mcpMode: McpMode | undefined
- private mcpVersion: number | undefined
get requestProperties(): RequestProperties {
return this.props as RequestProperties
@@ -410,7 +406,7 @@ export class MCP extends McpAgent<Env> {
? { mcp_conversation_id: this.requestProperties.mcpConversationId }
: {}),
...(this.mcpMode ? { mcp_mode: this.mcpMode } : {}),
- ...(this.mcpVersion !== undefined ? { mcp_version: this.mcpVersion } : {}),
+ mcp_version: MCP_ANALYTICS_VERSION,
...contextProperties,
...previousContextProperties,
...properties,
@@ -564,15 +560,7 @@ export class MCP extends McpAgent<Env> {
}
async init(): Promise<void> {
- const {
- features,
- tools,
- version: clientVersion,
- organizationId,
- projectId,
- readOnly,
- mode,
- } = this.requestProperties
+ const { features, tools, organizationId, projectId, readOnly, mode } = this.requestProperties
// Resolve MCP client info before any code reads it — most importantly
// the `useSingleExec` decision below. During init() this resolves from
@@ -581,10 +569,6 @@ export class MCP extends McpAgent<Env> {
// `resolveClientInfo` is only reachable post-init.
await this.resolveClientInfo()
- // User-level flags resolve in parallel with cache seeding. Tool flags are
- // deferred until orgId is known so org-group rollouts evaluate correctly.
- const flagPromise = this.resolveVersionFlag()
-
// Seed cache with header-provided IDs before any fetches
if (organizationId) {
await this.cache.set('orgId', organizationId)
@@ -616,10 +600,9 @@ export class MCP extends McpAgent<Env> {
// rollouts evaluate against the same entities — see `buildMCPAnalyticsGroups`.
const flagAnalyticsContext = await this.getAnalyticsContextSafe(context)
const flagGroups = flagAnalyticsContext ? buildMCPAnalyticsGroups(flagAnalyticsContext) : undefined
- const toolFlagsPromise = this.resolveToolFeatureFlags(clientVersion, flagGroups)
+ const toolFlagsPromise = this.resolveToolFeatureFlags(flagGroups)
- const [flagVersion, toolFeatureFlags, _apiKey] = await Promise.all([
- flagPromise,
+ const [toolFeatureFlags, _apiKey] = await Promise.all([
toolFlagsPromise,
// Trigger OAuth introspection so the OAuth client name is cached before the useSingleExec decision below
context.stateManager.getApiKey(),
@@ -635,12 +618,7 @@ export class MCP extends McpAgent<Env> {
vendorClient: this.requestProperties.mcpVendorClient,
})
- const { useSingleExec, version } = this.resolveModeAndVersion({
- mode,
- clientProfile,
- flagVersion,
- clientVersion,
- })
+ const { useSingleExec } = this.resolveMode({ mode, clientProfile })
// Fetch group types and metadata in parallel (cache is now seeded)
const resolvedProjectId = projectId || (await this.cache.get('projectId'))
@@ -671,7 +649,6 @@ export class MCP extends McpAgent<Env> {
const allTools = await getToolsFromContext(context, {
features,
tools,
- version,
excludeTools,
readOnly,
featureFlags: toolFeatureFlags,
@@ -686,12 +663,12 @@ export class MCP extends McpAgent<Env> {
const toolInfos = allTools.map((t) => ({
name: t.name,
- category: getToolDefinition(t.name, version).category,
+ category: getToolDefinition(t.name).category,
}))
const queryToolInfos: QueryToolInfo[] = allTools
.filter((t) => t.name.startsWith('query-'))
.map((t) => {
- const def = getToolDefinition(t.name, version)
+ const def = getToolDefinition(t.name)
return {
name: t.name,
title: def.title,
@@ -718,13 +695,9 @@ export class MCP extends McpAgent<Env> {
// empty `instructions`, everything inlined in the `command` description.
let instructions = ''
if (supportsInstructions) {
- if (useSingleExec) {
- instructions = instructionsFormatter.buildExecInstructions(instructionsContext)
- } else if (version === 2) {
- instructions = instructionsFormatter.buildV2Instructions(instructionsContext)
- } else {
- instructions = instructionsFormatter.buildV1Instructions(metadata)
- }
+ instructions = useSingleExec
+ ? instructionsFormatter.buildExecInstructions(instructionsContext)
+ : instructionsFormatter.buildToolsInstructions(instructionsContext)
}
this.server = new McpServer({ name: MCP_SERVER_NAME, version: MCP_SERVER_VERSION }, { instructions })
@@ -736,17 +709,15 @@ export class MCP extends McpAgent<Env> {
registerUiAppResources(this.server, context),
])
- // execute-sql is v2-only. Swap its description with the rich SQL prompt
- // (visible via `info execute-sql` in single-exec, and as the tool's own
- // description otherwise). It folds in the HogQL/SQL intro, guidelines,
- // discovery workflow, and the truncation guidance that the base JSON
- // description carried — and it triggers the `querying-posthog-data`
- // skill more reliably than the shorter default.
- if (version === 2) {
- const sqlTool = allTools.find((t) => t.name === 'execute-sql')
- if (sqlTool) {
- sqlTool.description = formatPrompt(EXECUTE_SQL_PROMPT, { guidelines: guidelines.trim() })
- }
+ // Swap execute-sql's description with the rich SQL prompt (visible via
+ // `info execute-sql` in single-exec, and as the tool's own description
+ // otherwise). It folds in the HogQL/SQL intro, guidelines, discovery
+ // workflow, and the truncation guidance that the base JSON description
+ // carried — and it triggers the `querying-posthog-data` skill more
+ // reliably than the shorter default.
+ const sqlTool = allTools.find((t) => t.name === 'execute-sql')
+ if (sqlTool) {
+ sqlTool.description = formatPrompt(EXECUTE_SQL_PROMPT, { guidelines: guidelines.trim() })
}
// In single-exec mode, register one "posthog" tool that wraps all tools
@@ -803,9 +774,6 @@ export class MCP extends McpAgent<Env> {
getRegion: async () => (await this.cache.get('region')) ?? this.requestProperties.region,
getAnalyticsContext: async () => this.getAnalyticsContextSafe(await this.getContext()),
getClientUserAgent: async () => this.requestProperties.clientUserAgent,
- // Server-resolved version (may differ from the client-reported one because of
- // the `mcp-version-2` feature flag), so observability events line up with ours.
- getMcpVersion: async () => version,
getOAuthClientName: async () => (await this.cache.get('clientName')) || undefined,
getReadOnly: async () => readOnly,
getTransport: async () => this.requestProperties.transport,
@@ -878,10 +846,9 @@ export class MCP extends McpAgent<Env> {
}
/**
- * Decide single-exec mode and the protocol version for this connection,
- * stashing both on the instance so `trackEvent` and observability identity
- * provider can emit `mcp_mode` / `mcp_version` on every downstream event
- * without re-deriving them.
+ * Decide single-exec mode for this connection, stashing it on the instance
+ * so `trackEvent` and the observability identity provider can emit `mcp_mode`
+ * on every downstream event without re-deriving it.
*
* Single-exec is restricted to coding agents — Cursor and other clients
* that render `structuredContent` in their UI need the full per-tool roster,
@@ -893,40 +860,26 @@ export class MCP extends McpAgent<Env> {
* `x-posthog-mcp-mode` or query param `mode`) wins over the client-profile
* heuristic.
*/
- private resolveModeAndVersion(args: {
- mode: McpMode | undefined
- clientProfile: MCPClientProfile
- flagVersion: number | undefined
- clientVersion: number | undefined
- }): { useSingleExec: boolean; version: number } {
- const { mode, clientProfile, flagVersion, clientVersion } = args
+ private resolveMode(args: { mode: McpMode | undefined; clientProfile: MCPClientProfile }): {
+ useSingleExec: boolean
+ } {
+ const { mode, clientProfile } = args
const useSingleExec =
mode === 'cli' ||
(mode !== 'tools' &&
(clientProfile.isCodingAgent() ||
clientProfile.isPostHogCodeConsumer() ||
clientProfile.isVibeCodingClient()))
- const version = useSingleExec ? 2 : (flagVersion ?? clientVersion ?? 1)
this.mcpMode = useSingleExec ? 'cli' : 'tools'
- this.mcpVersion = version
- return { useSingleExec, version }
- }
-
- private async resolveVersionFlag(): Promise<number | undefined> {
- try {
- const distinctId = await this.getDistinctId()
- return (await isFeatureFlagEnabled('mcp-version-2', distinctId)) ? 2 : undefined
- } catch {
- return undefined
- }
+ return { useSingleExec }
}
- private async resolveToolFeatureFlags(version?: number, groups?: FlagGroups): Promise<EvaluatedFlags | undefined> {
+ private async resolveToolFeatureFlags(groups?: FlagGroups): Promise<EvaluatedFlags | undefined> {
try {
const { getRequiredFeatureFlags } = await import('@/tools/toolDefinitions')
- const flagKeys = getRequiredFeatureFlags(version)
+ const flagKeys = getRequiredFeatureFlags()
if (flagKeys.length === 0) {
return undefined
}
diff --git a/services/mcp/src/schema/tool-inputs.ts b/services/mcp/src/schema/tool-inputs.ts
index 51ab89b0aa9d..fc7fe0d78648 100644
--- a/services/mcp/src/schema/tool-inputs.ts
+++ b/services/mcp/src/schema/tool-inputs.ts
@@ -1,6 +1,6 @@
import { z } from 'zod'
-import { DataVisualizationNodeSchema, HogQLQuerySchema, InsightVizNodeSchema, PropertyFilter } from './query'
+import { PropertyFilter } from './query'
export const ExternalDataJobsAfterSchema = z
.string()
@@ -445,13 +445,6 @@ export const ExperimentCreateSchema = z.object({
),
})
-export const InsightGenerateHogQLFromQuestionSchema = z.object({
- question: z
- .string()
- .max(1000)
- .describe('Your natural language query describing the SQL insight (max 1000 characters).'),
-})
-
export const InsightQueryInputSchema = z.object({
insightId: z.string().describe('The insight ID or short_id to run.'),
output_format: z
@@ -486,12 +479,6 @@ export const OrganizationSetActiveSchema = z.object({
export const ProjectGetAllSchema = z.object({})
-export const ProjectEventDefinitionsSchema = z.object({
- q: z.string().optional().describe('Search query to filter event names. Only use if there are lots of events.'),
- limit: z.number().int().positive().optional(),
- offset: z.number().int().min(0).optional(),
-})
-
export const EventDefinitionUpdateInputSchema = z.object({
description: z.string().optional().describe('Description explaining when the event is triggered'),
tags: z
@@ -515,83 +502,12 @@ export const EventDefinitionUpdateSchema = z.object({
data: EventDefinitionUpdateInputSchema.describe('The event definition data to update'),
})
-export const ProjectPropertyDefinitionsInputSchema = z.object({
- type: z.enum(['event', 'person']).describe('Type of properties to get'),
- eventName: z.string().describe('Event name to filter properties by, required for event type').optional(),
- includePredefinedProperties: z.boolean().optional().describe('Whether to include predefined properties'),
- limit: z.number().int().positive().optional(),
- offset: z.number().int().min(0).optional(),
-})
-
export const ProjectSetActiveSchema = z.object({
projectId: z.number().int().positive(),
})
export const SurveyResponseCountsSchema = z.object({})
-const QueryRunQuerySchema = z.discriminatedUnion('kind', [
- InsightVizNodeSchema,
- DataVisualizationNodeSchema,
- HogQLQuerySchema,
-])
-
-export const QueryRunInputSchema = z.object({
- query: QueryRunQuerySchema,
-})
-
-export const HogQLSchemaInputSchema = z.object({
- connectionId: z
- .string()
- .optional()
- .describe(
- 'Optional id of an external data source (e.g. a Postgres or DuckDB direct-query connection). When set, returns the schema of that source instead of the ClickHouse catalog. Use external-data-sources-connections-list to discover available connection ids.'
- ),
-})
-
-export const QueryValidateInputSchema = z.object({
- query: z
- .string()
- .min(1)
- .describe(
- 'The HogQL (ClickHouse-flavored SQL) query to validate. Parsed and type-checked without executing, so there is no ClickHouse cost.'
- ),
- language: z
- .enum(['hogQL', 'hogQLExpr', 'hog', 'hogTemplate'])
- .default('hogQL')
- .describe(
- "Language to validate. Defaults to 'hogQL' (full SELECT statements). Use 'hogQLExpr' for a bare expression, 'hog' or 'hogTemplate' for Hog source."
- ),
- connectionId: z
- .string()
- .optional()
- .describe(
- 'Optional id of an external data source (e.g. a Postgres or DuckDB direct-query connection). When set, validates against that source instead of the ClickHouse catalog. Use external-data-sources-connections-list to discover available connection ids.'
- ),
-})
-
-// Entity Search
-export const EntitySearchSchema = z.object({
- query: z.string().min(1).describe('Search query to find entities by name or description'),
- entities: z
- .array(
- z.enum([
- 'insight',
- 'dashboard',
- 'experiment',
- 'feature_flag',
- 'notebook',
- 'action',
- 'cohort',
- 'event_definition',
- 'survey',
- ])
- )
- .optional()
- .describe(
- 'Entity types to search. If not specified, searches all types. Available: insight, dashboard, experiment, feature_flag, notebook, action, cohort, event_definition, survey'
- ),
-})
-
// Debug MCP UI Apps
export const DebugMcpUiAppsSchema = z.object({
message: z.string().optional().describe('Optional message to include in the debug data'),
diff --git a/services/mcp/src/templates/sections/legacy.md b/services/mcp/src/templates/sections/legacy.md
deleted file mode 100644
index efb066118b85..000000000000
--- a/services/mcp/src/templates/sections/legacy.md
+++ /dev/null
@@ -1,4 +0,0 @@
-- You are a helpful assistant that can query PostHog API.
-- If you get errors due to permissions being denied, check that you have the correct active project and that the user has access to the required project.
-- If you cannot answer the user's PostHog related request or question using other available tools in this MCP, use the 'docs-search' tool to provide information from the documentation to guide user how they can do it themselves - when doing so provide condensed instructions with links to sources.
-- The `agent-feedback` tool is available if you'd like to leave optional feedback about this MCP server (unclear tool descriptions, surprising schemas, missing capabilities, unhelpful errors, or things that worked well). It is entirely optional — skip it for routine tasks where nothing stood out. When you do use it, be specific and do not include user PII or sensitive query content. Submitting feedback is not a way to end your turn: keep working on the user's task afterward using the other available tools.
diff --git a/services/mcp/src/tools/exec.ts b/services/mcp/src/tools/exec.ts
index a02399f94a29..41ef1bebc99e 100644
--- a/services/mcp/src/tools/exec.ts
+++ b/services/mcp/src/tools/exec.ts
@@ -79,28 +79,27 @@ export function createExecInnerToolCallResolver(
}
}
-// Tools removed from v2 (single-exec) MCP. When the model attempts to call one,
-// surface a targeted redirect to the v2 replacement instead of dumping the full
-// tool catalog. Sourced from tools marked `new_mcp: false` in
-// schema/tool-definitions.json. Keep the redirect text editorial — schemas
-// don't carry "use X instead" guidance.
+// Tools that were removed from the MCP server. When the model attempts to call
+// one, surface a targeted redirect to the replacement instead of dumping the
+// full tool catalog. Keep the redirect text editorial — schemas don't carry
+// "use X instead" guidance.
const DEPRECATED_TOOL_REDIRECTS: Record<string, (allTools: Tool<ZodObjectAny>[]) => string> = {
'entity-search': () =>
- 'Tool "entity-search" was removed in MCP v2. Use "execute-sql" to search PostHog data via HogQL. Consult the `querying-posthog-data` skill for system-table patterns (system.insights, system.dashboards, system.cohorts, ...).',
+ 'Tool "entity-search" was removed. Use "execute-sql" to search PostHog data via HogQL. Consult the `querying-posthog-data` skill for system-table patterns (system.insights, system.dashboards, system.cohorts, ...).',
'event-definitions-list': () =>
- 'Tool "event-definitions-list" was removed in MCP v2. Use "read-data-schema" with input { "query": { "kind": "events" } } to list event definitions.',
+ 'Tool "event-definitions-list" was removed. Use "read-data-schema" with input { "query": { "kind": "events" } } to list event definitions.',
'properties-list': () =>
- 'Tool "properties-list" was removed in MCP v2. Use "read-data-schema": { "query": { "kind": "event_properties", "event_name": "..." } } for event properties, or { "kind": "entity_properties", "entity": "person" | "session" | "group/<n>" } for entity properties.',
+ 'Tool "properties-list" was removed. Use "read-data-schema": { "query": { "kind": "event_properties", "event_name": "..." } } for event properties, or { "kind": "entity_properties", "entity": "person" | "session" | "group/<n>" } for entity properties.',
'property-definitions': () =>
- 'Tool "property-definitions" was removed in MCP v2. Use "read-data-schema" with the appropriate kind: "event_properties", "entity_properties", or "action_properties" — see its info schema for required fields.',
+ 'Tool "property-definitions" was removed. Use "read-data-schema" with the appropriate kind: "event_properties", "entity_properties", or "action_properties" — see its info schema for required fields.',
'query-generate-hogql-from-question': () =>
- 'Tool "query-generate-hogql-from-question" was removed in MCP v2. Write the HogQL yourself and run it via "execute-sql". Consult the `querying-posthog-data` skill for HogQL patterns.',
+ 'Tool "query-generate-hogql-from-question" was removed. Write the HogQL yourself and run it via "execute-sql". Consult the `querying-posthog-data` skill for HogQL patterns.',
'query-run': (allTools) => {
const queryTools = allTools
.filter((t) => t.name.startsWith('query-'))
.map((t) => `- ${t.name}: ${t.description.split('\n')[0]}`)
.join('\n')
- return `Tool "query-run" was removed in MCP v2. Pick the typed query tool that matches your intent, or use "execute-sql" for arbitrary HogQL. Available query-* tools:\n${queryTools}`
+ return `Tool "query-run" was removed. Pick the typed query tool that matches your intent, or use "execute-sql" for arbitrary HogQL. Available query-* tools:\n${queryTools}`
},
}
diff --git a/services/mcp/src/tools/generated/ai_observability.ts b/services/mcp/src/tools/generated/ai_observability.ts
index 2040b1830be9..48ea49975f41 100644
--- a/services/mcp/src/tools/generated/ai_observability.ts
+++ b/services/mcp/src/tools/generated/ai_observability.ts
@@ -810,7 +810,6 @@ const LlmaReviewQueueGetSchema = LlmAnalyticsReviewQueuesRetrieveParams.omit({ p
const llmaReviewQueueGet = (): ToolBase<typeof LlmaReviewQueueGetSchema, WithPostHogUrl<Schemas.ReviewQueue>> => ({
name: 'llma-review-queue-get',
schema: LlmaReviewQueueGetSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof LlmaReviewQueueGetSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.ReviewQueue>({
@@ -870,7 +869,6 @@ const llmaReviewQueueItemGet = (): ToolBase<
> => ({
name: 'llma-review-queue-item-get',
schema: LlmaReviewQueueItemGetSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof LlmaReviewQueueItemGetSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.ReviewQueueItem>({
@@ -889,7 +887,6 @@ const llmaReviewQueueItemList = (): ToolBase<
> => ({
name: 'llma-review-queue-item-list',
schema: LlmaReviewQueueItemListSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof LlmaReviewQueueItemListSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.PaginatedReviewQueueItemList>({
@@ -953,7 +950,6 @@ const llmaReviewQueueList = (): ToolBase<
> => ({
name: 'llma-review-queue-list',
schema: LlmaReviewQueueListSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof LlmaReviewQueueListSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.PaginatedReviewQueueList>({
@@ -1064,7 +1060,6 @@ const llmaScoreDefinitionList = (): ToolBase<
> => ({
name: 'llma-score-definition-list',
schema: LlmaScoreDefinitionListSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof LlmaScoreDefinitionListSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.PaginatedScoreDefinitionList>({
@@ -1636,7 +1631,6 @@ const LlmaTraceReviewGetSchema = LlmAnalyticsTraceReviewsRetrieveParams.omit({ p
const llmaTraceReviewGet = (): ToolBase<typeof LlmaTraceReviewGetSchema, WithPostHogUrl<Schemas.TraceReview>> => ({
name: 'llma-trace-review-get',
schema: LlmaTraceReviewGetSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof LlmaTraceReviewGetSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.TraceReview>({
@@ -1655,7 +1649,6 @@ const llmaTraceReviewList = (): ToolBase<
> => ({
name: 'llma-trace-review-list',
schema: LlmaTraceReviewListSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof LlmaTraceReviewListSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.PaginatedTraceReviewList>({
diff --git a/services/mcp/src/tools/generated/customer_analytics.ts b/services/mcp/src/tools/generated/customer_analytics.ts
index fd896cd3dc3c..8306ed3f42c8 100644
--- a/services/mcp/src/tools/generated/customer_analytics.ts
+++ b/services/mcp/src/tools/generated/customer_analytics.ts
@@ -88,7 +88,6 @@ const AccountsListSchema = AccountsListQueryParams.extend({
const accountsList = (): ToolBase<typeof AccountsListSchema, WithPostHogUrl<Schemas.PaginatedAccountList>> => ({
name: 'accounts-list',
schema: AccountsListSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof AccountsListSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.PaginatedAccountList>({
@@ -163,7 +162,6 @@ const accountsNotebooksList = (): ToolBase<
> => ({
name: 'accounts-notebooks-list',
schema: AccountsNotebooksListSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof AccountsNotebooksListSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.PaginatedAccountNotebookList>({
@@ -183,7 +181,6 @@ const AccountsNotebooksRetrieveSchema = AccountsNotebooksRetrieveParams.omit({ p
const accountsNotebooksRetrieve = (): ToolBase<typeof AccountsNotebooksRetrieveSchema, Schemas.AccountNotebook> => ({
name: 'accounts-notebooks-retrieve',
schema: AccountsNotebooksRetrieveSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof AccountsNotebooksRetrieveSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.AccountNotebook>({
@@ -237,7 +234,6 @@ const AccountsRetrieveSchema = AccountsRetrieveParams.omit({ project_id: true })
const accountsRetrieve = (): ToolBase<typeof AccountsRetrieveSchema, Schemas.Account> => ({
name: 'accounts-retrieve',
schema: AccountsRetrieveSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof AccountsRetrieveSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.Account>({
@@ -329,7 +325,6 @@ const usageMetricsList = (): ToolBase<
> => ({
name: 'usage-metrics-list',
schema: UsageMetricsListSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof UsageMetricsListSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.PaginatedGroupUsageMetricList>({
@@ -401,7 +396,6 @@ const UsageMetricsRetrieveSchema = GroupsTypesMetricsRetrieveParams.omit({ proje
const usageMetricsRetrieve = (): ToolBase<typeof UsageMetricsRetrieveSchema, Schemas.GroupUsageMetric> => ({
name: 'usage-metrics-retrieve',
schema: UsageMetricsRetrieveSchema,
- mcpVersion: 1,
handler: async (context: Context, params: z.infer<typeof UsageMetricsRetrieveSchema>) => {
const projectId = await context.stateManager.getProjectId()
const result = await context.api.request<Schemas.GroupUsageMetric>({
diff --git a/services/mcp/src/tools/generated/query-wrappers.ts b/services/mcp/src/tools/generated/query-wrappers.ts
index 0e95fd46fa7e..f801c44f8500 100644
--- a/services/mcp/src/tools/generated/query-wrappers.ts
+++ b/services/mcp/src/tools/generated/query-wrappers.ts
@@ -1306,7 +1306,6 @@ export const GENERATED_TOOLS: Record<string, ReturnType<typeof createQueryWrappe
kind: 'TrendsQuery',
uiResourceUri: 'ui://posthog/query-results.html',
outputFormat: 'optimized',
- mcpVersion: 2,
}),
'query-funnel': createQueryWrapper({
name: 'query-funnel',
@@ -1314,7 +1313,6 @@ export const GENERATED_TOOLS: Record<string, ReturnType<typeof createQueryWrappe
kind: 'FunnelsQuery',
uiResourceUri: 'ui://posthog/query-results.html',
outputFormat: 'optimized',
- mcpVersion: 2,
}),
'query-retention': createQueryWrapper({
name: 'query-retention',
@@ -1322,7 +1320,6 @@ export const GENERATED_TOOLS: Record<string, ReturnType<typeof createQueryWrappe
kind: 'RetentionQuery',
uiResourceUri: 'ui://posthog/query-results.html',
outputFormat: 'optimized',
- mcpVersion: 2,
}),
'query-stickiness': createQueryWrapper({
name: 'query-stickiness',
@@ -1330,7 +1327,6 @@ export const GENERATED_TOOLS: Record<string, ReturnType<typeof createQueryWrappe
kind: 'StickinessQuery',
uiResourceUri: 'ui://posthog/query-results.html',
outputFormat: 'optimized',
- mcpVersion: 2,
}),
'query-paths': createQueryWrapper({
name: 'query-paths',
@@ -1338,7 +1334,6 @@ export const GENERATED_TOOLS: Record<string, ReturnType<typeof createQueryWrappe
kind: 'PathsQuery',
uiResourceUri: 'ui://posthog/query-results.html',
outputFormat: 'optimized',
- mcpVersion: 2,
}),
'query-lifecycle': createQueryWrapper({
name: 'query-lifecycle',
@@ -1346,21 +1341,18 @@ export const GENERATED_TOOLS: Record<string, ReturnType<typeof createQueryWrappe
kind: 'LifecycleQuery',
uiResourceUri: 'ui://posthog/query-results.html',
outputFormat: 'optimized',
- mcpVersion: 2,
}),
'query-llm-traces-list': createQueryWrapper({
name: 'query-llm-traces-list',
schema: AssistantTracesQuery,
kind: 'TracesQuery',
outputFormat: 'json',
- mcpVersion: 2,
}),
'query-llm-trace': createQueryWrapper({
name: 'query-llm-trace',
schema: AssistantTraceQuery,
kind: 'TraceQuery',
outputFormat: 'json',
- mcpVersion: 2,
}),
'query-trends-actors': createQueryWrapper({
name: 'query-trends-actors',
@@ -1368,7 +1360,6 @@ export const GENERATED_TOOLS: Record<string, ReturnType<typeof createQueryWrappe
kind: 'InsightActorsQuery',
uiResourceUri: 'ui://posthog/insight-actors.html',
outputFormat: 'optimized',
- mcpVersion: 2,
}),
'query-lifecycle-actors': createQueryWrapper({
name: 'query-lifecycle-actors',
@@ -1376,6 +1367,5 @@ export const GENERATED_TOOLS: Record<string, ReturnType<typeof createQueryWrappe
kind: 'InsightActorsQuery',
uiResourceUri: 'ui://posthog/insight-actors.html',
outputFormat: 'optimized',
- mcpVersion: 2,
}),
}
diff --git a/services/mcp/src/tools/generated/replay.ts b/services/mcp/src/tools/generated/replay.ts
index f6afd6ad693a..0fd6fc5aa6c8 100644
--- a/services/mcp/src/tools/generated/replay.ts
+++ b/services/mcp/src/tools/generated/replay.ts
@@ -622,6 +622,5 @@ export const GENERATED_TOOLS: Record<string, () => ToolBase<ZodObjectAny>> = {
schema: AssistantRecordingsQuery,
kind: 'RecordingsQuery',
urlPrefix: '/replay',
- mcpVersion: 2,
}),
}
diff --git a/services/mcp/src/tools/index.ts b/services/mcp/src/tools/index.ts
index f5af2269f7e9..c9aeffd9310a 100644
--- a/services/mcp/src/tools/index.ts
+++ b/services/mcp/src/tools/index.ts
@@ -1,5 +1,7 @@
import { hasScopes } from '@/lib/api'
+// AI observability
+import getLLMCosts from './aiObservability/getLLMCosts'
// Debug
import debugMcpUiApps from './debug/debugMcpUiApps'
// Experiments (hand-written — CRUD + lifecycle are codegen in generated/experiments.ts)
@@ -11,8 +13,6 @@ import submitFeedback from './feedback/submit'
import { GENERATED_TOOL_MAP } from './generated'
// Insights
import queryInsight from './insights/query'
-// AI observability
-import getLLMCosts from './aiObservability/getLLMCosts'
// Notebooks (edit is hand-written — generated CRUD lives in generated/notebooks.ts)
import notebookEdit from './notebooks/edit'
// Organizations
@@ -27,20 +27,11 @@ import {
readDataWarehouseSchema,
} from './posthogAiTools'
// Projects
-import eventDefinitions from './projects/eventDefinitions'
import getProjects from './projects/getProjects'
-import getProperties from './projects/propertyDefinitions'
import setActiveProject from './projects/setActive'
import updateEventDefinition from './projects/updateEventDefinition'
-// Query
-import generateHogQLFromQuestion from './query/generateHogQLFromQuestion'
-import queryRun from './query/run'
-import hogqlSchema from './query/schema'
-import queryValidate from './query/validate'
// Replay
import sessionRecordingSummarize from './replay/sessionRecordingSummarize'
-// Search
-import entitySearch from './search/entitySearch'
// Misc
import {
type ToolFilterOptions,
@@ -59,9 +50,7 @@ export const TOOL_MAP: Record<string, () => ToolBase<ZodObjectAny>> = {
// Projects
'projects-get': getProjects,
'switch-project': setActiveProject,
- 'event-definitions-list': eventDefinitions,
'event-definition-update': updateEventDefinition,
- 'properties-list': getProperties,
// Experiments (results is hand-written; CRUD + lifecycle are codegen)
'experiment-results-get': getExperimentResults,
@@ -71,21 +60,12 @@ export const TOOL_MAP: Record<string, () => ToolBase<ZodObjectAny>> = {
// Insights
'insight-query': queryInsight,
- // Queries
- 'query-generate-hogql-from-question': generateHogQLFromQuestion,
- 'query-run': queryRun,
- 'query-validate': queryValidate,
- 'hogql-schema': hogqlSchema,
-
// AI observability
'get-llm-total-costs-for-project': getLLMCosts,
// Notebooks
'notebook-edit': notebookEdit,
- // Search
- 'entity-search': entitySearch,
-
// Debug
'debug-mcp-ui-apps': debugMcpUiApps,
@@ -131,12 +111,8 @@ export const getToolsFromContext = async (
}
}
- // Filter tools by mcpVersion — when set, the tool is exclusive to that version
- const effectiveVersion = options?.version ?? 1
- const filteredBases = toolBases.filter((tb) => tb.mcpVersion === undefined || tb.mcpVersion === effectiveVersion)
-
- const tools: Tool<ZodObjectAny>[] = filteredBases.map((toolBase) => {
- const definition = getToolDefinition(toolBase.name, options?.version)
+ const tools: Tool<ZodObjectAny>[] = toolBases.map((toolBase) => {
+ const definition = getToolDefinition(toolBase.name)
return {
...toolBase,
title: definition.title,
diff --git a/services/mcp/src/tools/projects/eventDefinitions.ts b/services/mcp/src/tools/projects/eventDefinitions.ts
deleted file mode 100644
index af0e39d0cedd..000000000000
--- a/services/mcp/src/tools/projects/eventDefinitions.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-import type { z } from 'zod'
-
-import type { ApiEventDefinition } from '@/schema/api'
-import type { EventDefinition } from '@/schema/properties'
-import { ProjectEventDefinitionsSchema } from '@/schema/tool-inputs'
-import type { Context, ToolBase } from '@/tools/types'
-
-const schema = ProjectEventDefinitionsSchema
-
-type Params = z.infer<typeof schema>
-
-export const eventDefinitionsHandler: ToolBase<typeof schema, EventDefinition[]>['handler'] = async (
- context: Context,
- params: Params
-) => {
- const projectId = await context.stateManager.getProjectId()
-
- const eventDefsResult = await context.api.projects().eventDefinitions({
- projectId,
- search: params.q,
- limit: params.limit,
- offset: params.offset,
- })
-
- if (!eventDefsResult.success) {
- throw new Error(`Failed to get event definitions: ${eventDefsResult.error.message}`)
- }
-
- const simplifiedEvents: EventDefinition[] = eventDefsResult.data.map((def: ApiEventDefinition) => ({
- name: def.name,
- last_seen_at: def.last_seen_at,
- }))
-
- return simplifiedEvents
-}
-
-const tool = (): ToolBase<typeof schema, EventDefinition[]> => ({
- name: 'event-definitions-list',
- schema,
- handler: eventDefinitionsHandler,
-})
-
-export default tool
diff --git a/services/mcp/src/tools/projects/propertyDefinitions.ts b/services/mcp/src/tools/projects/propertyDefinitions.ts
deleted file mode 100644
index d381ed36a1a4..000000000000
--- a/services/mcp/src/tools/projects/propertyDefinitions.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import type { z } from 'zod'
-
-import type { PropertyDefinition } from '@/schema/properties'
-import { ProjectPropertyDefinitionsInputSchema } from '@/schema/tool-inputs'
-import type { Context, ToolBase } from '@/tools/types'
-
-const schema = ProjectPropertyDefinitionsInputSchema
-
-type Params = z.infer<typeof schema>
-
-export const propertyDefinitionsHandler: ToolBase<typeof schema, PropertyDefinition[]>['handler'] = async (
- context: Context,
- params: Params
-) => {
- const projectId = await context.stateManager.getProjectId()
-
- if (!params.eventName && params.type === 'event') {
- throw new Error('eventName is required for event type')
- }
-
- const propDefsResult = await context.api.projects().propertyDefinitions({
- projectId,
- eventNames: params.eventName ? [params.eventName] : undefined,
- filterByEventNames: params.type === 'event',
- isFeatureFlag: false,
- limit: params.limit,
- offset: params.offset,
- type: params.type,
- excludeCoreProperties: !params.includePredefinedProperties,
- })
-
- if (!propDefsResult.success) {
- throw new Error(`Failed to get property definitions for ${params.type}s: ${propDefsResult.error.message}`)
- }
-
- const simplifiedProperties: PropertyDefinition[] = propDefsResult.data.map(
- (def: { name: string; property_type?: string | null }) => ({
- name: def.name,
- property_type: def.property_type,
- })
- )
-
- return simplifiedProperties
-}
-
-const tool = (): ToolBase<typeof schema, PropertyDefinition[]> => ({
- name: 'properties-list',
- schema,
- handler: propertyDefinitionsHandler,
-})
-
-export default tool
diff --git a/services/mcp/src/tools/query-wrapper-factory.ts b/services/mcp/src/tools/query-wrapper-factory.ts
index dd8420381c32..dacff8495dcc 100644
--- a/services/mcp/src/tools/query-wrapper-factory.ts
+++ b/services/mcp/src/tools/query-wrapper-factory.ts
@@ -21,8 +21,6 @@ interface QueryWrapperConfig<T extends ZodObjectAny> {
outputFormat?: 'optimized' | 'json'
/** When set, `_posthogUrl` uses `{baseUrl}{urlPrefix}` instead of `/insights/new#q=...`. */
urlPrefix?: string
- /** When set, the tool is only available in this MCP version (1 = v1 only, 2 = v2 only). */
- mcpVersion?: number
}
function buildInsightUrl(
@@ -42,7 +40,6 @@ export function createQueryWrapper<T extends ZodObjectAny>(config: QueryWrapperC
return () => ({
name: config.name,
schema: config.schema,
- ...(config.mcpVersion !== undefined ? { mcpVersion: config.mcpVersion } : {}),
handler: async (context: Context, rawParams: z.infer<T>) => {
const projectId = await context.stateManager.getProjectId()
const params = config.schema.parse(rawParams)
diff --git a/services/mcp/src/tools/query/generateHogQLFromQuestion.ts b/services/mcp/src/tools/query/generateHogQLFromQuestion.ts
deleted file mode 100644
index a1801d5ce90b..000000000000
--- a/services/mcp/src/tools/query/generateHogQLFromQuestion.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-import type { z } from 'zod'
-
-import { InsightGenerateHogQLFromQuestionSchema } from '@/schema/tool-inputs'
-import type { Context, ToolBase } from '@/tools/types'
-
-const schema = InsightGenerateHogQLFromQuestionSchema
-
-type Params = z.infer<typeof schema>
-
-type Result = { content: Array<{ type: string; text: string }> } | unknown[]
-
-export const generateHogQLHandler: ToolBase<typeof schema, Result>['handler'] = async (
- context: Context,
- params: Params
-) => {
- const { question } = params
- const projectId = await context.stateManager.getProjectId()
-
- const result = await context.api.insights({ projectId }).sqlInsight({ query: question })
-
- if (!result.success) {
- throw new Error(`Failed to execute SQL insight: ${result.error.message}`)
- }
-
- if (result.data.length === 0) {
- return {
- content: [
- {
- type: 'text',
- text: 'Received an empty SQL insight or no data in the stream.',
- },
- ],
- }
- }
- return result.data
-}
-
-const tool = (): ToolBase<typeof schema, Result> => ({
- name: 'query-generate-hogql-from-question',
- schema,
- handler: generateHogQLHandler,
-})
-
-export default tool
diff --git a/services/mcp/src/tools/query/hogql-error-format.ts b/services/mcp/src/tools/query/hogql-error-format.ts
deleted file mode 100644
index 7a6278a7b495..000000000000
--- a/services/mcp/src/tools/query/hogql-error-format.ts
+++ /dev/null
@@ -1,77 +0,0 @@
-import { PostHogValidationError } from '@/lib/errors'
-
-interface HogQLNotice {
- message: string
- start?: number | null
- end?: number | null
- fix?: string | null
-}
-
-interface HogQLMetadataPayload {
- isValid?: boolean
- query?: string
- errors?: HogQLNotice[]
- warnings?: HogQLNotice[]
- notices?: HogQLNotice[]
- table_names?: string[]
- ch_table_names?: string[]
-}
-
-/**
- * Pulls the structured `hogql_metadata` blob off a PostHog validation error's
- * `extra` bag, if present. The backend attaches it on any failed HogQL query
- * so callers can surface positions, table refs, and fix hints to agents
- * instead of a bare detail string.
- */
-export function extractHogQLMetadata(error: unknown): HogQLMetadataPayload | undefined {
- if (!(error instanceof PostHogValidationError) || !error.extra) {
- return undefined
- }
- const payload = error.extra['hogql_metadata']
- if (!payload || typeof payload !== 'object') {
- return undefined
- }
- return payload as HogQLMetadataPayload
-}
-
-function formatNotice(notice: HogQLNotice): string {
- const parts: string[] = [notice.message]
- if (typeof notice.start === 'number' && typeof notice.end === 'number') {
- parts.push(`(chars ${notice.start}-${notice.end})`)
- }
- if (notice.fix) {
- parts.push(`— fix: ${notice.fix}`)
- }
- return parts.join(' ')
-}
-
-/**
- * Renders a multi-line string for a HogQL failure that an agent can read
- * directly. Safe to call with `undefined`: returns an empty string in that
- * case so callers can append unconditionally.
- */
-export function formatHogQLMetadataForAgent(metadata: HogQLMetadataPayload | undefined): string {
- if (!metadata) {
- return ''
- }
-
- const sections: string[] = []
-
- if (metadata.errors && metadata.errors.length > 0) {
- sections.push('HogQL errors:\n' + metadata.errors.map((e) => ` - ${formatNotice(e)}`).join('\n'))
- }
-
- if (metadata.warnings && metadata.warnings.length > 0) {
- sections.push('Warnings:\n' + metadata.warnings.map((w) => ` - ${formatNotice(w)}`).join('\n'))
- }
-
- if (metadata.notices && metadata.notices.length > 0) {
- sections.push('Notices:\n' + metadata.notices.map((n) => ` - ${formatNotice(n)}`).join('\n'))
- }
-
- if (metadata.table_names && metadata.table_names.length > 0) {
- sections.push(`Tables referenced: ${metadata.table_names.join(', ')}`)
- }
-
- return sections.join('\n\n')
-}
diff --git a/services/mcp/src/tools/query/run.ts b/services/mcp/src/tools/query/run.ts
deleted file mode 100644
index 13245470b613..000000000000
--- a/services/mcp/src/tools/query/run.ts
+++ /dev/null
@@ -1,81 +0,0 @@
-import type { z } from 'zod'
-
-import type { DataWarehouseSyncWarning } from '@/api/client'
-import { withUiApp } from '@/resources/ui-apps'
-import { QueryRunInputSchema } from '@/schema/tool-inputs'
-import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'
-import type { Context, ToolBase } from '@/tools/types'
-
-import { analyzeQuery } from '../shared'
-import { extractHogQLMetadata, formatHogQLMetadataForAgent } from './hogql-error-format'
-
-const schema = QueryRunInputSchema
-
-type Params = z.infer<typeof schema>
-
-type Result = WithPostHogUrl<{ query: unknown; results: unknown; warnings?: DataWarehouseSyncWarning[] }>
-
-export const queryRunHandler: ToolBase<typeof schema, Result>['handler'] = async (context: Context, params: Params) => {
- const { query } = params
-
- const projectId = await context.stateManager.getProjectId()
-
- const queryResult = await context.api.insights({ projectId }).query({
- query: query,
- })
-
- if (!queryResult.success) {
- const metadata = extractHogQLMetadata(queryResult.error)
- const metadataBlock = formatHogQLMetadataForAgent(metadata)
- const suffix = metadataBlock ? `\n\n${metadataBlock}` : ''
- throw new Error(`Failed to query insight: ${queryResult.error.message}${suffix}`)
- }
-
- const queryParam = encodeURIComponent(JSON.stringify(query))
- const path = `/insights/new#q=${queryParam}`
-
- const queryInfo = analyzeQuery(query)
-
- // Format results based on the query type
- // TrendsQuery, FunnelsQuery, and PathsQuery return results directly as an array
- // HogQLQuery returns { results: [...], columns: [...] }
- // The UI app infers the visualization type from the data structure
- const warningsField = queryResult.data.warnings?.length ? { warnings: queryResult.data.warnings } : {}
-
- if (
- queryInfo.visualization === 'trends' ||
- queryInfo.visualization === 'funnel' ||
- queryInfo.visualization === 'paths'
- ) {
- return withPostHogUrl(
- context,
- {
- query: queryInfo.innerQuery || query,
- results: queryResult.data.results,
- ...warningsField,
- },
- path
- )
- }
-
- // HogQL/table results have columns and results arrays
- return withPostHogUrl(
- context,
- {
- query,
- results: {
- columns: queryResult.data.columns || [],
- results: queryResult.data.results || [],
- },
- ...warningsField,
- },
- path
- )
-}
-
-export default (): ToolBase<typeof schema, Result> =>
- withUiApp('query-results', {
- name: 'query-run',
- schema,
- handler: queryRunHandler,
- })
diff --git a/services/mcp/src/tools/query/schema.ts b/services/mcp/src/tools/query/schema.ts
deleted file mode 100644
index f031a90c48a5..000000000000
--- a/services/mcp/src/tools/query/schema.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-import type { z } from 'zod'
-
-import { HogQLSchemaInputSchema } from '@/schema/tool-inputs'
-import type { Context, ToolBase } from '@/tools/types'
-
-const schema = HogQLSchemaInputSchema
-
-type Params = z.infer<typeof schema>
-
-interface DatabaseSchemaField {
- name: string
- hogql_value: string
- type: string
- schema_valid: boolean
- chain?: Array<string | number> | null
- fields?: string[] | null
- table?: string | null
- id?: string | null
-}
-
-interface DatabaseSchemaTable {
- name: string
- type: string
- id?: string
- fields: Record<string, DatabaseSchemaField>
-}
-
-interface DataWarehouseViewLink {
- id: string
- source_table_name?: string | null
- source_table_key?: string | null
- joining_table_name?: string | null
- joining_table_key?: string | null
- field_name?: string | null
- created_at?: string | null
-}
-
-interface SchemaResult {
- tables: Record<string, DatabaseSchemaTable>
- joins: DataWarehouseViewLink[]
-}
-
-export const hogqlSchemaHandler: ToolBase<typeof schema, SchemaResult>['handler'] = async (
- context: Context,
- params: Params
-) => {
- const { connectionId } = params
- const projectId = await context.stateManager.getProjectId()
- const queryBody: Record<string, unknown> = { kind: 'DatabaseSchemaQuery' }
- if (connectionId) {
- queryBody.connectionId = connectionId
- }
- const result = await context.api.insights({ projectId }).query({ query: queryBody })
- if (!result.success) {
- throw new Error(`Failed to fetch HogQL schema: ${result.error.message}`)
- }
- return result.data as unknown as SchemaResult
-}
-
-const tool = (): ToolBase<typeof schema, SchemaResult> => ({
- name: 'hogql-schema',
- schema,
- handler: hogqlSchemaHandler,
-})
-
-export default tool
diff --git a/services/mcp/src/tools/query/validate.ts b/services/mcp/src/tools/query/validate.ts
deleted file mode 100644
index 8159cb1b8f59..000000000000
--- a/services/mcp/src/tools/query/validate.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-import type { z } from 'zod'
-
-import { QueryValidateInputSchema } from '@/schema/tool-inputs'
-import type { Context, ToolBase } from '@/tools/types'
-
-const schema = QueryValidateInputSchema
-
-type Params = z.infer<typeof schema>
-
-interface Notice {
- message: string
- start?: number | null
- end?: number | null
- fix?: string | null
-}
-
-interface ValidateResult {
- isValid: boolean
- query: string
- errors: Notice[]
- warnings: Notice[]
- notices: Notice[]
- table_names: string[]
- ch_table_names?: string[] | null
-}
-
-export const queryValidateHandler: ToolBase<typeof schema, ValidateResult>['handler'] = async (
- context: Context,
- params: Params
-) => {
- const { query, language, connectionId } = params
-
- const projectId = await context.stateManager.getProjectId()
-
- const result = await context.api.insights({ projectId }).validate({ query, language, connectionId })
-
- if (!result.success) {
- throw new Error(`Failed to validate query: ${result.error.message}`)
- }
-
- const data = result.data
- return {
- isValid: data.isValid,
- query: data.query ?? query,
- errors: data.errors ?? [],
- warnings: data.warnings ?? [],
- notices: data.notices ?? [],
- table_names: data.table_names ?? [],
- ch_table_names: data.ch_table_names ?? null,
- }
-}
-
-const tool = (): ToolBase<typeof schema, ValidateResult> => ({
- name: 'query-validate',
- schema,
- handler: queryValidateHandler,
-})
-
-export default tool
diff --git a/services/mcp/src/tools/search/entitySearch.ts b/services/mcp/src/tools/search/entitySearch.ts
deleted file mode 100644
index 6744f358e9ce..000000000000
--- a/services/mcp/src/tools/search/entitySearch.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-import type { z } from 'zod'
-
-import type { SearchResult, SearchableEntity } from '@/api/client'
-import { EntitySearchSchema } from '@/schema/tool-inputs'
-import type { Context, ToolBase } from '@/tools/types'
-
-const schema = EntitySearchSchema
-
-type Params = z.infer<typeof schema>
-
-// Map entity types to their URL paths in PostHog
-const ENTITY_URL_PATHS: Record<string, string> = {
- insight: 'insights',
- dashboard: 'dashboard',
- experiment: 'experiments',
- feature_flag: 'feature_flags',
- notebook: 'notebooks',
- action: 'data-management/actions',
- cohort: 'cohorts',
- event_definition: 'data-management/events',
- survey: 'surveys',
-}
-
-type Result = { results: (SearchResult & { url: string })[]; counts: unknown }
-
-export const entitySearchHandler: ToolBase<typeof schema, Result>['handler'] = async (
- context: Context,
- params: Params
-) => {
- const projectId = await context.stateManager.getProjectId()
-
- const result = await context.api.search({ projectId }).query({
- query: params.query,
- entities: params.entities as SearchableEntity[] | undefined,
- })
-
- if (!result.success) {
- throw new Error(`Failed to search entities: ${result.error.message}`)
- }
-
- // Enrich results with URLs
- const resultsWithUrls = result.data.results.map((item: SearchResult) => {
- const urlPath = ENTITY_URL_PATHS[item.type] || item.type
- return {
- ...item,
- url: `${context.api.getProjectBaseUrl(projectId)}/${urlPath}/${item.result_id}`,
- }
- })
-
- return {
- results: resultsWithUrls,
- counts: result.data.counts,
- }
-}
-
-const tool = (): ToolBase<typeof schema, Result> => ({
- name: 'entity-search',
- schema,
- handler: entitySearchHandler,
-})
-
-export default tool
diff --git a/services/mcp/src/tools/search/index.ts b/services/mcp/src/tools/search/index.ts
deleted file mode 100644
index 37c4b7d401ef..000000000000
--- a/services/mcp/src/tools/search/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default as entitySearch } from './entitySearch'
diff --git a/services/mcp/src/tools/toolDefinitions.ts b/services/mcp/src/tools/toolDefinitions.ts
index bdf5e1d514d4..97aac5d92ff0 100644
--- a/services/mcp/src/tools/toolDefinitions.ts
+++ b/services/mcp/src/tools/toolDefinitions.ts
@@ -3,7 +3,6 @@ import z from 'zod'
import type { EvaluatedFlags } from '@/lib/posthog/flags'
import generatedToolDefinitionsJson from '../../schema/generated-tool-definitions.json'
-import toolDefinitionsV2Json from '../../schema/tool-definitions-v2.json'
import toolDefinitionsJson from '../../schema/tool-definitions.json'
export const ToolDefinitionSchema = z
@@ -14,7 +13,6 @@ export const ToolDefinitionSchema = z
summary: z.string(),
title: z.string(),
required_scopes: z.array(z.string()),
- new_mcp: z.boolean().optional(),
requires_ai_consent: z.boolean().optional(),
/** PostHog feature flag key that gates this tool. */
feature_flag: z.string().optional(),
@@ -50,8 +48,7 @@ export type ToolDefinitions = Record<string, ToolDefinition>
const toolDefinitionsSchema = z.record(z.string(), ToolDefinitionSchema)
-let _toolDefinitionsV1: ToolDefinitions | undefined = undefined
-let _toolDefinitionsV2: ToolDefinitions | undefined = undefined
+let _toolDefinitions: ToolDefinitions | undefined = undefined
let _generatedToolDefinitions: ToolDefinitions | undefined = undefined
function getGeneratedToolDefinitions(): ToolDefinitions {
@@ -61,26 +58,16 @@ function getGeneratedToolDefinitions(): ToolDefinitions {
return _generatedToolDefinitions
}
-export function getToolDefinitions(version?: number): ToolDefinitions {
+export function getToolDefinitions(): ToolDefinitions {
const generated = getGeneratedToolDefinitions()
-
- if (version === 2) {
- if (!_toolDefinitionsV2) {
- const base = toolDefinitionsSchema.parse(toolDefinitionsJson)
- const new_tools = toolDefinitionsSchema.parse(toolDefinitionsV2Json)
- _toolDefinitionsV2 = { ...new_tools, ...base }
- }
- return { ..._toolDefinitionsV2, ...generated }
- }
-
- if (!_toolDefinitionsV1) {
- _toolDefinitionsV1 = toolDefinitionsSchema.parse(toolDefinitionsJson)
+ if (!_toolDefinitions) {
+ _toolDefinitions = toolDefinitionsSchema.parse(toolDefinitionsJson)
}
- return { ..._toolDefinitionsV1, ...generated }
+ return { ..._toolDefinitions, ...generated }
}
-export function getToolDefinition(toolName: string, version?: number): ToolDefinition {
- const toolDefinitions = getToolDefinitions(version)
+export function getToolDefinition(toolName: string): ToolDefinition {
+ const toolDefinitions = getToolDefinitions()
const definition = toolDefinitions[toolName]
@@ -94,7 +81,6 @@ export function getToolDefinition(toolName: string, version?: number): ToolDefin
export interface ToolFilterOptions {
features?: string[] | undefined
tools?: string[] | undefined
- version?: number | undefined
excludeTools?: string[] | undefined
readOnly?: boolean | undefined
aiConsentGiven?: boolean | undefined
@@ -112,8 +98,8 @@ export interface ToolFilterOptions {
* Collect all distinct feature flag keys referenced by tool definitions.
* Used at init time to batch-evaluate flags before filtering tools.
*/
-export function getRequiredFeatureFlags(version?: number): string[] {
- const toolDefinitions = getToolDefinitions(version)
+export function getRequiredFeatureFlags(): string[] {
+ const toolDefinitions = getToolDefinitions()
const flags = new Set<string>()
for (const definition of Object.values(toolDefinitions)) {
if (definition.feature_flag) {
@@ -153,16 +139,11 @@ export function toolPassesFlagGate(definition: ToolDefinition, featureFlags: Eva
}
export function getToolsForFeatures(options?: ToolFilterOptions): string[] {
- const { features, tools, version, readOnly, aiConsentGiven, featureFlags, scopedTeams } = options || {}
- const toolDefinitions = getToolDefinitions(version)
+ const { features, tools, readOnly, aiConsentGiven, featureFlags, scopedTeams } = options || {}
+ const toolDefinitions = getToolDefinitions()
let entries = Object.entries(toolDefinitions)
- // Filter out tools that are not supported in new MCP
- if (version === 2) {
- entries = entries.filter(([_, definition]) => definition.new_mcp !== false)
- }
-
// Filter by features and/or tools allowlist (OR union).
// When both are provided, a tool is included if it matches a feature category OR is in the tools list.
// Normalize hyphens to underscores so that both "error-tracking" and "error_tracking" match.
diff --git a/services/mcp/src/tools/types.ts b/services/mcp/src/tools/types.ts
index a1d16338d0f0..a2f9c0fcfea0 100644
--- a/services/mcp/src/tools/types.ts
+++ b/services/mcp/src/tools/types.ts
@@ -120,8 +120,6 @@ export type ToolBase<TSchema extends z.ZodType = z.ZodType, TResult = unknown> =
'title' | 'description' | 'scopes' | 'annotations'
> & {
_meta?: ToolMeta
- /** When set, the tool is only available in this MCP version (1 = v1 only, 2 = v2 only). */
- mcpVersion?: number
}
export type ZodObjectAny = z.ZodType<any>
diff --git a/services/mcp/tests/hono/analytics.test.ts b/services/mcp/tests/hono/analytics.test.ts
index 954742c518d9..7923525e6f1b 100644
--- a/services/mcp/tests/hono/analytics.test.ts
+++ b/services/mcp/tests/hono/analytics.test.ts
@@ -22,7 +22,6 @@ function makeState(overrides: Partial<ResolvedState> = {}): ResolvedState {
context: {
stateManager: {},
} as any,
- version: 2,
useSingleExec: true,
toolFeatureFlags: undefined,
apiKeyScopes: [],
diff --git a/services/mcp/tests/hono/request-state-resolver.test.ts b/services/mcp/tests/hono/request-state-resolver.test.ts
index cbad64b66530..8f6818ec3ff6 100644
--- a/services/mcp/tests/hono/request-state-resolver.test.ts
+++ b/services/mcp/tests/hono/request-state-resolver.test.ts
@@ -80,7 +80,6 @@ function makeProps(overrides: Partial<RequestProperties> = {}): RequestPropertie
projectId: '1',
requestStartTime: Date.now(),
transport: 'streamable-http',
- version: 1,
...overrides,
}
}
diff --git a/services/mcp/tests/hono/session-mode-pool.test.ts b/services/mcp/tests/hono/session-mode-pool.test.ts
index faac1eea40c9..3966bd74beb7 100644
--- a/services/mcp/tests/hono/session-mode-pool.test.ts
+++ b/services/mcp/tests/hono/session-mode-pool.test.ts
@@ -6,22 +6,13 @@
// `tools/call` carrying a different vendor must NOT flip the resolved
// mode/version.
//
-// To probe the resolved mode DIRECTLY via a `tools/call` (the user flow
-// under test) we exploit tools that are gated by `mcpVersion` in the catalog.
-// The state resolver filters `state.allTools` by the resolved `version`
-// (`tool-catalog.ts:161-163`), and `handleToolCall` returns the guard
-// "Tool <name> not found" (`tool-executor.ts:78-80`) when the requested
-// tool is absent from `state.allTools`.
-//
-// cli mode pins `version=2`. A v2-only tool (e.g. `query-session-recordings-list`)
-// is present iff this request resolved to v2; a v1-only tool
-// (e.g. `accounts-list`) is absent iff this request resolved to v2.
-//
-// If cli mode survives the vendor flip on the pooled session, calling the
-// v2-only tool dispatches (any non-"not found" response) and calling the
-// v1-only tool returns the missing-tool guard. If mode flipped to v1, both
-// outcomes reverse. That's a direct observable for "the resolved mode at
-// headers_2 equals the resolved mode at headers_1".
+// To probe the resolved mode DIRECTLY we issue a raw `tools/list` on the pooled
+// session: cli (single-exec) mode collapses the wire roster to a single `exec`
+// tool, while tools mode exposes the full multi-tool roster. If cli mode
+// survives the vendor flip, a `tools/list` carrying the flipped vendor still
+// returns just `[exec]`; if mode flipped to tools, it would return the full
+// roster. That's a direct observable for "the resolved mode at headers_2 equals
+// the resolved mode at headers_1".
import { Client } from '@modelcontextprotocol/sdk/client/index.js'
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'
import { setupServer } from 'msw/node'
@@ -65,10 +56,6 @@ let app: ReturnType<typeof createApp>['app']
const TOKEN = 'phx_session_mode_pool_test'
const BASE_URL = new URL('http://hono.test')
-// Tools chosen as version-specific probes (see file header for rationale).
-const V1_ONLY_TOOL = 'accounts-list'
-const V2_ONLY_TOOL = 'query-session-recordings-list'
-
beforeAll(async () => {
process.env.TEST = '1'
process.env.MCP_APPS_BASE_URL = 'https://apps.test'
@@ -89,11 +76,11 @@ const fetchViaApp: typeof fetch = async (input, init) => {
type ConnectableTransport = Parameters<Client['connect']>[0]
-interface ToolCallResponse {
- result?: { content?: Array<{ type: string; text: string }>; isError?: boolean }
+interface ToolsListResponse {
+ result?: { tools?: Array<{ name: string }> }
}
-async function callToolOnSession(sessionId: string, vendorClient: string, toolName: string): Promise<ToolCallResponse> {
+async function listToolsOnSession(sessionId: string, vendorClient: string): Promise<Array<{ name: string }>> {
const res = await fetchViaApp(new URL('/mcp', BASE_URL), {
method: 'POST',
headers: {
@@ -105,17 +92,14 @@ async function callToolOnSession(sessionId: string, vendorClient: string, toolNa
},
body: JSON.stringify({
jsonrpc: '2.0',
- id: 'pool-tools-call',
- method: 'tools/call',
- params: { name: toolName, arguments: {} },
+ id: 'pool-tools-list',
+ method: 'tools/list',
+ params: {},
}),
})
expect(res.status).toBe(200)
- return (await res.json()) as ToolCallResponse
-}
-
-function firstText(resp: ToolCallResponse): string {
- return resp.result?.content?.[0]?.text ?? ''
+ const json = (await res.json()) as ToolsListResponse
+ return json.result?.tools ?? []
}
describe('Resolved mode is preserved across pooled-transport vendor flips', () => {
@@ -153,20 +137,13 @@ describe('Resolved mode is preserved across pooled-transport vendor flips', () =
expect(cachedTools.tools[0]!.name).toBe('exec')
// headers_2 — pool member with a non-coding-agent vendor. If the
- // resolver re-derives mode from the live request, `vendorClient='ClaudeAI'`
+ // resolver re-derived mode from the live request, `vendorClient='ClaudeAI'`
// + cached `clientName='Anthropic/ClaudeAI'` both miss the coding-agent
- // fragments -> resolves to tools mode (v1) -> the v2-only tool falls out
- // of `state.allTools` and the dispatcher returns "not found". With the
- // initial vendor hint cached, the request stays at v2 and the v2-only
- // tool dispatches.
- const probe = await callToolOnSession(sessionId!, 'ClaudeAI', V2_ONLY_TOOL)
- expect(firstText(probe)).not.toMatch(new RegExp(`Tool ${V2_ONLY_TOOL} not found`, 'i'))
-
- // Symmetric negative probe: a v1-only tool must STILL be absent under
- // the preserved cli/v2 mode.
- const negative = await callToolOnSession(sessionId!, 'ClaudeAI', V1_ONLY_TOOL)
- expect(negative.result?.isError).toBe(true)
- expect(firstText(negative)).toMatch(new RegExp(`Tool ${V1_ONLY_TOOL} not found`, 'i'))
+ // fragments -> resolves to tools mode -> a `tools/list` would expose the
+ // full multi-tool roster. With the initial vendor hint cached, the request
+ // stays in cli mode and the roster still collapses to a single `exec`.
+ const pooledRoster = await listToolsOnSession(sessionId!, 'ClaudeAI')
+ expect(pooledRoster.map((t) => t.name)).toEqual(['exec'])
await clientA.close()
})
diff --git a/services/mcp/tests/hono/tool-executor-metrics.test.ts b/services/mcp/tests/hono/tool-executor-metrics.test.ts
index f6c6e59214ff..c600fb648efc 100644
--- a/services/mcp/tests/hono/tool-executor-metrics.test.ts
+++ b/services/mcp/tests/hono/tool-executor-metrics.test.ts
@@ -59,7 +59,6 @@ function makeState(tools: { name: string }[], overrides: Partial<ResolvedState>
getDistinctId: vi.fn(),
trackEvent: vi.fn(),
} as any,
- version: 1,
useSingleExec: false,
toolFeatureFlags: undefined,
apiKeyScopes: [],
@@ -165,7 +164,7 @@ describe('ToolExecutor metrics', () => {
function execState(): ResolvedState {
return makeState(
catalog.getPreBuiltEntries().map((e) => ({ name: e.name })),
- { useSingleExec: true, version: 2 }
+ { useSingleExec: true }
)
}
diff --git a/services/mcp/tests/hono/tool-executor.test.ts b/services/mcp/tests/hono/tool-executor.test.ts
index 80f11f0cf163..59b4433362df 100644
--- a/services/mcp/tests/hono/tool-executor.test.ts
+++ b/services/mcp/tests/hono/tool-executor.test.ts
@@ -33,7 +33,6 @@ function makeState(tools: { name: string }[], overrides: Partial<ResolvedState>
getDistinctId: vi.fn(),
trackEvent: vi.fn(),
} as any,
- version: 1,
useSingleExec: false,
toolFeatureFlags: undefined,
apiKeyScopes: [],
@@ -123,12 +122,12 @@ describe('ToolExecutor', () => {
it('accepts cached exec calls even when the current session is in tools mode', async () => {
const filteredTools = catalog
- .getFilteredTools({ version: 2, scopes: ['*'] })
+ .getFilteredTools({ scopes: ['*'] })
.filter((tool) => tool.name === 'execute-sql' || tool.name === 'organization-get')
const result = (await executor.handleToolCall(
{ name: 'exec', arguments: { command: 'tools' } },
- makeState(filteredTools, { useSingleExec: false, version: 2 })
+ makeState(filteredTools, { useSingleExec: false })
)) as any
expect(result.isError).toBeFalsy()
@@ -161,7 +160,7 @@ describe('ToolExecutor', () => {
.getPreBuiltEntries()
.slice(0, 5)
.map((e) => ({ name: e.name })),
- { useSingleExec: true, version: 2 }
+ { useSingleExec: true }
)
const result = await executor.handleToolsList(state)
diff --git a/services/mcp/tests/tools/projects.integration.test.ts b/services/mcp/tests/tools/projects.integration.test.ts
index d86ed073eaa8..5b074e2d88b9 100644
--- a/services/mcp/tests/tools/projects.integration.test.ts
+++ b/services/mcp/tests/tools/projects.integration.test.ts
@@ -12,9 +12,7 @@ import {
setActiveProjectAndOrg,
validateEnvironmentVariables,
} from '@/shared/test-utils'
-import eventDefinitionsTool from '@/tools/projects/eventDefinitions'
import getProjectsTool from '@/tools/projects/getProjects'
-import propertyDefinitionsTool from '@/tools/projects/propertyDefinitions'
import setActiveProjectTool from '@/tools/projects/setActive'
import updateEventDefinitionTool from '@/tools/projects/updateEventDefinition'
import type { Context } from '@/tools/types'
@@ -79,189 +77,6 @@ describe('Projects', { concurrent: false }, () => {
})
})
- describe('properties-list tool', () => {
- const propertyDefsTool = propertyDefinitionsTool()
-
- it('should get property definitions for a specific event', async () => {
- const result = await propertyDefsTool.handler(context, {
- type: 'event',
- eventName: '$pageview',
- })
- const propertyDefs = parseToolResponse(result)
-
- expect(Array.isArray(propertyDefs)).toBe(true)
- })
-
- it('should return property definitions with proper structure', async () => {
- const result = await propertyDefsTool.handler(context, {
- type: 'event',
- eventName: '$pageview',
- })
- const propertyDefs = parseToolResponse(result)
-
- if (propertyDefs.length > 0) {
- const prop = propertyDefs[0]
- expect(prop).toHaveProperty('name')
- expect(prop).toHaveProperty('property_type')
- expect(typeof prop.name).toBe('string')
- // property_type can be a string or null
- expect(['string', 'object', 'undefined'].includes(typeof prop.property_type)).toBe(true)
- }
- })
-
- it('should handle invalid event names gracefully', async () => {
- try {
- const result = await propertyDefsTool.handler(context, {
- type: 'event',
- eventName: `non-existent-event-${uuidv4()}`,
- })
- const propertyDefs = parseToolResponse(result)
- expect(Array.isArray(propertyDefs)).toBe(true)
- } catch (error) {
- expect(error).toBeInstanceOf(Error)
- }
- })
-
- it('should get property definitions for persons', async () => {
- const result = await propertyDefsTool.handler(context, {
- type: 'person',
- })
- const propertyDefs = parseToolResponse(result)
- expect(Array.isArray(propertyDefs)).toBe(true)
- expect(propertyDefs.length).toBeGreaterThan(0)
- })
-
- it('should respect limit parameter', async () => {
- const result = await propertyDefsTool.handler(context, {
- type: 'event',
- eventName: '$pageview',
- limit: 5,
- })
- const propertyDefs = parseToolResponse(result)
- expect(propertyDefs.length).toBeLessThanOrEqual(5)
- })
-
- it('should respect offset parameter', async () => {
- const allResult = await propertyDefsTool.handler(context, {
- type: 'person',
- limit: 10,
- })
- const allProps = parseToolResponse(allResult)
-
- if (allProps.length > 1) {
- const offsetResult = await propertyDefsTool.handler(context, {
- type: 'person',
- limit: 10,
- offset: 1,
- })
- const offsetProps = parseToolResponse(offsetResult)
- // Verify offset is working by checking first result is different from original first result
- expect(offsetProps[0].name).not.toBe(allProps[0].name)
- }
- })
-
- it('should use default limit when not specified', async () => {
- const result = await propertyDefsTool.handler(context, {
- type: 'person',
- })
- const propertyDefs = parseToolResponse(result)
- expect(propertyDefs.length).toBeLessThanOrEqual(50)
- })
- })
-
- describe('event-definitions-list tool', () => {
- const eventDefsTool = eventDefinitionsTool()
-
- it('should list all event definitions for active project', async () => {
- const result = await eventDefsTool.handler(context, {})
- const eventDefs = parseToolResponse(result)
-
- expect(Array.isArray(eventDefs)).toBe(true)
- })
-
- it('should return event definitions with proper structure', async () => {
- const result = await eventDefsTool.handler(context, {})
- const eventDefs = parseToolResponse(result)
-
- if (eventDefs.length > 0) {
- const eventDef = eventDefs[0]
- expect(eventDef).toHaveProperty('name')
- expect(eventDef).toHaveProperty('last_seen_at')
- expect(typeof eventDef.name).toBe('string')
- }
- })
-
- it('should include common events like $pageview', async () => {
- const result = await eventDefsTool.handler(context, {})
- const eventDefs = parseToolResponse(result)
-
- const pageviewEvent = eventDefs.find((event: any) => event.name === '$pageview')
- if (eventDefs.length > 0) {
- expect(pageviewEvent).toBeTruthy()
- }
- })
-
- it('should filter event definitions with search parameter', async () => {
- const result = await eventDefsTool.handler(context, { q: 'pageview' })
- const eventDefs = parseToolResponse(result)
-
- expect(Array.isArray(eventDefs)).toBe(true)
-
- // All returned events should contain "pageview" in their name
- for (const event of eventDefs) {
- expect(event.name.toLowerCase()).toContain('pageview')
- }
- })
-
- it('should return empty array when searching for non-existent events', async () => {
- const result = await eventDefsTool.handler(context, { q: 'non-existent-event-xyz123' })
- const eventDefs = parseToolResponse(result)
-
- expect(Array.isArray(eventDefs)).toBe(true)
- expect(eventDefs.length).toBe(0)
- })
-
- it('should return all events when no search parameter is provided', async () => {
- const resultWithoutSearch = await eventDefsTool.handler(context, {})
- const resultWithSearch = await eventDefsTool.handler(context, { q: 'pageview' })
-
- const allEventDefs = parseToolResponse(resultWithoutSearch)
- const filteredEventDefs = parseToolResponse(resultWithSearch)
-
- expect(Array.isArray(allEventDefs)).toBe(true)
- expect(Array.isArray(filteredEventDefs)).toBe(true)
-
- if (allEventDefs.length > 0 && filteredEventDefs.length > 0) {
- // Filtered results should be a subset of all results
- expect(filteredEventDefs.length).toBeLessThanOrEqual(allEventDefs.length)
- }
- })
-
- it('should respect limit parameter', async () => {
- const result = await eventDefsTool.handler(context, { limit: 5 })
- const eventDefs = parseToolResponse(result)
- expect(eventDefs.length).toBeLessThanOrEqual(5)
- })
-
- it('should respect offset parameter', async () => {
- const allResult = await eventDefsTool.handler(context, { limit: 10 })
- const allEvents = parseToolResponse(allResult)
-
- if (allEvents.length > 1) {
- const offsetResult = await eventDefsTool.handler(context, { limit: 10, offset: 1 })
- const offsetEvents = parseToolResponse(offsetResult)
- // Verify offset is working by checking first result is different from original first result
- expect(offsetEvents[0].name).not.toBe(allEvents[0].name)
- }
- })
-
- it('should use default limit when not specified', async () => {
- const result = await eventDefsTool.handler(context, {})
- const eventDefs = parseToolResponse(result)
- expect(eventDefs.length).toBeLessThanOrEqual(50)
- })
- })
-
describe('event-definition-update tool', () => {
const updateTool = updateEventDefinitionTool()
diff --git a/services/mcp/tests/tools/query.integration.test.ts b/services/mcp/tests/tools/query.integration.test.ts
deleted file mode 100644
index 49daad2bd15f..000000000000
--- a/services/mcp/tests/tools/query.integration.test.ts
+++ /dev/null
@@ -1,365 +0,0 @@
-import { afterEach, beforeAll, describe, expect, it } from 'vitest'
-
-import type { ApiClient } from '@/api/client'
-import type { InsightQuery } from '@/schema/query'
-import queryRunTool from '@/tools/query/run'
-import type { Context } from '@/tools/types'
-
-import {
- type CreatedResources,
- SAMPLE_FUNNEL_QUERIES,
- SAMPLE_HOGQL_QUERIES,
- SAMPLE_PATHS_QUERIES,
- SAMPLE_TREND_QUERIES,
- TEST_ORG_ID,
- TEST_PROJECT_ID,
- cleanupResources,
- createTestClient,
- createTestContext,
- setActiveProjectAndOrg,
- validateEnvironmentVariables,
-} from '../shared/test-utils'
-
-/**
- * Helper to execute a query and log detailed debug info on failure
- */
-async function executeQuery(context: Context, query: InsightQuery, queryName: string): Promise<any> {
- const tool = queryRunTool()
- try {
- const result = await tool.handler(context, { query })
- return result
- } catch (error: any) {
- console.error(`[TEST] ${queryName} query FAILED:`)
- console.error(`[TEST] Error: ${error.message}`)
- console.error(`[TEST] Query: ${JSON.stringify(query, null, 2)}`)
- throw error
- }
-}
-
-/**
- * Asserts the common structure of a query response and returns typed results
- */
-function assertQueryResponse(response: any, expectedQueryKind?: string): { results: any; query: any; url: string } {
- expect(response).toHaveProperty('query')
- expect(response).toHaveProperty('results')
- expect(response).toHaveProperty('_posthogUrl')
- expect(typeof response._posthogUrl).toBe('string')
- expect(response._posthogUrl).toMatch(/\/insights\/new#q=/)
-
- if (expectedQueryKind) {
- expect(response.query.kind).toBe(expectedQueryKind)
- }
-
- return { results: response.results, query: response.query, url: response._posthogUrl }
-}
-
-/**
- * Asserts HogQL query response structure (has columns and nested results)
- */
-function assertHogQLResults(results: any): { columns: string[]; rows: any[][] } {
- expect(results).toHaveProperty('columns')
- expect(results).toHaveProperty('results')
- expect(Array.isArray(results.columns)).toBe(true)
- expect(Array.isArray(results.results)).toBe(true)
-
- // Columns should be strings
- results.columns.forEach((col: any) => expect(typeof col).toBe('string'))
- return { columns: results.columns, rows: results.results }
-}
-
-/**
- * Asserts Trends/Funnel query response structure (results is direct array)
- */
-function assertSeriesResults(results: any): any[] {
- expect(Array.isArray(results)).toBe(true)
- return results
-}
-
-describe('Query Integration Tests', () => {
- let client: ApiClient
- let context: Context
- let testProjectId: string
- let testOrgId: string
- let createdResources: CreatedResources
-
- beforeAll(async () => {
- validateEnvironmentVariables()
- client = createTestClient()
- context = createTestContext(client)
- testProjectId = TEST_PROJECT_ID!
- testOrgId = TEST_ORG_ID!
-
- await setActiveProjectAndOrg(context, testProjectId, testOrgId)
-
- createdResources = {
- featureFlags: [],
- insights: [],
- dashboards: [],
- surveys: [],
- actions: [],
- cohorts: [],
- }
- })
-
- afterEach(async () => {
- await cleanupResources(client, testProjectId, createdResources)
- })
-
- describe('HogQL Query Execution', () => {
- it('should execute pageviews HogQL query successfully', async () => {
- const result = await executeQuery(context, SAMPLE_HOGQL_QUERIES.pageviews, 'pageviews HogQL')
- const { results } = assertQueryResponse(result)
- const { columns } = assertHogQLResults(results)
-
- // Should have event and count columns based on the query
- expect(columns).toContain('event')
- expect(columns).toContain('event_count')
- })
-
- it('should execute topEvents HogQL query successfully', async () => {
- const result = await executeQuery(context, SAMPLE_HOGQL_QUERIES.topEvents, 'topEvents HogQL')
- const { results } = assertQueryResponse(result)
- const { columns } = assertHogQLResults(results)
-
- // Should have event and count columns based on the query
- expect(columns).toContain('event')
- expect(columns).toContain('event_count')
- })
-
- it('should handle invalid HogQL query with invalid node', async () => {
- const invalidQuery = {
- kind: 'DataVisualizationNode' as const,
- source: {
- kind: 'HogQLQuery' as const,
- query: "SELECT * FROM invalid_table WHERE invalid_column = 'test'",
- filters: {
- dateRange: {
- date_from: '-7d',
- date_to: null,
- },
- },
- },
- }
-
- const tool = queryRunTool()
-
- try {
- await tool.handler(context, {
- query: invalidQuery,
- })
- } catch (error: any) {
- expect(error).toBeTruthy()
- expect(error.message).toContain('Failed to query insight')
- }
- })
- })
-
- describe('Trends Query Execution', () => {
- it('should execute basic pageviews trends query successfully', async () => {
- const result = await executeQuery(context, SAMPLE_TREND_QUERIES.basicPageviews, 'basicPageviews Trends')
- const { results, query } = assertQueryResponse(result, 'TrendsQuery')
- const series = assertSeriesResults(results)
-
- // Trends results should have series data with labels and counts
- if (series.length > 0) {
- expect(series[0]).toHaveProperty('label')
- expect(series[0]).toHaveProperty('count')
- expect(series[0]).toHaveProperty('data')
- }
-
- // Query should preserve the series configuration
- expect(query.series).not.toBeUndefined()
- expect(query.series[0].event).toBe('$pageview')
- })
-
- it('should execute unique users trends query successfully', async () => {
- const query = SAMPLE_TREND_QUERIES.uniqueUsers
-
- const result = await executeQuery(context, query, 'uniqueUsers Trends')
- const { results, query: queryResponse } = assertQueryResponse(result, 'TrendsQuery')
- assertSeriesResults(results)
-
- // Should use DAU math
- expect(queryResponse.series[0].math).toBe(query.source.series[0].math)
- })
-
- it('should execute multiple events trends query successfully', async () => {
- const query = SAMPLE_TREND_QUERIES.multipleEvents
-
- const result = await executeQuery(context, query, 'multipleEvents Trends')
- const { results, query: queryResponse } = assertQueryResponse(result, 'TrendsQuery')
- assertSeriesResults(results)
-
- // Should have multiple series in the query
- expect(queryResponse.series.length).toBe(query.source.series.length)
- })
-
- it('should execute trends query with breakdown successfully', async () => {
- const query = SAMPLE_TREND_QUERIES.withBreakdown
- const result = await executeQuery(context, query, 'withBreakdown Trends')
- const { results, query: queryResponse } = assertQueryResponse(result, 'TrendsQuery')
- assertSeriesResults(results)
-
- // Should have breakdown configuration
- expect(queryResponse.breakdownFilter).not.toBeUndefined()
- expect(queryResponse.breakdownFilter.breakdown).toBe(query.source.breakdownFilter.breakdown)
- })
-
- it('should execute trends query with property filter successfully', async () => {
- const query = SAMPLE_TREND_QUERIES.withPropertyFilter
- const result = await executeQuery(context, query, 'withPropertyFilter Trends')
- const { results, query: queryResponse } = assertQueryResponse(result, 'TrendsQuery')
- assertSeriesResults(results)
-
- // Should have property filters on the series
- expect(queryResponse.series[0].properties).not.toBeUndefined()
- expect(queryResponse.series[0].properties.length).toBeGreaterThan(0)
- })
- })
-
- describe('Funnel Query Execution', () => {
- it('should execute basic funnel query successfully', async () => {
- const query = SAMPLE_FUNNEL_QUERIES.basicFunnel
-
- const result = await executeQuery(context, query, 'basicFunnel')
- const { results, query: queryResponse } = assertQueryResponse(result, 'FunnelsQuery')
- assertSeriesResults(results)
-
- // Query should have the funnel steps
- expect(queryResponse.series).not.toBeUndefined()
- expect(queryResponse.series.length).toBe(query.source.series.length)
- })
-
- it('should execute strict order funnel query successfully', async () => {
- const query = SAMPLE_FUNNEL_QUERIES.strictOrderFunnel
-
- const result = await executeQuery(context, query, 'strictOrderFunnel')
- const { results, query: queryResponse } = assertQueryResponse(result, 'FunnelsQuery')
- assertSeriesResults(results)
-
- // Should have strict order configuration
- expect(queryResponse.funnelsFilter).not.toBeUndefined()
- expect(queryResponse.funnelsFilter.funnelOrderType).toBe(query.source.funnelsFilter.funnelOrderType)
- })
-
- it('should execute funnel with breakdown query successfully', async () => {
- const query = SAMPLE_FUNNEL_QUERIES.funnelWithBreakdown
-
- const result = await executeQuery(context, query, 'funnelWithBreakdown')
- const { results, query: queryResponse } = assertQueryResponse(result, 'FunnelsQuery')
- assertSeriesResults(results)
-
- // Should have breakdown configuration
- expect(queryResponse.breakdownFilter).not.toBeUndefined()
- expect(queryResponse.breakdownFilter.breakdown).toBe(query.source.breakdownFilter.breakdown)
- })
-
- it('should execute funnel with conversion window query successfully', async () => {
- const query = SAMPLE_FUNNEL_QUERIES.conversionWindow
-
- const result = await executeQuery(context, query, 'conversionWindow')
- const { results, query: queryResponse } = assertQueryResponse(result, 'FunnelsQuery')
- assertSeriesResults(results)
-
- // Should have custom conversion window (1 hour)
- expect(queryResponse.funnelsFilter).not.toBeUndefined()
- expect(queryResponse.funnelsFilter.funnelWindowInterval).toBe(
- query.source.funnelsFilter.funnelWindowInterval
- )
- expect(queryResponse.funnelsFilter.funnelWindowIntervalUnit).toBe(
- query.source.funnelsFilter.funnelWindowIntervalUnit
- )
- })
-
- it('should execute onboarding funnel query successfully', async () => {
- const query = SAMPLE_FUNNEL_QUERIES.onboardingFunnel
-
- const result = await executeQuery(context, query, 'onboardingFunnel')
- const { results, query: queryResponse } = assertQueryResponse(result, 'FunnelsQuery')
- assertSeriesResults(results)
-
- // Should have 4 steps in the onboarding funnel
- expect(queryResponse.series.length).toBe(query.source.series.length)
- })
-
- it('should handle malformed funnel query with invalid node', async () => {
- const malformedFunnel = {
- kind: 'InsightVizNode' as const,
- source: {
- kind: 'FunnelsQuery' as const,
- series: [
- {
- kind: 'InvalidNode' as const,
- event: '$pageview',
- custom_name: 'Single Step',
- },
- ],
- dateRange: {
- date_from: '-7d',
- date_to: null,
- },
- properties: [],
- filterTestAccounts: false,
- },
- }
-
- const tool = queryRunTool()
-
- try {
- await tool.handler(context, {
- query: malformedFunnel as unknown as InsightQuery,
- })
- } catch (error: any) {
- expect(error).toBeTruthy()
- }
- })
- })
-
- describe('Paths Query Execution', () => {
- it('should execute basic pageview paths query successfully', async () => {
- const query = SAMPLE_PATHS_QUERIES.basicPageviewPaths
-
- const result = await executeQuery(context, query, 'basicPageviewPaths')
- const { results, query: queryResponse } = assertQueryResponse(result, 'PathsQuery')
- assertSeriesResults(results)
-
- expect(queryResponse.pathsFilter).not.toBeUndefined()
- expect(queryResponse.pathsFilter.includeEventTypes).toContain('$pageview')
- })
-
- it('should execute custom event paths query successfully', async () => {
- const query = SAMPLE_PATHS_QUERIES.customEventPaths
-
- const result = await executeQuery(context, query, 'customEventPaths')
- const { results, query: queryResponse } = assertQueryResponse(result, 'PathsQuery')
- assertSeriesResults(results)
-
- expect(queryResponse.pathsFilter).not.toBeUndefined()
- expect(queryResponse.pathsFilter.includeEventTypes).toContain('custom_event')
- expect(queryResponse.pathsFilter.excludeEvents).toContain('$feature_flag_called')
- })
-
- it('should execute paths query with start point successfully', async () => {
- const query = SAMPLE_PATHS_QUERIES.pathsWithStartPoint
-
- const result = await executeQuery(context, query, 'pathsWithStartPoint')
- const { results, query: queryResponse } = assertQueryResponse(result, 'PathsQuery')
- assertSeriesResults(results)
-
- expect(queryResponse.pathsFilter).not.toBeUndefined()
- expect(queryResponse.pathsFilter.startPoint).toBe(query.source.pathsFilter.startPoint)
- })
-
- it('should execute paths query with HogQL expression successfully', async () => {
- const query = SAMPLE_PATHS_QUERIES.pathsWithHogQL
-
- const result = await executeQuery(context, query, 'pathsWithHogQL')
- const { results, query: queryResponse } = assertQueryResponse(result, 'PathsQuery')
- assertSeriesResults(results)
-
- expect(queryResponse.pathsFilter).not.toBeUndefined()
- expect(queryResponse.pathsFilter.includeEventTypes).toContain('hogql')
- expect(queryResponse.pathsFilter.pathsHogQLExpression).toBe(query.source.pathsFilter.pathsHogQLExpression)
- })
- })
-})
diff --git a/services/mcp/tests/unit/__snapshots__/instructions/tools-v1-instructions-with-metadata.txt b/services/mcp/tests/unit/__snapshots__/instructions/tools-v1-instructions-with-metadata.txt
deleted file mode 100644
index 6d4c977d5576..000000000000
--- a/services/mcp/tests/unit/__snapshots__/instructions/tools-v1-instructions-with-metadata.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-- You are a helpful assistant that can query PostHog API.
-- If you get errors due to permissions being denied, check that you have the correct active project and that the user has access to the required project.
-- If you cannot answer the user's PostHog related request or question using other available tools in this MCP, use the 'docs-search' tool to provide information from the documentation to guide user how they can do it themselves - when doing so provide condensed instructions with links to sources.
-- The `agent-feedback` tool is available if you'd like to leave optional feedback about this MCP server (unclear tool descriptions, surprising schemas, missing capabilities, unhelpful errors, or things that worked well). It is entirely optional — skip it for routine tasks where nothing stood out. When you do use it, be specific and do not include user PII or sensitive query content. Submitting feedback is not a way to end your turn: keep working on the user's task afterward using the other available tools.
-
-You are currently in project "My App" (id: 1) within organization "Acme" (id: org_1).
-Project timezone: America/New_York.
-The user's name is Jane Doe ([email protected]).
\ No newline at end of file
diff --git a/services/mcp/tests/unit/__snapshots__/instructions/tools-v1-instructions.txt b/services/mcp/tests/unit/__snapshots__/instructions/tools-v1-instructions.txt
deleted file mode 100644
index 6344488d9116..000000000000
--- a/services/mcp/tests/unit/__snapshots__/instructions/tools-v1-instructions.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-- You are a helpful assistant that can query PostHog API.
-- If you get errors due to permissions being denied, check that you have the correct active project and that the user has access to the required project.
-- If you cannot answer the user's PostHog related request or question using other available tools in this MCP, use the 'docs-search' tool to provide information from the documentation to guide user how they can do it themselves - when doing so provide condensed instructions with links to sources.
-- The `agent-feedback` tool is available if you'd like to leave optional feedback about this MCP server (unclear tool descriptions, surprising schemas, missing capabilities, unhelpful errors, or things that worked well). It is entirely optional — skip it for routine tasks where nothing stood out. When you do use it, be specific and do not include user PII or sensitive query content. Submitting feedback is not a way to end your turn: keep working on the user's task afterward using the other available tools.
\ No newline at end of file
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/action-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/action-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/action-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/action-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/action-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/action-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/action-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/action-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/action-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/action-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/action-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/action-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/action-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/action-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/action-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/action-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/actions-get-all.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/actions-get-all.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/actions-get-all.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/actions-get-all.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/activity-log-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/activity-log-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/activity-log-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/activity-log-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/advanced-activity-logs-filters.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/advanced-activity-logs-filters.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/advanced-activity-logs-filters.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/advanced-activity-logs-filters.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/advanced-activity-logs-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/advanced-activity-logs-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/advanced-activity-logs-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/advanced-activity-logs-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/agent-feedback.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/agent-feedback.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/agent-feedback.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/agent-feedback.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/alert-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/alert-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/alert-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/alert-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/alert-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/alert-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-simulate.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/alert-simulate.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-simulate.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/alert-simulate.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/alert-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/alert-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/alert-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/alerts-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/alerts-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/alerts-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/alerts-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/annotation-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/annotation-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/annotation-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/annotation-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/annotation-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/annotation-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/annotation-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/annotation-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/annotation-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/annotation-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/annotation-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/annotation-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/annotations-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/annotations-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/annotations-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/annotations-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/annotations-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/annotations-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/annotations-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/annotations-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-attribute-values-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/apm-attribute-values-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-attribute-values-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/apm-attribute-values-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-attributes-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/apm-attributes-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-attributes-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/apm-attributes-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-services-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/apm-services-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-services-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/apm-services-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-spans-aggregate.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/apm-spans-aggregate.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-spans-aggregate.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/apm-spans-aggregate.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-spans-tree.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/apm-spans-tree.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-spans-tree.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/apm-spans-tree.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-trace-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/apm-trace-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/apm-trace-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/apm-trace-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/approval-policies-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/approval-policies-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/approval-policies-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/approval-policies-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/approval-policy-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/approval-policy-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/approval-policy-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/approval-policy-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/batch-export-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/batch-export-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/batch-export-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/batch-export-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/batch-export-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/batch-export-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/batch-export-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/batch-export-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/batch-exports-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-exports-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/batch-exports-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/batch-exports-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-function-templates-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-function-templates-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-function-templates-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-function-templates-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-function-templates-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-function-templates-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-function-templates-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-function-templates-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-invocations-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-invocations-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-invocations-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-invocations-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-logs-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-logs-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-logs-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-logs-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-metrics-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-metrics-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-metrics-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-metrics-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-rearrange-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-rearrange-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-rearrange-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-rearrange-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cdp-functions-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/change-request-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/change-request-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/change-request-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/change-request-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/change-requests-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/change-requests-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/change-requests-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/change-requests-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-add-persons-to-static-cohort-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-add-persons-to-static-cohort-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-add-persons-to-static-cohort-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-add-persons-to-static-cohort-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-rm-person-from-static-cohort-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-rm-person-from-static-cohort-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/cohorts-rm-person-from-static-cohort-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/cohorts-rm-person-from-static-cohort-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/comment-count.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/comment-count.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/comment-count.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/comment-count.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/comment-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/comment-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/comment-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/comment-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/comment-thread.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/comment-thread.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/comment-thread.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/comment-thread.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/comments-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/comments-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/comments-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/comments-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/conversations-tickets-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-tickets-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/conversations-tickets-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-tickets-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/conversations-tickets-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-tickets-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/conversations-tickets-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-tickets-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/conversations-tickets-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-tickets-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/conversations-tickets-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/conversations-tickets-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/create-feature-flag.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/create-feature-flag.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/create-feature-flag.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/create-feature-flag.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-create-text-tile.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-create-text-tile.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-create-text-tile.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-create-text-tile.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-insights-run.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-insights-run.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-insights-run.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-insights-run.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-reorder-tiles.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-reorder-tiles.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-reorder-tiles.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-reorder-tiles.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-update-text-tile.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-update-text-tile.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-update-text-tile.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-update-text-tile.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboard-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/dashboard-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboards-get-all.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/dashboards-get-all.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/dashboards-get-all.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/dashboards-get-all.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/data-warehouse-data-health-issues-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/data-warehouse-data-health-issues-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/data-warehouse-data-health-issues-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/data-warehouse-data-health-issues-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/debug-mcp-ui-apps.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/debug-mcp-ui-apps.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/debug-mcp-ui-apps.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/debug-mcp-ui-apps.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/delete-feature-flag.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/delete-feature-flag.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/delete-feature-flag.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/delete-feature-flag.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/docs-search.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/docs-search.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/docs-search.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/docs-search.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/early-access-feature-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/early-access-feature-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/early-access-feature-destroy.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-destroy.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/early-access-feature-destroy.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-destroy.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/early-access-feature-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/early-access-feature-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/early-access-feature-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/early-access-feature-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/early-access-feature-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/early-access-feature-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/early-access-feature-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-materialization-status.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-materialization-status.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-materialization-status.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-materialization-status.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-openapi-spec.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-openapi-spec.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-openapi-spec.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-openapi-spec.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-run.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-run.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-run.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-run.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-versions.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-versions.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoint-versions.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/endpoint-versions.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoints-get-all.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/endpoints-get-all.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/endpoints-get-all.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/endpoints-get-all.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-assignment-rules-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-assignment-rules-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-assignment-rules-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-assignment-rules-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-assignment-rules-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-assignment-rules-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-assignment-rules-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-assignment-rules-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-grouping-rules-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-grouping-rules-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-grouping-rules-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-grouping-rules-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-grouping-rules-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-grouping-rules-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-grouping-rules-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-issues-merge-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-issues-merge-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-issues-merge-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-issues-merge-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-issues-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-issues-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-issues-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-issues-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-issues-split-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-issues-split-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-issues-split-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-issues-split-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-suppression-rules-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-suppression-rules-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-symbol-sets-download-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-symbol-sets-download-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-symbol-sets-download-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-symbol-sets-download-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-symbol-sets-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-symbol-sets-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-symbol-sets-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-symbol-sets-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-symbol-sets-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-symbol-sets-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/error-tracking-symbol-sets-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-symbol-sets-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/event-definition-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/event-definition-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/event-definition-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/event-definition-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/execute-sql.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/execute-sql.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/execute-sql.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/execute-sql.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-archive.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-archive.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-archive.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-archive.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-duplicate.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-duplicate.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-duplicate.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-duplicate.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-end.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-end.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-end.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-end.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-get-all.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-get-all.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-get-all.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-get-all.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-launch.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-launch.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-launch.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-launch.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-pause.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-pause.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-pause.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-pause.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-reset.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-reset.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-reset.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-reset.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-results-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-results-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-results-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-results-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-resume.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-resume.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-resume.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-resume.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-saved-metrics-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-saved-metrics-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-saved-metrics-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-saved-metrics-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-saved-metrics-destroy.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-saved-metrics-destroy.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-saved-metrics-destroy.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-saved-metrics-destroy.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-saved-metrics-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-saved-metrics-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-saved-metrics-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-saved-metrics-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-saved-metrics-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-saved-metrics-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-saved-metrics-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-saved-metrics-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-saved-metrics-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-saved-metrics-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-saved-metrics-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-saved-metrics-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-ship-variant.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-ship-variant.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-ship-variant.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-ship-variant.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-stats.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-stats.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-stats.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-stats.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-timeseries-results.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-timeseries-results.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-timeseries-results.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-timeseries-results.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-unarchive.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-unarchive.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-unarchive.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-unarchive.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/experiment-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/experiment-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-cancel.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-cancel.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-cancel.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-cancel.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-delete-data.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-delete-data.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-delete-data.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-delete-data.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-incremental-fields-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-incremental-fields-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-incremental-fields-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-incremental-fields-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-reload.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-reload.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-reload.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-reload.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-resync.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-resync.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-resync.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-resync.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-schemas-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-schemas-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-check-cdc-prerequisites-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-check-cdc-prerequisites-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-check-cdc-prerequisites-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-check-cdc-prerequisites-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-connections-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-connections-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-connections-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-connections-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-create-webhook-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-create-webhook-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-create-webhook-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-create-webhook-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-db-schema.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-db-schema.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-db-schema.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-db-schema.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-delete-webhook-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-delete-webhook-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-delete-webhook-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-delete-webhook-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-destroy.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-destroy.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-destroy.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-destroy.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-jobs.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-jobs.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-jobs.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-jobs.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-refresh-schemas.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-refresh-schemas.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-refresh-schemas.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-refresh-schemas.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-reload.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-reload.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-reload.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-reload.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-update-webhook-inputs-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-update-webhook-inputs-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-update-webhook-inputs-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-update-webhook-inputs-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-webhook-info-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-webhook-info-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-webhook-info-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-webhook-info-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-wizard.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-wizard.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sources-wizard.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sources-wizard.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sync-logs.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sync-logs.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/external-data-sync-logs.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/external-data-sync-logs.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flag-get-all.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flag-get-all.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flag-get-all.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flag-get-all.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flag-get-definition.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flag-get-definition.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flag-get-definition.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flag-get-definition.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-activity-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-activity-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-activity-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-activity-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-bulk-delete-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-bulk-delete-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-bulk-delete-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-bulk-delete-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-bulk-keys-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-bulk-keys-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-bulk-keys-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-bulk-keys-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-bulk-update-tags-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-bulk-update-tags-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-bulk-update-tags-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-bulk-update-tags-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-copy-flags-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-copy-flags-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-copy-flags-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-copy-flags-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-dependent-flags-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-dependent-flags-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-dependent-flags-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-dependent-flags-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-evaluation-reasons-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-evaluation-reasons-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-evaluation-reasons-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-evaluation-reasons-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-my-flags-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-my-flags-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-my-flags-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-my-flags-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-status-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-status-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-status-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-status-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-test-evaluation-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-test-evaluation-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-test-evaluation-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-test-evaluation-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-user-blast-radius-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-user-blast-radius-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/feature-flags-user-blast-radius-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/feature-flags-user-blast-radius-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/file-download-batch-exports-cancel-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/file-download-batch-exports-cancel-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/file-download-batch-exports-cancel-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/file-download-batch-exports-cancel-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/file-download-batch-exports-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/file-download-batch-exports-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/file-download-batch-exports-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/file-download-batch-exports-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/file-download-batch-exports-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/file-download-batch-exports-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/file-download-batch-exports-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/file-download-batch-exports-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/get-llm-total-costs-for-project.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/get-llm-total-costs-for-project.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/get-llm-total-costs-for-project.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/get-llm-total-costs-for-project.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/hog-flows-logs-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/hog-flows-logs-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/hog-flows-logs-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/hog-flows-logs-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/hog-flows-metrics-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/hog-flows-metrics-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/hog-flows-metrics-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/hog-flows-metrics-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/inbox-reports-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/inbox-reports-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/inbox-reports-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/inbox-reports-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-reports-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/inbox-source-configs-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/inbox-source-configs-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/inbox-source-configs-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/inbox-source-configs-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/inbox-source-configs-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/insight-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/insight-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/insight-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/insight-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/insight-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/insight-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/insight-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/insight-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/insight-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/insight-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/insight-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/insight-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/insight-query.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/insight-query.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/insight-query.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/insight-query.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/insight-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/insight-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/insight-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/insight-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/insights-activity-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/insights-activity-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/insights-activity-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/insights-activity-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/insights-all-activity-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/insights-all-activity-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/insights-all-activity-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/insights-all-activity-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/insights-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/insights-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/insights-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/insights-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/insights-trending-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/insights-trending-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/insights-trending-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/insights-trending-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/integration-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/integration-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/integration-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/integration-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/integration-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/integration-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/integration-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/integration-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/integrations-channels-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-channels-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/integrations-channels-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-channels-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/integrations-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/integrations-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/integrations-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-clustering-job-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-clustering-job-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-clustering-job-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-clustering-job-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-clustering-job-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-clustering-job-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-clustering-job-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-clustering-job-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-config-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-config-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-config-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-config-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-config-set-active-key.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-config-set-active-key.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-config-set-active-key.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-config-set-active-key.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-judge-models.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-judge-models.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-judge-models.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-judge-models.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-generate.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-generate.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-generate.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-generate.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-run-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-run-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-run-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-run-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-report-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-report-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-run.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-run.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-run.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-run.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-summary-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-summary-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-summary-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-summary-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-test-hog.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-test-hog.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-test-hog.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-test-hog.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-evaluation-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-evaluation-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-personal-spend.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-personal-spend.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-personal-spend.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-personal-spend.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-prompt-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-prompt-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-prompt-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-prompt-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-prompt-duplicate.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-prompt-duplicate.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-prompt-duplicate.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-prompt-duplicate.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-prompt-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-prompt-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-prompt-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-prompt-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-prompt-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-prompt-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-prompt-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-prompt-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-prompt-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-prompt-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-prompt-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-prompt-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-review-queue-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-review-queue-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-item-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-item-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-item-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-item-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-item-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-item-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-item-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-item-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-review-queue-item-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-item-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-review-queue-item-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-item-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-review-queue-item-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-item-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-review-queue-item-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-item-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-item-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-item-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-item-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-item-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-review-queue-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-review-queue-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-review-queue-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-review-queue-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-score-definition-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-score-definition-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-score-definition-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-score-definition-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-score-definition-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-score-definition-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-score-definition-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-score-definition-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-score-definition-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-score-definition-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-score-definition-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-score-definition-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-score-definition-new-version.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-score-definition-new-version.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-score-definition-new-version.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-score-definition-new-version.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-score-definition-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-score-definition-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-score-definition-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-score-definition-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-sentiment-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-sentiment-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-sentiment-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-sentiment-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-archive.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-archive.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-archive.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-archive.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-duplicate.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-duplicate.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-duplicate.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-duplicate.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-file-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-file-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-file-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-file-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-file-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-file-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-file-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-file-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-file-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-file-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-file-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-file-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-file-rename.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-file-rename.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-file-rename.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-file-rename.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-skill-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-summarization-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-summarization-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-summarization-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-summarization-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-tagger-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-tagger-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-tagger-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-tagger-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-tagger-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-tagger-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-tagger-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-tagger-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-tagger-test-hog.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-tagger-test-hog.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-tagger-test-hog.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-tagger-test-hog.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-trace-review-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-trace-review-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-trace-review-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-trace-review-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-trace-review-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-trace-review-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-trace-review-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-trace-review-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-trace-review-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-trace-review-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-trace-review-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-trace-review-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-trace-review-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-trace-review-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v1/llma-trace-review-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-trace-review-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-trace-review-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-trace-review-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/llma-trace-review-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/llma-trace-review-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-attribute-values-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-attribute-values-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-attribute-values-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/logs-attribute-values-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-attributes-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-attributes-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-attributes-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/logs-attributes-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-count-ranges.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-count-ranges.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-count-ranges.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/logs-count-ranges.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-count.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-count.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-count.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/logs-count.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-services-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-services-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-services-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/logs-services-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-sparkline-query.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/logs-sparkline-query.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/logs-sparkline-query.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/logs-sparkline-query.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/notebooks-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/notebooks-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/notebooks-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/notebooks-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/notebooks-destroy.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/notebooks-destroy.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/notebooks-destroy.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/notebooks-destroy.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/notebooks-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/notebooks-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/notebooks-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/notebooks-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/notebooks-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/notebooks-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/notebooks-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/notebooks-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/notebooks-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/notebooks-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/notebooks-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/notebooks-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/org-members-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/org-members-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/org-members-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/org-members-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/organization-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/organization-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/organization-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/organization-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/organizations-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/organizations-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/organizations-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/organizations-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-bulk-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/persons-bulk-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-bulk-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/persons-bulk-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-cohorts-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/persons-cohorts-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-cohorts-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/persons-cohorts-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/persons-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/persons-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-property-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/persons-property-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-property-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/persons-property-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-property-set.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/persons-property-set.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-property-set.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/persons-property-set.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/persons-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/persons-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-values-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/persons-values-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/persons-values-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/persons-values-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/project-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/project-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/project-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/project-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/project-settings-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/project-settings-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/project-settings-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/project-settings-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/projects-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/projects-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/projects-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/projects-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-diagnose.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-diagnose.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-diagnose.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-diagnose.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-retry.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-retry.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/proxy-retry.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/proxy-retry.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/query-apm-spans.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-apm-spans.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/query-apm-spans.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-apm-spans.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/query-error-tracking-issue-events.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issue-events.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/query-error-tracking-issue-events.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issue-events.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/query-error-tracking-issue.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issue.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/query-error-tracking-issue.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issue.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/query-error-tracking-issues-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/query-error-tracking-issues-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-funnel.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-funnel.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-funnel.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-funnel.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-lifecycle-actors.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-lifecycle-actors.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-lifecycle-actors.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-lifecycle-actors.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-lifecycle.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-lifecycle.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-lifecycle.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-lifecycle.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-llm-trace.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-llm-trace.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-llm-trace.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-llm-trace.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-llm-traces-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-llm-traces-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-llm-traces-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-llm-traces-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/query-logs.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-logs.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/query-logs.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-logs.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-paths.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-paths.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-paths.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-paths.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-retention.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-retention.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-retention.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-retention.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-session-recordings-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-session-recordings-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-session-recordings-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-session-recordings-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-stickiness.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-stickiness.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-stickiness.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-stickiness.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-trends-actors.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends-actors.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-trends-actors.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends-actors.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-trends.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/query-trends.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/query-trends.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/read-data-schema.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/read-data-schema.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/read-data-schema.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/read-data-schema.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/read-data-warehouse-schema.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/read-data-warehouse-schema.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/read-data-warehouse-schema.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/read-data-warehouse-schema.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/role-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/role-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/role-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/role-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/role-members-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/role-members-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/role-members-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/role-members-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/roles-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/roles-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/roles-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/roles-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/scheduled-changes-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/scheduled-changes-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/scheduled-changes-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/scheduled-changes-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/scheduled-changes-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/scheduled-changes-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/scheduled-changes-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/scheduled-changes-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/scheduled-changes-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/scheduled-changes-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/scheduled-changes-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/scheduled-changes-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/scheduled-changes-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/scheduled-changes-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/scheduled-changes-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/scheduled-changes-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/scheduled-changes-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/scheduled-changes-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/scheduled-changes-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/scheduled-changes-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/sdk-doctor-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/sdk-doctor-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/sdk-doctor-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/sdk-doctor-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-playlist-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-playlist-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-playlist-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-playlist-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-playlist-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-playlist-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-playlist-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-playlist-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-playlist-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-playlist-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-playlist-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-playlist-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-playlists-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-playlists-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/session-recording-playlists-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/session-recording-playlists-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-emit-signal.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-emit-signal.json
new file mode 100644
index 000000000000..3cbff0731c88
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-emit-signal.json
@@ -0,0 +1,134 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "confidence": {
+ "description": "Agent's confidence the finding is real in [0, 1]. Persisted in `extra`.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ },
+ "dedupe_keys": {
+ "description": "Optional keys for downstream dedupe (e.g. `error_tracking_issue:<id>`).",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "description": {
+ "description": "Canonical evidence-bundle prose. Becomes the signal's `description`.",
+ "maxLength": 50000,
+ "type": "string"
+ },
+ "evidence": {
+ "description": "Citations supporting the finding. Capped at 20 entries.",
+ "items": {
+ "description": "One citation attached to a finding. Mirrors `SignalsScoutEvidenceEntry`.",
+ "properties": {
+ "entity_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Optional ID of the cited entity (issue id, recording id, log query id)."
+ },
+ "source_product": {
+ "description": "Source the citation came from (`error_tracking`, `session_replay`, `logs`, ...).",
+ "type": "string"
+ },
+ "summary": {
+ "description": "One-sentence prose about why this evidence supports the finding.",
+ "type": "string"
+ }
+ },
+ "required": ["source_product", "summary"],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "finding_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Stable id for this finding, baked into the signal's source_id for traceability. NOT a dedupe key — re-emitting the same id creates another signal."
+ },
+ "hypothesis": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Optional one-line hypothesis the finding tests."
+ },
+ "id": {
+ "description": "A UUID string identifying this Signal scout run.",
+ "type": "string"
+ },
+ "mcp_trace_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Optional MCP trace id for cross-system debugging."
+ },
+ "severity": {
+ "anyOf": [
+ {
+ "description": "* `P0` - P0\n* `P1` - P1\n* `P2` - P2\n* `P3` - P3\n* `P4` - P4",
+ "enum": ["P0", "P1", "P2", "P3", "P4"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Optional severity tag — one of P0, P1, P2, P3, P4. Informational only.\n\n* `P0` - P0\n* `P1` - P1\n* `P2` - P2\n* `P3` - P3\n* `P4` - P4"
+ },
+ "time_range": {
+ "anyOf": [
+ {
+ "properties": {
+ "date_from": {
+ "description": "ISO-8601 inclusive lower bound for the finding's window.",
+ "type": "string"
+ },
+ "date_to": {
+ "description": "ISO-8601 inclusive upper bound for the finding's window.",
+ "type": "string"
+ }
+ },
+ "required": ["date_from", "date_to"],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Optional time window the finding refers to."
+ },
+ "weight": {
+ "description": "Agent's weight for the signal in [0, 1]. Drives ranking in the inbox.",
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": ["id", "description", "weight", "confidence", "evidence"],
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-project-profile-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-project-profile-get.json
new file mode 100644
index 000000000000..697da7354e57
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-project-profile-get.json
@@ -0,0 +1,11 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "force_refresh": {
+ "default": false,
+ "description": "When true, skip the cache and rebuild the profile from authoritative sources before responding. Use after seeding events, importing data, or any other change the caller knows just landed but hasn't surfaced through natural cache expiry yet. Honored only for the internal scout token — public read callers get the cached profile regardless. Concurrent forced rebuilds are serialized by the team-keyed advisory lock — at most one extra `build_inventory` per simultaneous request.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-runs-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-runs-list.json
new file mode 100644
index 000000000000..0ea252c1bfdd
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-runs-list.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "date_from": {
+ "description": "ISO-8601 inclusive lower bound on `created_at`. Omit to skip the lower bound.",
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "date_to": {
+ "description": "ISO-8601 exclusive upper bound on `created_at`. Pass to walk back past the result cap on subsequent calls (cursor-style: set to the `started_at` of the oldest run from the prior page).",
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ "limit": {
+ "description": "Max rows to return (default 20, hard cap 100).",
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "text": {
+ "description": "Case-insensitive substring match on the scout's end-of-run `summary`. Omit to skip the filter.",
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-runs-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-runs-retrieve.json
new file mode 100644
index 000000000000..6bf8266d32be
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-runs-retrieve.json
@@ -0,0 +1,11 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "id": {
+ "description": "A UUID string identifying this Signal scout run.",
+ "type": "string"
+ }
+ },
+ "required": ["id"],
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-forget.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-forget.json
new file mode 100644
index 000000000000..4d511752dc09
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-forget.json
@@ -0,0 +1,13 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "description": "Request body for `forget`.",
+ "properties": {
+ "key": {
+ "description": "Memory key to delete.",
+ "maxLength": 300,
+ "type": "string"
+ }
+ },
+ "required": ["key"],
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-remember.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-remember.json
new file mode 100644
index 000000000000..ad5ff7f8338c
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-remember.json
@@ -0,0 +1,31 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "description": "Request body for `remember`.",
+ "properties": {
+ "content": {
+ "description": "Prose to write. Read verbatim into future prompts.",
+ "maxLength": 50000,
+ "type": "string"
+ },
+ "key": {
+ "description": "Agent-chosen semantic key. Re-using a key updates the existing entry in place.",
+ "maxLength": 300,
+ "type": "string"
+ },
+ "run_id": {
+ "anyOf": [
+ {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Run that authored this memory; persisted as `created_by_run_id` for lineage. Must reference a run on this same project — cross-project run UUIDs are rejected."
+ }
+ },
+ "required": ["key", "content"],
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-search.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-search.json
new file mode 100644
index 000000000000..7f558d76c7ed
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/signals-scout-scratchpad-search.json
@@ -0,0 +1,16 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "limit": {
+ "description": "Max rows to return (default 20, hard cap 100).",
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "text": {
+ "description": "ILIKE substring match against `content`. Omit to return the most recent entries.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/sql-variables-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/sql-variables-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/sql-variables-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/sql-variables-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/sql-variables-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/sql-variables-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/sql-variables-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/sql-variables-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/sql-variables-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/sql-variables-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/sql-variables-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/sql-variables-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-deliveries-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-deliveries-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-deliveries-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-deliveries-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-deliveries-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-deliveries-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-deliveries-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-deliveries-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-test-delivery-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-test-delivery-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/subscriptions-test-delivery-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-test-delivery-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/survey-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/survey-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/survey-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/survey-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/survey-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/survey-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/survey-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/survey-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/survey-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/survey-stats.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-stats.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/survey-stats.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/survey-stats.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/survey-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/survey-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/survey-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/survey-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/surveys-get-all.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/surveys-get-all.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/surveys-get-all.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/surveys-get-all.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/surveys-global-stats.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/surveys-global-stats.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/surveys-global-stats.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/surveys-global-stats.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/switch-organization.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/switch-organization.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/switch-organization.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/switch-organization.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/switch-project.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/switch-project.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/switch-project.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/switch-project.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/update-feature-flag.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/update-feature-flag.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/update-feature-flag.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/update-feature-flag.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/usage-metrics-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/usage-metrics-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/usage-metrics-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/usage-metrics-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/usage-metrics-destroy.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/usage-metrics-destroy.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/usage-metrics-destroy.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/usage-metrics-destroy.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/usage-metrics-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/usage-metrics-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v1/usage-metrics-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/usage-metrics-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/usage-metrics-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/usage-metrics-partial-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/usage-metrics-partial-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/usage-metrics-partial-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/usage-metrics-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/usage-metrics-retrieve.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v1/usage-metrics-retrieve.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/usage-metrics-retrieve.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/user-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/user-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/user-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/user-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/user-home-settings-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/user-home-settings-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/user-home-settings-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/user-home-settings-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/user-home-settings-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/user-home-settings-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/user-home-settings-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/user-home-settings-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/user-settings-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/user-settings-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/user-settings-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/user-settings-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/entity-search.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/entity-search.json
deleted file mode 100644
index 476aa4ac83e7..000000000000
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/entity-search.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "entities": {
- "description": "Entity types to search. If not specified, searches all types. Available: insight, dashboard, experiment, feature_flag, notebook, action, cohort, event_definition, survey",
- "items": {
- "enum": [
- "insight",
- "dashboard",
- "experiment",
- "feature_flag",
- "notebook",
- "action",
- "cohort",
- "event_definition",
- "survey"
- ],
- "type": "string"
- },
- "type": "array"
- },
- "query": {
- "description": "Search query to find entities by name or description",
- "minLength": 1,
- "type": "string"
- }
- },
- "required": ["query"],
- "type": "object"
-}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/event-definitions-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/event-definitions-list.json
deleted file mode 100644
index b4e5be432e15..000000000000
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/event-definitions-list.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "limit": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "offset": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "q": {
- "description": "Search query to filter event names. Only use if there are lots of events.",
- "type": "string"
- }
- },
- "type": "object"
-}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/hogql-schema.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/hogql-schema.json
deleted file mode 100644
index 2459a2deffbb..000000000000
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/hogql-schema.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "connectionId": {
- "description": "Optional id of an external data source (e.g. a Postgres or DuckDB direct-query connection). When set, returns the schema of that source instead of the ClickHouse catalog. Use external-data-sources-connections-list to discover available connection ids.",
- "type": "string"
- }
- },
- "type": "object"
-}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/properties-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/properties-list.json
deleted file mode 100644
index 795e141e1e9d..000000000000
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/properties-list.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "eventName": {
- "description": "Event name to filter properties by, required for event type",
- "type": "string"
- },
- "includePredefinedProperties": {
- "description": "Whether to include predefined properties",
- "type": "boolean"
- },
- "limit": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "offset": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "type": {
- "description": "Type of properties to get",
- "enum": ["event", "person"],
- "type": "string"
- }
- },
- "required": ["type"],
- "type": "object"
-}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/query-generate-hogql-from-question.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/query-generate-hogql-from-question.json
deleted file mode 100644
index 927a8ec40b25..000000000000
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/query-generate-hogql-from-question.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "question": {
- "description": "Your natural language query describing the SQL insight (max 1000 characters).",
- "maxLength": 1000,
- "type": "string"
- }
- },
- "required": ["question"],
- "type": "object"
-}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/query-run.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/query-run.json
deleted file mode 100644
index de6178220b25..000000000000
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/query-run.json
+++ /dev/null
@@ -1,1928 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "query": {
- "oneOf": [
- {
- "properties": {
- "kind": {
- "const": "InsightVizNode",
- "type": "string"
- },
- "source": {
- "oneOf": [
- {
- "properties": {
- "breakdownFilter": {
- "properties": {
- "breakdown": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "breakdown_limit": {
- "type": "number"
- },
- "breakdown_type": {
- "anyOf": [
- {
- "enum": ["person", "event"],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "event"
- }
- },
- "type": "object"
- },
- "compareFilter": {
- "properties": {
- "compare": {
- "default": false,
- "type": "boolean"
- },
- "compare_to": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "conversionGoal": {
- "anyOf": [
- {},
- {
- "type": "null"
- }
- ]
- },
- "dateRange": {
- "properties": {
- "date_from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "date_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "explicitDate": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "filterTestAccounts": {
- "default": false,
- "type": "boolean"
- },
- "interval": {
- "default": "day",
- "enum": ["hour", "day", "week", "month"],
- "type": "string"
- },
- "kind": {
- "const": "TrendsQuery",
- "type": "string"
- },
- "properties": {
- "anyOf": [
- {
- "items": {
- "anyOf": [
- {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ],
- "default": []
- },
- "series": {
- "items": {
- "properties": {
- "custom_name": {
- "description": "A display name",
- "type": "string"
- },
- "event": {
- "type": "string"
- },
- "kind": {
- "const": "EventsNode",
- "type": "string"
- },
- "limit": {
- "type": "number"
- },
- "math": {
- "anyOf": [
- {
- "enum": [
- "total",
- "dau",
- "weekly_active",
- "monthly_active",
- "unique_session",
- "first_time_for_user",
- "first_matching_event_for_user"
- ],
- "type": "string"
- },
- {
- "enum": [
- "avg",
- "sum",
- "min",
- "max",
- "median",
- "p75",
- "p90",
- "p95",
- "p99"
- ],
- "type": "string"
- }
- ]
- },
- "math_property": {
- "type": "string"
- },
- "properties": {
- "anyOf": [
- {
- "items": {
- "anyOf": [
- {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ]
- }
- },
- "required": ["custom_name", "kind"],
- "type": "object"
- },
- "type": "array"
- },
- "trendsFilter": {
- "properties": {
- "display": {
- "default": "ActionsLineGraph",
- "enum": [
- "ActionsLineGraph",
- "ActionsTable",
- "ActionsPie",
- "ActionsBar",
- "ActionsStackedBar",
- "ActionsAreaGraph",
- "ActionsBarValue",
- "WorldMap",
- "BoldNumber",
- "TwoDimensionalHeatmap"
- ],
- "type": "string"
- },
- "showLegend": {
- "default": false,
- "type": "boolean"
- }
- },
- "type": "object"
- }
- },
- "required": ["kind", "series"],
- "type": "object"
- },
- {
- "properties": {
- "breakdownFilter": {
- "properties": {
- "breakdown": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- }
- ]
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "breakdown_limit": {
- "type": "number"
- },
- "breakdown_type": {
- "anyOf": [
- {
- "enum": ["person", "event"],
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "default": "event"
- }
- },
- "type": "object"
- },
- "dateRange": {
- "properties": {
- "date_from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "date_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "explicitDate": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "filterTestAccounts": {
- "default": false,
- "type": "boolean"
- },
- "funnelsFilter": {
- "properties": {
- "breakdownAttributionType": {
- "enum": ["first_touch", "last_touch", "all_events"],
- "type": "string"
- },
- "breakdownAttributionValue": {
- "type": "number"
- },
- "funnelFromStep": {
- "type": "number"
- },
- "funnelOrderType": {
- "enum": ["ordered", "unordered", "strict"],
- "type": "string"
- },
- "funnelStepReference": {
- "enum": ["total", "previous"],
- "type": "string"
- },
- "funnelToStep": {
- "type": "number"
- },
- "funnelVizType": {
- "enum": ["steps", "time_to_convert", "trends"],
- "type": "string"
- },
- "funnelWindowInterval": {
- "default": 14,
- "type": "number"
- },
- "funnelWindowIntervalUnit": {
- "default": "day",
- "enum": ["minute", "hour", "day", "week", "month"],
- "type": "string"
- },
- "layout": {
- "enum": ["horizontal", "vertical"],
- "type": "string"
- }
- },
- "type": "object"
- },
- "interval": {
- "enum": ["hour", "day", "week", "month"],
- "type": "string"
- },
- "kind": {
- "const": "FunnelsQuery",
- "type": "string"
- },
- "properties": {
- "anyOf": [
- {
- "items": {
- "anyOf": [
- {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ],
- "default": []
- },
- "series": {
- "items": {
- "properties": {
- "custom_name": {
- "description": "A display name",
- "type": "string"
- },
- "event": {
- "type": "string"
- },
- "kind": {
- "const": "EventsNode",
- "type": "string"
- },
- "limit": {
- "type": "number"
- },
- "math": {
- "anyOf": [
- {
- "enum": [
- "total",
- "dau",
- "weekly_active",
- "monthly_active",
- "unique_session",
- "first_time_for_user",
- "first_matching_event_for_user"
- ],
- "type": "string"
- },
- {
- "enum": [
- "avg",
- "sum",
- "min",
- "max",
- "median",
- "p75",
- "p90",
- "p95",
- "p99"
- ],
- "type": "string"
- }
- ]
- },
- "math_property": {
- "type": "string"
- },
- "properties": {
- "anyOf": [
- {
- "items": {
- "anyOf": [
- {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ]
- }
- },
- "required": ["custom_name", "kind"],
- "type": "object"
- },
- "minItems": 2,
- "type": "array"
- }
- },
- "required": ["kind", "series"],
- "type": "object"
- },
- {
- "properties": {
- "dateRange": {
- "properties": {
- "date_from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "date_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "explicitDate": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "filterTestAccounts": {
- "default": false,
- "type": "boolean"
- },
- "kind": {
- "const": "PathsQuery",
- "type": "string"
- },
- "pathsFilter": {
- "default": {
- "edgeLimit": 50,
- "stepLimit": 5
- },
- "properties": {
- "edgeLimit": {
- "default": 50,
- "description": "Maximum number of edges to return (default 50)",
- "type": "number"
- },
- "endPoint": {
- "description": "Only show paths ending at this step",
- "type": "string"
- },
- "excludeEvents": {
- "description": "Events to exclude from the path",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "includeEventTypes": {
- "items": {
- "enum": ["$pageview", "$screen", "custom_event", "hogql"],
- "type": "string"
- },
- "type": "array"
- },
- "localPathCleaningFilters": {
- "description": "Regex rules to clean/simplify path step names",
- "items": {
- "properties": {
- "alias": {
- "type": "string"
- },
- "regex": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "type": "array"
- },
- "maxEdgeWeight": {
- "type": "number"
- },
- "minEdgeWeight": {
- "type": "number"
- },
- "pathGroupings": {
- "description": "Wildcard groups to merge similar path steps",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "pathsHogQLExpression": {
- "description": "A HogQL expression to use as the path step name. Requires includeEventTypes to contain \"hogql\".",
- "type": "string"
- },
- "startPoint": {
- "description": "Only show paths starting at this step",
- "type": "string"
- },
- "stepLimit": {
- "default": 5,
- "description": "Maximum number of path steps (default 5)",
- "type": "number"
- }
- },
- "type": "object"
- },
- "properties": {
- "anyOf": [
- {
- "items": {
- "anyOf": [
- {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ]
- },
- "type": "array"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ],
- "default": []
- }
- },
- "required": ["kind"],
- "type": "object"
- }
- ]
- }
- },
- "required": ["kind", "source"],
- "type": "object"
- },
- {
- "properties": {
- "chartSettings": {
- "properties": {
- "seriesBreakdownColumn": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Column that splits a single Y metric into multiple colored series."
- },
- "showLegend": {
- "type": "boolean"
- },
- "showNullsAsZero": {
- "type": "boolean"
- },
- "stackBars100": {
- "type": "boolean"
- },
- "xAxis": {
- "description": "Column used as the X axis, usually a time bucket or category.",
- "properties": {
- "column": {
- "description": "Name of a column returned by the SQL query.",
- "type": "string"
- },
- "settings": {
- "properties": {
- "display": {
- "properties": {
- "displayType": {
- "enum": ["auto", "line", "bar", "area"],
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "yAxisPosition": {
- "enum": ["left", "right"],
- "type": "string"
- }
- },
- "type": "object"
- },
- "formatting": {
- "description": "Display formatting for this axis, such as percent, decimals, prefix, or suffix.",
- "properties": {
- "decimalPlaces": {
- "type": "number"
- },
- "prefix": {
- "type": "string"
- },
- "style": {
- "enum": ["none", "number", "short", "percent"],
- "type": "string"
- },
- "suffix": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "type": "object"
- }
- },
- "required": ["column"],
- "type": "object"
- },
- "yAxis": {
- "description": "Numeric columns plotted as Y series. Include only final metrics the user cares about, not helper columns such as numerators or denominators.",
- "items": {
- "properties": {
- "column": {
- "description": "Name of a column returned by the SQL query.",
- "type": "string"
- },
- "settings": {
- "properties": {
- "display": {
- "properties": {
- "displayType": {
- "enum": ["auto", "line", "bar", "area"],
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "yAxisPosition": {
- "enum": ["left", "right"],
- "type": "string"
- }
- },
- "type": "object"
- },
- "formatting": {
- "description": "Display formatting for this axis, such as percent, decimals, prefix, or suffix.",
- "properties": {
- "decimalPlaces": {
- "type": "number"
- },
- "prefix": {
- "type": "string"
- },
- "style": {
- "enum": ["none", "number", "short", "percent"],
- "type": "string"
- },
- "suffix": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "type": "object"
- }
- },
- "required": ["column"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "display": {
- "description": "Visualization type. Time series should usually use ActionsLineGraph or ActionsAreaGraph; use ActionsTable only when table rows are the intended output.",
- "enum": [
- "ActionsLineGraph",
- "ActionsTable",
- "ActionsPie",
- "ActionsBar",
- "ActionsStackedBar",
- "ActionsAreaGraph",
- "ActionsBarValue",
- "WorldMap",
- "BoldNumber",
- "TwoDimensionalHeatmap"
- ],
- "type": "string"
- },
- "kind": {
- "const": "DataVisualizationNode",
- "type": "string"
- },
- "source": {
- "properties": {
- "connectionId": {
- "description": "Optional id of an external data source (e.g. a Postgres or DuckDB direct-query connection). When set, the query runs against that source instead of ClickHouse. Use external-data-sources-connections-list to discover available connection ids.",
- "type": "string"
- },
- "filters": {
- "properties": {
- "dateRange": {
- "properties": {
- "date_from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "date_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "explicitDate": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "filterTestAccounts": {
- "type": "boolean"
- },
- "properties": {
- "items": {
- "anyOf": [
- {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ]
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "kind": {
- "const": "HogQLQuery",
- "type": "string"
- },
- "query": {
- "type": "string"
- }
- },
- "required": ["kind", "query"],
- "type": "object"
- },
- "tableSettings": {
- "properties": {
- "columns": {
- "description": "Columns to display and their order.",
- "items": {
- "properties": {
- "column": {
- "description": "Name of a column returned by the SQL query.",
- "type": "string"
- },
- "settings": {
- "properties": {
- "display": {
- "properties": {
- "displayType": {
- "enum": ["auto", "line", "bar", "area"],
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "yAxisPosition": {
- "enum": ["left", "right"],
- "type": "string"
- }
- },
- "type": "object"
- },
- "formatting": {
- "description": "Display formatting for this axis, such as percent, decimals, prefix, or suffix.",
- "properties": {
- "decimalPlaces": {
- "type": "number"
- },
- "prefix": {
- "type": "string"
- },
- "style": {
- "enum": ["none", "number", "short", "percent"],
- "type": "string"
- },
- "suffix": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "type": "object"
- }
- },
- "required": ["column"],
- "type": "object"
- },
- "type": "array"
- },
- "pinnedColumns": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "transpose": {
- "type": "boolean"
- }
- },
- "type": "object"
- }
- },
- "required": ["kind", "source"],
- "type": "object"
- },
- {
- "properties": {
- "connectionId": {
- "description": "Optional id of an external data source (e.g. a Postgres or DuckDB direct-query connection). When set, the query runs against that source instead of ClickHouse. Use external-data-sources-connections-list to discover available connection ids.",
- "type": "string"
- },
- "filters": {
- "properties": {
- "dateRange": {
- "properties": {
- "date_from": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "date_to": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "explicitDate": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "filterTestAccounts": {
- "type": "boolean"
- },
- "properties": {
- "items": {
- "anyOf": [
- {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- {
- "properties": {
- "type": {
- "enum": ["AND", "OR"],
- "type": "string"
- },
- "values": {
- "items": {
- "properties": {
- "key": {
- "type": "string"
- },
- "operator": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": ["key"],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": ["type", "values"],
- "type": "object"
- }
- ]
- },
- "type": "array"
- }
- },
- "type": "object"
- },
- "kind": {
- "const": "HogQLQuery",
- "type": "string"
- },
- "query": {
- "type": "string"
- }
- },
- "required": ["kind", "query"],
- "type": "object"
- }
- ]
- }
- },
- "required": ["query"],
- "type": "object"
-}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/query-validate.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/query-validate.json
deleted file mode 100644
index 494b4f67c356..000000000000
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/v1/query-validate.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "$schema": "https://json-schema.org/draft/2020-12/schema",
- "properties": {
- "connectionId": {
- "description": "Optional id of an external data source (e.g. a Postgres or DuckDB direct-query connection). When set, validates against that source instead of the ClickHouse catalog. Use external-data-sources-connections-list to discover available connection ids.",
- "type": "string"
- },
- "language": {
- "default": "hogQL",
- "description": "Language to validate. Defaults to 'hogQL' (full SELECT statements). Use 'hogQLExpr' for a bare expression, 'hog' or 'hogTemplate' for Hog source.",
- "enum": ["hogQL", "hogQLExpr", "hog", "hogTemplate"],
- "type": "string"
- },
- "query": {
- "description": "The HogQL (ClickHouse-flavored SQL) query to validate. Parsed and type-checked without executing, so there is no ClickHouse cost.",
- "minLength": 1,
- "type": "string"
- }
- },
- "required": ["query"],
- "type": "object"
-}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-create.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-create.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/view-create.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-delete.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-delete.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/view-delete.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/view-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/view-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-materialize.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-materialize.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-materialize.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/view-materialize.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-run-history.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-run-history.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-run-history.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/view-run-history.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-run.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-run.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-run.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/view-run.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-unmaterialize.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-unmaterialize.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-unmaterialize.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/view-unmaterialize.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-update.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/view-update.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/view-update.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/web-analytics-weekly-digest.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/web-analytics-weekly-digest.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/web-analytics-weekly-digest.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/web-analytics-weekly-digest.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/workflows-archive.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-archive.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/workflows-archive.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-archive.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-create.json
new file mode 100644
index 000000000000..84fd0bc856c2
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-create.json
@@ -0,0 +1,251 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "actions": {
+ "description": "Ordered action nodes. Exactly one type='trigger' required. Typically one type='exit' too.",
+ "items": {
+ "properties": {
+ "config": {
+ "description": "Type-specific config keyed by action type. trigger: {type: event|webhook|manual|batch|schedule|tracking_pixel, filters?}. filters shape: {events: [{id, name, type:'events', properties:[<cond>]}], properties:[<cond>], actions:[...], filter_test_accounts:<bool>}. <cond>: {key, value, operator, type: event|person|group}. function*: {template_id, inputs: {<key>: {value: <str>}}}. Wrap values in {value:...} to enable hog templating ({person.x}, {event.x}); flat strings won't interpolate. delay: {delay_duration: '<number><unit>'} where unit is m|h|d. Fractions OK ('0.5m'=30s; seconds unsupported). Per-unit max m<=60, h<=24, d<=30; values above are SILENTLY CLAMPED. Max 30d. conditional_branch: {conditions: [{filters}, ...]}. Index N matches the 'branch' edge with index:N. wait_until_condition: {condition: {filters}, max_wait_duration: <duration>} (same rules as delay). exit: {reason}."
+ },
+ "created_at": {
+ "description": "Created at (epoch ms). Frontend-managed.",
+ "type": "number"
+ },
+ "description": {
+ "default": "",
+ "description": "Optional description.",
+ "type": "string"
+ },
+ "filters": {
+ "anyOf": [
+ {
+ "properties": {
+ "actions": {
+ "items": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "bytecode": {},
+ "bytecode_error": {
+ "type": "string"
+ },
+ "data_warehouse": {
+ "items": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "events": {
+ "items": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "filter_test_accounts": {
+ "type": "boolean"
+ },
+ "properties": {
+ "items": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "default": "events",
+ "description": "* `events` - events\n* `person-updates` - person-updates\n* `data-warehouse-table` - data-warehouse-table",
+ "enum": ["events", "person-updates", "data-warehouse-table"],
+ "type": "string"
+ },
+ "transpiled": {}
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Property filters gating this action."
+ },
+ "id": {
+ "description": "Unique node ID within the workflow.",
+ "type": "string"
+ },
+ "name": {
+ "description": "Display name.",
+ "maxLength": 400,
+ "type": "string"
+ },
+ "on_error": {
+ "anyOf": [
+ {
+ "description": "* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch",
+ "enum": ["continue", "abort", "complete", "branch"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).\n\n* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch"
+ },
+ "output_variable": {
+ "description": "Output variable definition for downstream actions."
+ },
+ "type": {
+ "description": "trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.",
+ "maxLength": 100,
+ "type": "string"
+ },
+ "updated_at": {
+ "description": "Updated at (epoch ms). Frontend-managed.",
+ "type": "number"
+ }
+ },
+ "required": ["id", "name", "type", "config"],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "conversion": {
+ "description": "Conversion goal: {filters: [<cond>, ...], window_minutes}. <cond>: {key, value, operator, type: event|person|group}. Empty filters = any event in window. Required for exit_on_conversion / exit_on_trigger_not_matched_or_conversion. bytecode compiled server-side."
+ },
+ "description": {
+ "default": "",
+ "description": "Optional description.",
+ "type": "string"
+ },
+ "edges": {
+ "description": "Graph edges: [{from, to, type: 'continue'|'branch', index?}]. 'continue' = fall-through (sequential, or no-match path of conditional_branch). 'branch' requires 'index': matches config.conditions[index] on conditional_branch / wait_until_condition. Every non-exit action needs a reachable next action ('No next action found' otherwise).",
+ "items": {
+ "properties": {
+ "from": {
+ "description": "Source action id.",
+ "type": "string"
+ },
+ "index": {
+ "description": "Required for type='branch'. Index into config.conditions on conditional_branch / wait_until_condition.",
+ "type": "number"
+ },
+ "to": {
+ "description": "Target action id.",
+ "type": "string"
+ },
+ "type": {
+ "description": "continue: fall-through (sequential or the no-match path of conditional_branch). branch: requires 'index' matching config.conditions[index].\n\n* `continue` - continue\n* `branch` - branch",
+ "enum": ["continue", "branch"],
+ "type": "string"
+ }
+ },
+ "required": ["to", "type", "from"],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "exit_condition": {
+ "description": "exit_only_at_end: only at exit node (default). exit_on_conversion: also on conversion (needs 'conversion'; silent no-op otherwise). exit_on_trigger_not_matched: also when trigger filter stops matching. exit_on_trigger_not_matched_or_conversion: both (needs 'conversion').\n\n* `exit_on_conversion` - Conversion\n* `exit_on_trigger_not_matched` - Trigger Not Matched\n* `exit_on_trigger_not_matched_or_conversion` - Trigger Not Matched Or Conversion\n* `exit_only_at_end` - Only At End",
+ "enum": [
+ "exit_on_conversion",
+ "exit_on_trigger_not_matched",
+ "exit_on_trigger_not_matched_or_conversion",
+ "exit_only_at_end"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "anyOf": [
+ {
+ "maxLength": 400,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Workflow name."
+ },
+ "status": {
+ "description": "draft (no execution), active (live), archived (disabled).\n\n* `draft` - Draft\n* `active` - Active\n* `archived` - Archived",
+ "enum": ["draft", "active", "archived"],
+ "type": "string"
+ },
+ "trigger_masking": {
+ "anyOf": [
+ {
+ "properties": {
+ "bytecode": {
+ "description": "Auto-compiled from hash. Do not set."
+ },
+ "hash": {
+ "description": "HogQL template, e.g. '{person.properties.email}'.",
+ "type": "string"
+ },
+ "threshold": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Min matching events before triggering (k-anonymity)."
+ },
+ "ttl": {
+ "anyOf": [
+ {
+ "maximum": 94608000,
+ "minimum": 60,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Hash TTL in seconds (60 to ~94M / 3y)."
+ }
+ },
+ "required": ["hash"],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Optional dedup: {hash: <HogQL template>, ttl: <seconds, 60-94608000>, threshold?: <int>}. Server compiles bytecode from hash. Omit to disable."
+ },
+ "variables": {
+ "description": "Workflow vars (key, type, default). Total <5KB.",
+ "items": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Variable: {key, type: string|number|boolean, default}.",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": ["actions"],
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/workflows-disable.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-disable.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/workflows-disable.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-disable.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/v2/workflows-enable.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-enable.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/v2/workflows-enable.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-enable.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/workflows-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-get.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/workflows-get.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-get.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/common/workflows-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-list.json
similarity index 100%
rename from services/mcp/tests/unit/__snapshots__/tool-schemas/common/workflows-list.json
rename to services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-list.json
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-run.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-run.json
new file mode 100644
index 000000000000..6e1f336a725d
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-run.json
@@ -0,0 +1,28 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "current_action_id": {
+ "description": "Start from this action ID instead of the trigger.",
+ "type": "string"
+ },
+ "globals": {
+ "additionalProperties": {},
+ "description": "Test trigger payload, typically {event, person, groups}.",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "id": {
+ "description": "A UUID string identifying this hog flow.",
+ "type": "string"
+ },
+ "mock_async_functions": {
+ "default": true,
+ "description": "True (default) mocks HTTP/email/SMS. False fires real side effects.",
+ "type": "boolean"
+ }
+ },
+ "required": ["id"],
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-update.json
new file mode 100644
index 000000000000..d52574e422e3
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/workflows-update.json
@@ -0,0 +1,249 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "actions": {
+ "description": "Ordered action nodes. Exactly one type='trigger' required. Typically one type='exit' too.",
+ "items": {
+ "properties": {
+ "config": {
+ "description": "Type-specific config keyed by action type. trigger: {type: event|webhook|manual|batch|schedule|tracking_pixel, filters?}. filters shape: {events: [{id, name, type:'events', properties:[<cond>]}], properties:[<cond>], actions:[...], filter_test_accounts:<bool>}. <cond>: {key, value, operator, type: event|person|group}. function*: {template_id, inputs: {<key>: {value: <str>}}}. Wrap values in {value:...} to enable hog templating ({person.x}, {event.x}); flat strings won't interpolate. delay: {delay_duration: '<number><unit>'} where unit is m|h|d. Fractions OK ('0.5m'=30s; seconds unsupported). Per-unit max m<=60, h<=24, d<=30; values above are SILENTLY CLAMPED. Max 30d. conditional_branch: {conditions: [{filters}, ...]}. Index N matches the 'branch' edge with index:N. wait_until_condition: {condition: {filters}, max_wait_duration: <duration>} (same rules as delay). exit: {reason}."
+ },
+ "created_at": {
+ "description": "Created at (epoch ms). Frontend-managed.",
+ "type": "number"
+ },
+ "description": {
+ "default": "",
+ "description": "Optional description.",
+ "type": "string"
+ },
+ "filters": {
+ "anyOf": [
+ {
+ "properties": {
+ "actions": {
+ "items": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "bytecode": {},
+ "bytecode_error": {
+ "type": "string"
+ },
+ "data_warehouse": {
+ "items": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "events": {
+ "items": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "filter_test_accounts": {
+ "type": "boolean"
+ },
+ "properties": {
+ "items": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "default": "events",
+ "description": "* `events` - events\n* `person-updates` - person-updates\n* `data-warehouse-table` - data-warehouse-table",
+ "enum": ["events", "person-updates", "data-warehouse-table"],
+ "type": "string"
+ },
+ "transpiled": {}
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Property filters gating this action."
+ },
+ "id": {
+ "description": "Unique node ID within the workflow.",
+ "type": "string"
+ },
+ "name": {
+ "description": "Display name.",
+ "maxLength": 400,
+ "type": "string"
+ },
+ "on_error": {
+ "anyOf": [
+ {
+ "description": "* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch",
+ "enum": ["continue", "abort", "complete", "branch"],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "On failure: continue (skip), abort (stop), complete (mark done), branch (follow error edge).\n\n* `continue` - continue\n* `abort` - abort\n* `complete` - complete\n* `branch` - branch"
+ },
+ "output_variable": {
+ "description": "Output variable definition for downstream actions."
+ },
+ "type": {
+ "description": "trigger | function | function_email | function_sms | function_push | delay | conditional_branch | wait_until_condition | wait_until_time_window | random_cohort_branch | exit.",
+ "maxLength": 100,
+ "type": "string"
+ },
+ "updated_at": {
+ "description": "Updated at (epoch ms). Frontend-managed.",
+ "type": "number"
+ }
+ },
+ "required": ["id", "name", "type", "config"],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "conversion": {
+ "description": "Conversion goal: {filters: [<cond>, ...], window_minutes}. <cond>: {key, value, operator, type: event|person|group}. Empty filters = any event in window. Required for exit_on_conversion / exit_on_trigger_not_matched_or_conversion. bytecode compiled server-side."
+ },
+ "description": {
+ "description": "Optional description.",
+ "type": "string"
+ },
+ "edges": {
+ "description": "Graph edges: [{from, to, type: 'continue'|'branch', index?}]. 'continue' = fall-through (sequential, or no-match path of conditional_branch). 'branch' requires 'index': matches config.conditions[index] on conditional_branch / wait_until_condition. Every non-exit action needs a reachable next action ('No next action found' otherwise).",
+ "items": {
+ "properties": {
+ "from": {
+ "description": "Source action id.",
+ "type": "string"
+ },
+ "index": {
+ "description": "Required for type='branch'. Index into config.conditions on conditional_branch / wait_until_condition.",
+ "type": "number"
+ },
+ "to": {
+ "description": "Target action id.",
+ "type": "string"
+ },
+ "type": {
+ "description": "continue: fall-through (sequential or the no-match path of conditional_branch). branch: requires 'index' matching config.conditions[index].\n\n* `continue` - continue\n* `branch` - branch",
+ "enum": ["continue", "branch"],
+ "type": "string"
+ }
+ },
+ "required": ["to", "type", "from"],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "exit_condition": {
+ "description": "exit_only_at_end: only at exit node (default). exit_on_conversion: also on conversion (needs 'conversion'; silent no-op otherwise). exit_on_trigger_not_matched: also when trigger filter stops matching. exit_on_trigger_not_matched_or_conversion: both (needs 'conversion').\n\n* `exit_on_conversion` - Conversion\n* `exit_on_trigger_not_matched` - Trigger Not Matched\n* `exit_on_trigger_not_matched_or_conversion` - Trigger Not Matched Or Conversion\n* `exit_only_at_end` - Only At End",
+ "enum": [
+ "exit_on_conversion",
+ "exit_on_trigger_not_matched",
+ "exit_on_trigger_not_matched_or_conversion",
+ "exit_only_at_end"
+ ],
+ "type": "string"
+ },
+ "id": {
+ "description": "A UUID string identifying this hog flow.",
+ "type": "string"
+ },
+ "name": {
+ "anyOf": [
+ {
+ "maxLength": 400,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Workflow name."
+ },
+ "trigger_masking": {
+ "anyOf": [
+ {
+ "properties": {
+ "bytecode": {
+ "description": "Auto-compiled from hash. Do not set."
+ },
+ "hash": {
+ "description": "HogQL template, e.g. '{person.properties.email}'.",
+ "type": "string"
+ },
+ "threshold": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Min matching events before triggering (k-anonymity)."
+ },
+ "ttl": {
+ "anyOf": [
+ {
+ "maximum": 94608000,
+ "minimum": 60,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Hash TTL in seconds (60 to ~94M / 3y)."
+ }
+ },
+ "required": ["hash"],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Optional dedup: {hash: <HogQL template>, ttl: <seconds, 60-94608000>, threshold?: <int>}. Server compiles bytecode from hash. Omit to disable."
+ },
+ "variables": {
+ "description": "Workflow vars (key, type, default). Total <5KB.",
+ "items": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Variable: {key, type: string|number|boolean, default}.",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": ["id"],
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/exec.test.ts b/services/mcp/tests/unit/exec.test.ts
index 7255cf738331..15828e21dc7a 100644
--- a/services/mcp/tests/unit/exec.test.ts
+++ b/services/mcp/tests/unit/exec.test.ts
@@ -473,7 +473,7 @@ describe('exec tool', () => {
getDistinctId: async () => 'test-distinct-id',
trackEvent: async () => {},
}
- const v2Tools = await getToolsFromContext(context, { version: 2 })
+ const v2Tools = await getToolsFromContext(context)
const queryRetention = v2Tools.find((t) => t.name === 'query-retention')
expect(queryRetention).not.toBeUndefined()
const exec = createExecTool(v2Tools, context, 'test', 'test', undefined)
@@ -524,7 +524,7 @@ describe('exec tool', () => {
])('throws redirect when calling deprecated %s', async (deprecated, replacement) => {
const exec = createExec()
await expect(exec.handler(mockContext, { command: `call ${deprecated} {}` })).rejects.toThrow(
- new RegExp(`removed in MCP v2[\\s\\S]*${replacement}`)
+ new RegExp(`was removed[\\s\\S]*${replacement}`)
)
})
@@ -590,15 +590,15 @@ describe('exec tool', () => {
// silently drop the tail of the instructions.
it('keeps the tool description within 2048 characters', async () => {
const context = createSnapshotContext()
- const v2Tools = await getToolsFromContext(context, { version: 2 })
+ const v2Tools = await getToolsFromContext(context)
const toolInfos = v2Tools.map((t) => ({
name: t.name,
- category: getToolDefinition(t.name, 2).category,
+ category: getToolDefinition(t.name).category,
}))
const queryToolInfos = v2Tools
.filter((t) => t.name.startsWith('query-'))
.map((t) => {
- const def = getToolDefinition(t.name, 2)
+ const def = getToolDefinition(t.name)
return {
name: t.name,
title: def.title,
@@ -634,17 +634,15 @@ describe('exec tool', () => {
// so the snapshot has to follow it to keep catching drift in those blocks.
it('matches the full exec tool schema', async () => {
const context = createSnapshotContext()
- const v2Tools = [...(await getToolsFromContext(context, { version: 2 }))].sort((a, b) =>
- a.name.localeCompare(b.name)
- )
+ const v2Tools = [...(await getToolsFromContext(context))].sort((a, b) => a.name.localeCompare(b.name))
const toolInfos = v2Tools.map((t) => ({
name: t.name,
- category: getToolDefinition(t.name, 2).category,
+ category: getToolDefinition(t.name).category,
}))
const queryToolInfos = v2Tools
.filter((t) => t.name.startsWith('query-'))
.map((t) => {
- const def = getToolDefinition(t.name, 2)
+ const def = getToolDefinition(t.name)
return {
name: t.name,
title: def.title,
diff --git a/services/mcp/tests/unit/instructions-formatter-snapshot.test.ts b/services/mcp/tests/unit/instructions-formatter-snapshot.test.ts
index 0a465e0af260..353fbc87d645 100644
--- a/services/mcp/tests/unit/instructions-formatter-snapshot.test.ts
+++ b/services/mcp/tests/unit/instructions-formatter-snapshot.test.ts
@@ -47,21 +47,9 @@ const SNAPSHOT_DIR = path.resolve(__dirname, '__snapshots__', 'instructions')
// package.json). Otherwise the markdown formatter would reflow the snapshot on
// commit and drift from what `formatPrompt` produces, breaking the test.
describe('InstructionsFormatter prompt snapshots', () => {
- it('matches the v1 (legacy) prompt', async () => {
+ it('matches the tools-mode prompt', async () => {
const formatter = new InstructionsFormatter()
- const rendered = formatter.buildV1Instructions()
- await expect(rendered).toMatchFileSnapshot(path.join(SNAPSHOT_DIR, 'tools-v1-instructions.txt'))
- })
-
- it('matches the v1 (legacy) prompt with metadata appended', async () => {
- const formatter = new InstructionsFormatter()
- const rendered = formatter.buildV1Instructions(STATIC_METADATA)
- await expect(rendered).toMatchFileSnapshot(path.join(SNAPSHOT_DIR, 'tools-v1-instructions-with-metadata.txt'))
- })
-
- it('matches the v2 (tools-mode) prompt', async () => {
- const formatter = new InstructionsFormatter()
- const rendered = formatter.buildV2Instructions(STATIC_CTX)
+ const rendered = formatter.buildToolsInstructions(STATIC_CTX)
await expect(rendered).toMatchFileSnapshot(path.join(SNAPSHOT_DIR, 'tools-instructions.txt'))
})
diff --git a/services/mcp/tests/unit/instructions-formatter.test.ts b/services/mcp/tests/unit/instructions-formatter.test.ts
index a96048134b81..2fe126823404 100644
--- a/services/mcp/tests/unit/instructions-formatter.test.ts
+++ b/services/mcp/tests/unit/instructions-formatter.test.ts
@@ -33,35 +33,10 @@ const fullCtx: InstructionsContext = {
}
describe('InstructionsFormatter', () => {
- describe('buildV1Instructions', () => {
- it('returns the legacy section content when no metadata is supplied', () => {
- const formatter = new InstructionsFormatter()
- const result = formatter.buildV1Instructions()
- expect(result).toContain('helpful assistant that can query PostHog API')
- expect(result).toContain("'docs-search' tool")
- })
-
- it('appends metadata to the legacy section when provided', () => {
- const formatter = new InstructionsFormatter()
- const metadata = 'You are currently in project "Test".'
- const result = formatter.buildV1Instructions(metadata)
- expect(result).toContain('helpful assistant that can query PostHog API')
- expect(result).toContain('You are currently in project "Test".')
- const legacyIdx = result.indexOf('helpful assistant')
- const metaIdx = result.indexOf('You are currently')
- expect(legacyIdx).toBeLessThan(metaIdx)
- })
-
- it('treats an empty metadata string as no metadata', () => {
- const formatter = new InstructionsFormatter()
- expect(formatter.buildV1Instructions('')).toBe(formatter.buildV1Instructions())
- })
- })
-
- describe('buildV2Instructions', () => {
+ describe('buildToolsInstructions', () => {
it('resolves every placeholder when fully populated', () => {
const formatter = new InstructionsFormatter()
- const result = formatter.buildV2Instructions(fullCtx)
+ const result = formatter.buildToolsInstructions(fullCtx)
expect(result).toContain('Defined group types: organization')
expect(result).toContain("The user's name is Jane Doe")
expect(result).toContain('Project timezone: America/New_York.')
@@ -77,7 +52,7 @@ describe('InstructionsFormatter', () => {
it('renders the basic functionality, retrieving data, and examples sections', () => {
const formatter = new InstructionsFormatter()
- const result = formatter.buildV2Instructions(fullCtx)
+ const result = formatter.buildToolsInstructions(fullCtx)
expect(result).toContain('### Basic functionality')
expect(result).toContain('### Retrieving data')
expect(result).toContain('### Examples')
@@ -85,7 +60,7 @@ describe('InstructionsFormatter', () => {
it('does not leak any CLI-only sections (tools mode is not exec mode)', () => {
const formatter = new InstructionsFormatter()
- const result = formatter.buildV2Instructions(fullCtx)
+ const result = formatter.buildToolsInstructions(fullCtx)
expect(result).not.toContain('SCHEMA DRILL-DOWN RULE')
expect(result).not.toContain('Using the `posthog` tool')
expect(result).not.toContain('CLI-style command string')
@@ -93,7 +68,7 @@ describe('InstructionsFormatter', () => {
it('omits placeholders cleanly when context fields are undefined', () => {
const formatter = new InstructionsFormatter()
- const result = formatter.buildV2Instructions({ guidelines: 'rules' })
+ const result = formatter.buildToolsInstructions({ guidelines: 'rules' })
expect(result).not.toContain('{guidelines}')
expect(result).not.toContain('{defined_groups}')
expect(result).not.toContain('{tool_domains}')
@@ -103,11 +78,11 @@ describe('InstructionsFormatter', () => {
it('includes the agent-feedback section only when the mcp-feedback-tool flag is on', () => {
const formatter = new InstructionsFormatter()
- const withFeedback = formatter.buildV2Instructions(fullCtx)
+ const withFeedback = formatter.buildToolsInstructions(fullCtx)
expect(withFeedback).toContain('### Sharing feedback on this MCP server')
for (const featureFlags of [undefined, { 'mcp-feedback-tool': false }, {}]) {
- const result = formatter.buildV2Instructions({ ...fullCtx, featureFlags })
+ const result = formatter.buildToolsInstructions({ ...fullCtx, featureFlags })
expect(result).not.toContain('### Sharing feedback on this MCP server')
}
})
diff --git a/services/mcp/tests/unit/posthog/analytics.test.ts b/services/mcp/tests/unit/posthog/analytics.test.ts
index 912998677632..554c1f450f9f 100644
--- a/services/mcp/tests/unit/posthog/analytics.test.ts
+++ b/services/mcp/tests/unit/posthog/analytics.test.ts
@@ -85,7 +85,6 @@ describe('initMcpAnalytics', () => {
projectName: 'Project 101',
}),
getClientUserAgent: vi.fn().mockResolvedValue('test-agent/1.0'),
- getMcpVersion: vi.fn().mockResolvedValue(2),
getOAuthClientName: vi.fn().mockResolvedValue('PostHog Code'),
getReadOnly: vi.fn().mockResolvedValue(true),
getTransport: vi.fn().mockResolvedValue('streamable-http'),
diff --git a/services/mcp/tests/unit/protocol-types.test.ts b/services/mcp/tests/unit/protocol-types.test.ts
index cea2ae51d5b0..96aacad755a1 100644
--- a/services/mcp/tests/unit/protocol-types.test.ts
+++ b/services/mcp/tests/unit/protocol-types.test.ts
@@ -1,9 +1,9 @@
import { describe, expect, it } from 'vitest'
-import { resolveModeAndVersion } from '@/hono/request-state-resolver'
+import { resolveMode } from '@/hono/request-state-resolver'
import { MCPClientProfile } from '@/lib/client-detection'
-describe('resolveModeAndVersion', () => {
+describe('resolveMode', () => {
function profile(overrides: Partial<ConstructorParameters<typeof MCPClientProfile>[0]> = {}): MCPClientProfile {
return new MCPClientProfile({ clientName: 'generic-client', ...overrides })
}
@@ -11,24 +11,18 @@ describe('resolveModeAndVersion', () => {
const base = {
mode: undefined as undefined,
clientProfile: profile(),
- flagVersion: undefined as number | undefined,
- clientVersion: undefined as number | undefined,
}
- it('defaults to version 1, no single exec', () => {
- expect(resolveModeAndVersion(base)).toEqual({ mode: 'tools', useSingleExec: false, version: 1 })
+ it('defaults to tools mode, no single exec', () => {
+ expect(resolveMode(base)).toEqual({ mode: 'tools', useSingleExec: false })
})
- it('explicit mode=cli forces single exec and version 2', () => {
- expect(resolveModeAndVersion({ ...base, mode: 'cli' })).toEqual({
- mode: 'cli',
- useSingleExec: true,
- version: 2,
- })
+ it('explicit mode=cli forces single exec', () => {
+ expect(resolveMode({ ...base, mode: 'cli' })).toEqual({ mode: 'cli', useSingleExec: true })
})
it('explicit mode=tools disables single exec even for a coding agent', () => {
- const result = resolveModeAndVersion({
+ const result = resolveMode({
...base,
mode: 'tools',
clientProfile: profile({ clientName: 'claude-code' }),
@@ -37,15 +31,15 @@ describe('resolveModeAndVersion', () => {
})
it('coding agent activates single exec', () => {
- const result = resolveModeAndVersion({
+ const result = resolveMode({
...base,
clientProfile: profile({ clientName: 'claude-code' }),
})
- expect(result).toEqual({ mode: 'cli', useSingleExec: true, version: 2 })
+ expect(result).toEqual({ mode: 'cli', useSingleExec: true })
})
it('non-coding agent does NOT activate single exec', () => {
- const result = resolveModeAndVersion({
+ const result = resolveMode({
...base,
clientProfile: profile({ clientName: 'some-dashboard-client' }),
})
@@ -53,30 +47,10 @@ describe('resolveModeAndVersion', () => {
})
it('PostHog code consumer activates single exec', () => {
- const result = resolveModeAndVersion({
+ const result = resolveMode({
...base,
clientProfile: profile({ consumer: 'posthog-code' }),
})
expect(result.useSingleExec).toBe(true)
})
-
- it('uses flagVersion when not in single exec mode', () => {
- const result = resolveModeAndVersion({ ...base, flagVersion: 2 })
- expect(result).toEqual({ mode: 'tools', useSingleExec: false, version: 2 })
- })
-
- it('clientVersion overrides default when no flagVersion', () => {
- const result = resolveModeAndVersion({ ...base, clientVersion: 2 })
- expect(result).toEqual({ mode: 'tools', useSingleExec: false, version: 2 })
- })
-
- it('flagVersion takes precedence over clientVersion', () => {
- const result = resolveModeAndVersion({ ...base, flagVersion: 2, clientVersion: 1 })
- expect(result.version).toBe(2)
- })
-
- it('single exec always forces version 2 regardless of flagVersion', () => {
- const result = resolveModeAndVersion({ ...base, mode: 'cli', flagVersion: 1 })
- expect(result).toEqual({ mode: 'cli', useSingleExec: true, version: 2 })
- })
})
diff --git a/services/mcp/tests/unit/query-run-schema.test.ts b/services/mcp/tests/unit/query-run-schema.test.ts
deleted file mode 100644
index 00dc997873b5..000000000000
--- a/services/mcp/tests/unit/query-run-schema.test.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { describe, expect, it } from 'vitest'
-
-import { QueryRunInputSchema } from '@/schema/tool-inputs'
-
-describe('QueryRunInputSchema', () => {
- it('accepts a bare HogQLQuery node', () => {
- const result = QueryRunInputSchema.safeParse({
- query: {
- kind: 'HogQLQuery',
- query: 'SELECT count() AS total FROM system.insight_variables',
- },
- })
-
- expect(result.success).toBe(true)
- })
-})
diff --git a/services/mcp/tests/unit/tool-catalog.test.ts b/services/mcp/tests/unit/tool-catalog.test.ts
index 73af5e9e4c7a..dad10e8dee52 100644
--- a/services/mcp/tests/unit/tool-catalog.test.ts
+++ b/services/mcp/tests/unit/tool-catalog.test.ts
@@ -47,7 +47,6 @@ vi.mock('@/tools', () => ({
TOOL_MAP: {
'tool-a': () => makeToolBase('tool-a'),
'tool-b': () => makeToolBase('tool-b'),
- 'tool-v2-only': () => makeToolBase('tool-v2-only', { mcpVersion: 2 }),
},
}))
@@ -61,7 +60,6 @@ const DEFINITIONS: Record<string, FakeDefinition> = {
'tool-a': fakeDef({ required_scopes: ['project:read'] }),
'tool-b': fakeDef({ feature: 'insights', annotations: { ...fakeDef().annotations, readOnlyHint: true } }),
'gen-tool-c': fakeDef({ required_scopes: ['action:write'] }),
- 'tool-v2-only': fakeDef(),
}
vi.mock('@/tools/toolDefinitions', () => ({
@@ -76,7 +74,6 @@ vi.mock('@/tools/toolDefinitions', () => ({
getToolsForFeatures: (options?: {
features?: string[]
tools?: string[]
- version?: number
readOnly?: boolean
aiConsentGiven?: boolean
featureFlags?: Record<string, boolean>
@@ -151,23 +148,6 @@ describe('ToolCatalog', () => {
expect(names).toEqual(['tool-b'])
})
- it('should include v2-only tools when version is 2', () => {
- const tools = catalog.getFilteredTools({
- scopes: ['project:read', 'action:write'],
- version: 2,
- })
- const names = tools.map((t) => t.name).sort()
- expect(names).toEqual(['gen-tool-c', 'tool-a', 'tool-b', 'tool-v2-only'])
- })
-
- it('should exclude v2-only tools when version is 1', () => {
- const tools = catalog.getFilteredTools({
- scopes: ['project:read', 'action:write'],
- version: 1,
- })
- expect(tools.find((t) => t.name === 'tool-v2-only')).toBeUndefined()
- })
-
it('should filter by readOnly when passed through to getToolsForFeatures', () => {
const tools = catalog.getFilteredTools({
scopes: ['project:read', 'action:write'],
diff --git a/services/mcp/tests/unit/tool-filtering.test.ts b/services/mcp/tests/unit/tool-filtering.test.ts
index 3b14f2672e78..5e48c81da0cb 100644
--- a/services/mcp/tests/unit/tool-filtering.test.ts
+++ b/services/mcp/tests/unit/tool-filtering.test.ts
@@ -19,8 +19,8 @@ import type { Context } from '@/tools/types'
* Tests use this to assert that filtered results never drop these tools,
* without hard-coding the exact set (which grows as utility tools are added).
*/
-const collectAlwaysAvailableToolNames = (version?: number): string[] =>
- Object.entries(getToolDefinitions(version))
+const collectAlwaysAvailableToolNames = (): string[] =>
+ Object.entries(getToolDefinitions())
.filter(([_, def]: [string, ToolDefinition]) => def.always_available === true)
.map(([name]) => name)
@@ -61,7 +61,7 @@ describe('Tool Filtering - Features', () => {
{
features: ['workspace'],
description: 'workspace tools',
- expectedTools: ['switch-organization', 'projects-get', 'switch-project', 'property-definitions'],
+ expectedTools: ['switch-organization', 'projects-get', 'switch-project'],
},
{
features: ['error_tracking'],
@@ -114,8 +114,8 @@ describe('Tool Filtering - Features', () => {
}
})
- it('should expose all annotation tools in v2', () => {
- const tools = getToolsForFeatures({ features: ['annotations'], version: 2 })
+ it('should expose all annotation tools', () => {
+ const tools = getToolsForFeatures({ features: ['annotations'] })
expect(tools).toContain('annotation-create')
expect(tools).toContain('annotation-delete')
@@ -212,18 +212,18 @@ describe('Tool Filtering - Tools Allowlist', () => {
it('should still apply aiConsentGiven on top of tools filter', () => {
const withoutConsent = getToolsForFeatures({
- tools: ['dashboard-get', 'query-generate-hogql-from-question'],
+ tools: ['dashboard-get', 'llma-summarization-create'],
aiConsentGiven: false,
})
expect(withoutConsent).toContain('dashboard-get')
- expect(withoutConsent).not.toContain('query-generate-hogql-from-question')
+ expect(withoutConsent).not.toContain('llma-summarization-create')
const withConsent = getToolsForFeatures({
- tools: ['dashboard-get', 'query-generate-hogql-from-question'],
+ tools: ['dashboard-get', 'llma-summarization-create'],
aiConsentGiven: true,
})
expect(withConsent).toContain('dashboard-get')
- expect(withConsent).toContain('query-generate-hogql-from-question')
+ expect(withConsent).toContain('llma-summarization-create')
})
})
@@ -372,10 +372,7 @@ describe('OAUTH_SCOPES_SUPPORTED completeness', () => {
it('should include every scope referenced in tool definitions', () => {
const supportedScopes = new Set<string>(OAUTH_SCOPES_SUPPORTED)
- const allDefinitions = {
- ...getToolDefinitions(1),
- ...getToolDefinitions(2),
- }
+ const allDefinitions = getToolDefinitions()
const scopesFromTools = new Set<string>()
for (const def of Object.values(allDefinitions)) {
@@ -454,17 +451,17 @@ describe('Tool Filtering - excludeTools', () => {
describe('Tool Filtering - AI Consent', () => {
it('should exclude tools requiring AI consent when aiConsentGiven is false', () => {
const tools = getToolsForFeatures({ aiConsentGiven: false })
- expect(tools).not.toContain('query-generate-hogql-from-question')
+ expect(tools).not.toContain('llma-summarization-create')
})
it('should include tools requiring AI consent when aiConsentGiven is true', () => {
const tools = getToolsForFeatures({ aiConsentGiven: true })
- expect(tools).toContain('query-generate-hogql-from-question')
+ expect(tools).toContain('llma-summarization-create')
})
it('should exclude tools requiring AI consent when aiConsentGiven is undefined', () => {
const tools = getToolsForFeatures({ aiConsentGiven: undefined })
- expect(tools).not.toContain('query-generate-hogql-from-question')
+ expect(tools).not.toContain('llma-summarization-create')
})
it('should not exclude tools that do not require AI consent when aiConsentGiven is false', () => {
@@ -474,9 +471,9 @@ describe('Tool Filtering - AI Consent', () => {
})
it('should combine aiConsentGiven with feature filtering', () => {
- const tools = getToolsForFeatures({ features: ['insights', 'product_analytics'], aiConsentGiven: false })
- expect(tools).not.toContain('query-generate-hogql-from-question')
- expect(tools).toContain('insights-list')
+ const tools = getToolsForFeatures({ features: ['llm_analytics'], aiConsentGiven: false })
+ expect(tools).not.toContain('llma-summarization-create')
+ expect(tools).toContain('get-llm-total-costs-for-project')
})
it('should filter AI consent tools via getToolsFromContext when org denies consent', async () => {
@@ -501,7 +498,7 @@ describe('Tool Filtering - AI Consent', () => {
}
const tools = await getToolsFromContext(context)
const toolNames = tools.map((t) => t.name)
- expect(toolNames).not.toContain('query-generate-hogql-from-question')
+ expect(toolNames).not.toContain('llma-summarization-create')
expect(toolNames).toContain('dashboard-get')
})
@@ -527,7 +524,7 @@ describe('Tool Filtering - AI Consent', () => {
}
const tools = await getToolsFromContext(context)
const toolNames = tools.map((t) => t.name)
- expect(toolNames).toContain('query-generate-hogql-from-question')
+ expect(toolNames).toContain('llma-summarization-create')
})
})
diff --git a/services/mcp/tests/unit/tool-schema-snapshots.test.ts b/services/mcp/tests/unit/tool-schema-snapshots.test.ts
index 11bbda4b1959..d2befa4acd65 100644
--- a/services/mcp/tests/unit/tool-schema-snapshots.test.ts
+++ b/services/mcp/tests/unit/tool-schema-snapshots.test.ts
@@ -47,37 +47,14 @@ function deepSortKeys(value: unknown): unknown {
return value
}
-type SnapshotBucket = 'common' | 'v1' | 'v2'
-
-type SnapshotEntry = {
- toolName: string
- bucket: SnapshotBucket
- schema: unknown
-}
-
async function listSnapshotFiles(root: string): Promise<string[]> {
- const buckets: SnapshotBucket[] = ['common', 'v1', 'v2']
- const all: string[] = []
-
- for (const bucket of buckets) {
- const dir = path.join(root, bucket)
- try {
- const files = await readdir(dir)
- for (const file of files) {
- if (file.endsWith('.json')) {
- all.push(path.join(dir, file))
- }
- }
- } catch {
- // Directory might not exist yet.
- }
+ try {
+ const files = await readdir(root)
+ return files.filter((file) => file.endsWith('.json')).map((file) => path.join(root, file))
+ } catch {
+ // Directory might not exist yet.
+ return []
}
-
- return all
-}
-
-function stableStringify(value: unknown): string {
- return JSON.stringify(value)
}
function isSnapshotUpdateAll(): boolean {
@@ -103,65 +80,27 @@ describe('Tool schema snapshots', () => {
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const context = createMockContext()
- it('snapshots runtime tool schemas as common + version deltas', async () => {
+ it('snapshots runtime tool schemas', async () => {
const shouldUpdateSnapshots = isSnapshotUpdateAll()
const root = path.resolve(__dirname, '__snapshots__', 'tool-schemas')
// Enable flag-gated tools we snapshot here: agent-feedback, tracing (APM spans). Other
// flag-gated tools (logs-alerts, visual-review, etc.) stay off to keep the surface stable.
const featureFlags = { 'mcp-feedback-tool': true, tracing: true }
- const v1Tools = [...(await getToolsFromContext(context, { version: 1, featureFlags }))].sort((a, b) =>
- a.name.localeCompare(b.name)
- )
- const v2Tools = [...(await getToolsFromContext(context, { version: 2, featureFlags }))].sort((a, b) =>
+ const tools = [...(await getToolsFromContext(context, { featureFlags }))].sort((a, b) =>
a.name.localeCompare(b.name)
)
- const v1Schemas = new Map<string, unknown>()
- const v2Schemas = new Map<string, unknown>()
+ expect(tools.length).toBeGreaterThan(0)
- for (const tool of v1Tools) {
- const jsonSchema = z.toJSONSchema(tool.schema, { io: 'input', reused: 'inline' })
- v1Schemas.set(tool.name, deepSortKeys(jsonSchema))
- }
- for (const tool of v2Tools) {
- const jsonSchema = z.toJSONSchema(tool.schema, { io: 'input', reused: 'inline' })
- v2Schemas.set(tool.name, deepSortKeys(jsonSchema))
- }
-
- const allNames = [...new Set([...v1Schemas.keys(), ...v2Schemas.keys()])].sort()
- const entries: SnapshotEntry[] = []
-
- for (const toolName of allNames) {
- const v1 = v1Schemas.get(toolName)
- const v2 = v2Schemas.get(toolName)
-
- if (v1 && v2) {
- if (stableStringify(v1) === stableStringify(v2)) {
- entries.push({ toolName, bucket: 'common', schema: v1 })
- } else {
- entries.push({ toolName, bucket: 'v1', schema: v1 })
- entries.push({ toolName, bucket: 'v2', schema: v2 })
- }
- } else if (v1) {
- entries.push({ toolName, bucket: 'v1', schema: v1 })
- } else if (v2) {
- entries.push({ toolName, bucket: 'v2', schema: v2 })
- }
- }
-
- const commonCount = entries.filter((entry) => entry.bucket === 'common').length
- expect(commonCount).toBeGreaterThan(0)
-
- for (const bucket of ['common', 'v1', 'v2'] as const) {
- await mkdir(path.join(root, bucket), { recursive: true })
- }
+ await mkdir(root, { recursive: true })
const expectedPaths = new Set<string>()
- for (const entry of entries) {
- const snapshotPath = path.join(root, entry.bucket, `${entry.toolName}.json`)
+ for (const tool of tools) {
+ const jsonSchema = deepSortKeys(z.toJSONSchema(tool.schema, { io: 'input', reused: 'inline' }))
+ const snapshotPath = path.join(root, `${tool.name}.json`)
expectedPaths.add(snapshotPath)
- const content = await formatSnapshotJson(snapshotPath, entry.schema)
+ const content = await formatSnapshotJson(snapshotPath, jsonSchema)
await expect(content).toMatchFileSnapshot(snapshotPath)
}