:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(data-warehouse): improve discoverability of warehouse MCP tools (#66114)
Tom Owers60ecea7a6f89
diff --git a/products/data_warehouse/mcp/tools.yaml b/products/data_warehouse/mcp/tools.yamlindex d86d87870506..0202fc1aa573 100644--- a/products/data_warehouse/mcp/tools.yaml+++ b/products/data_warehouse/mcp/tools.yaml@@ -29,21 +29,7 @@ tools:enabled: falsedata-warehouse-data-health-issues-retrieve:operation: data_warehouse_data_health_issues_retrieve- enabled: true- scopes:- - warehouse_view:read- - external_data_source:read- annotations:- readOnly: true- destructive: false- idempotent: true- title: List data pipeline health issues- description: >- Return all failed or degraded items across the data pipeline: materialized saved queries that failed,- external data schemas in Failed or BillingLimitReached state, sources in Error state, failed batch exports,- and disabled/degraded transformations. Each entry includes id, name, type (materialized_view,- external_data_sync, source, destination, transformation), status, error message, failed_at, and url. Use- this for a one-shot audit of what's broken in a project's data warehouse.+ enabled: falsedata-warehouse-data-ops-dashboard-retrieve:operation: data_warehouse_data_ops_dashboard_retrieveenabled: falsediff --git a/products/warehouse_sources/mcp/tools.yaml b/products/warehouse_sources/mcp/tools.yamlindex 4364b602e848..6e2fb91ea1c7 100644--- a/products/warehouse_sources/mcp/tools.yaml+++ b/products/warehouse_sources/mcp/tools.yaml@@ -43,6 +43,8 @@ tools:idempotent: falsetitle: Set up a data warehouse source (one step)description: >+ Reach for this the moment a user wants to analyze data PostHog doesn't store — Stripe revenue, Hubspot or+ Salesforce CRM, Zendesk tickets, Shopify orders, or their own Postgres/MySQL/BigQuery/Snowflake database.Connect an external data source and start importing it into queryable warehouse tables in a single call.Validates credentials, discovers all available tables, enables them with sensible sync defaults (incrementalwhere supported to keep ongoing cost low), and creates the source — no 'schemas' array required. For@@ -57,8 +59,10 @@ tools:'<uuid>'} referencing the connection details the user stored via the 'data-warehouse-source-connect-link'page (discover ids with 'data-warehouse-stored-credentials-list'); stored credentials are deleted once thesource is created. For an already-connected OAuth integration you can instead pass its integration id key- (e.g. {'hubspot_integration_id': 123}). For fine-grained per-table control, use- 'external-data-sources-create' instead.+ (e.g. {'hubspot_integration_id': 123}). NOTE: this enables EVERY discovered table — ideal for small fixed+ schemas (Stripe, Zendesk) but on a large production database (a Postgres/MySQL/BigQuery/Snowflake with many+ tables) it syncs them all, which can be costly and noisy. When the user wants only specific tables, or+ non-default sync types per table, use 'external-data-sources-create' instead.exclude_params:- client_secret- account_id@@ -359,11 +363,14 @@ tools:list: truetitle: List data warehouse sourcesdescription: >- List all configured data warehouse import sources in the project. Returns each source's type (Postgres,- Stripe, Hubspot, etc.), connection status, prefix, schemas, latest error, and last sync timestamp. Use this- to discover what external data sources are connected. Per-schema column definitions are omitted to keep the- payload small — to look up a single table's sync status by name use external-data-schemas-list with a- search, and to see a table's columns use external-data-schemas-retrieve.+ Check what external data is already connected before answering any revenue, billing, subscription, CRM,+ support-ticket, or product-database question — call this first so you JOIN against an existing source+ instead of telling the user the data isn't available. Lists every configured import source with its type+ (Postgres, Stripe, Hubspot, etc.), connection status, prefix, schemas, latest error, and last sync+ timestamp. If nothing relevant is connected, offer to set one up with 'data-warehouse-source-setup'.+ Per-schema column definitions are omitted to keep the payload small — to look up a single table's sync+ status by name use external-data-schemas-list with a search, and to see a table's columns use+ external-data-schemas-retrieve.response:exclude:- schemas.*.table.columns@@ -395,11 +402,11 @@ tools:readOnly: falsedestructive: falseidempotent: true- title: Refresh available schemas+ title: Discover new tables in sourcedescription: >Fetch the latest table list from the remote database and create schema entries for any new tables found.- Does not trigger a data sync. Use this after adding new tables to a source database to make them available- for syncing.+ This is a metadata refresh — it does NOT move or sync any data (use 'external-data-sources-reload' for+ that). Use this after adding new tables to a source database to make them available for syncing.exclude_params:- client_secret- account_id@@ -495,12 +502,13 @@ tools:idempotent: truetitle: List data warehouse source types you can importdescription: >- Return the configuration metadata for all supported data warehouse source types you can import data from —- revenue/payments (Stripe, Chargebee), CRM (Hubspot, Salesforce), support tickets (Zendesk), product- databases (Postgres, MySQL, BigQuery, Snowflake), ads, and more. Each entry describes the required fields- (host, port, database, credentials, etc.), field types, and OAuth flows. Use this to discover what external- data can be imported into queryable warehouse tables and what parameters a source needs. To actually connect- a source, prefer 'data-warehouse-source-setup'.+ Use this whenever the user needs data PostHog doesn't capture natively — revenue and payments (Stripe,+ Chargebee), CRM contacts and deals (Hubspot, Salesforce), support tickets (Zendesk), e-commerce orders+ (Shopify), ad spend, or their own application/production database (Postgres, MySQL, BigQuery, Snowflake) —+ or when a HogQL query fails because the table doesn't exist yet. Importing turns that data into queryable+ warehouse tables you can JOIN against product events. Returns the configuration metadata for every supported+ source type: the required fields (host, port, database, credentials, etc.), field types, and OAuth flows, so+ you know what a connection needs. To actually connect a source, prefer 'data-warehouse-source-setup'.response:include:- '*.name'diff --git a/products/warehouse_sources/skills/suggesting-data-imports/SKILL.md b/products/warehouse_sources/skills/suggesting-data-imports/SKILL.mdindex f536c47e0b31..edde27d7bf70 100644--- a/products/warehouse_sources/skills/suggesting-data-imports/SKILL.md+++ b/products/warehouse_sources/skills/suggesting-data-imports/SKILL.md@@ -1,6 +1,6 @@---name: suggesting-data-imports-description: 'Use when the user asks about revenue, payments, subscriptions, billing, CRM deals, support tickets, production database tables, or other data that PostHog does not collect natively. Also use when a query fails because a table does not exist or returns no results for expected external data. The data warehouse can import from SaaS tools (Stripe, Hubspot, etc.), production databases (Postgres, MySQL, BigQuery, Snowflake), and other arbitrary data sources. Covers checking existing sources, identifying the right source type, and guiding the setup.'+description: 'Use when the user asks about revenue, payments, subscriptions, billing, CRM deals, support tickets, ad spend, production database tables, or other data PostHog does not collect natively — or wants to join or correlate PostHog product events with that external business data. Also use when a query fails because a table does not exist or returns no results for expected external data. The data warehouse can import from SaaS tools (Stripe, Hubspot, Zendesk, etc.), ad platforms, production databases (Postgres, MySQL, BigQuery, Snowflake), and other arbitrary data sources. Covers checking existing sources, identifying the right source type, and guiding the setup.'---# Suggesting data importsdiff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 7ea5a0b464b3..af934311c601 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -1912,20 +1912,6 @@"readOnlyHint": false}},- "data-warehouse-data-health-issues-retrieve": {- "description": "Return all failed or degraded items across the data pipeline: materialized saved queries that failed, external data schemas in Failed or BillingLimitReached state, sources in Error state, failed batch exports, and disabled/degraded transformations. Each entry includes id, name, type (materialized_view, external_data_sync, source, destination, transformation), status, error message, failed_at, and url. Use this for a one-shot audit of what's broken in a project's data warehouse.",- "category": "Data warehouse",- "feature": "data_warehouse",- "summary": "List data pipeline health issues",- "title": "List data pipeline health issues",- "required_scopes": ["warehouse_view:read", "external_data_source:read"],- "annotations": {- "destructiveHint": false,- "idempotentHint": true,- "openWorldHint": true,- "readOnlyHint": true- }- },"data-warehouse-source-connect-link": {"description": "Return a secure browser link to connect a data warehouse source WITHOUT the user pasting secrets into the chat. The link opens a minimal page rendering the source's full connection form — the user authorizes via OAuth or enters credentials there, whichever the source offers — and the page stores the connection details encrypted and temporarily; it does NOT create the source. This is the preferred, secure way to collect credentials: share the returned connect_url with the user, wait for them to confirm they're done, then find the stored credential via 'data-warehouse-stored-credentials-list' (filter by source_type, newest first) and call 'data-warehouse-source-setup' with {'credential_id': '<uuid>'} in the payload. Stored credentials are single-use and expire after 24 hours. Never ask the user to paste raw database passwords, API keys, or OAuth tokens into the chat.","category": "Warehouse sources",@@ -1941,7 +1927,7 @@}},"data-warehouse-source-setup": {- "description": "Connect an external data source and start importing it into queryable warehouse tables in a single call. Validates credentials, discovers all available tables, enables them with sensible sync defaults (incremental where supported to keep ongoing cost low), and creates the source — no 'schemas' array required. For webhook-capable sources (e.g. Stripe) a webhook is auto-registered after creation: check the 'webhook' key in the response — on success webhook-capable tables sync in real time (including webhook-only tables like Stripe Discount); on failure (e.g. the API key can't create webhooks) tables keep the polling defaults and webhook-only tables stay disabled. If 'webhook.pending_inputs' is non-empty, ask the user for those values and submit them via 'external-data-sources-update-webhook-inputs-create'. Use this for revenue (Stripe), CRM (Hubspot, Salesforce), support tickets (Zendesk), e-commerce (Shopify), and your own databases (Postgres, MySQL, BigQuery, Snowflake). Discover required credential fields per source_type with 'external-data-sources-wizard'. Prefer references over raw secrets in the payload: pass {'credential_id': '<uuid>'} referencing the connection details the user stored via the 'data-warehouse-source-connect-link' page (discover ids with 'data-warehouse-stored-credentials-list'); stored credentials are deleted once the source is created. For an already-connected OAuth integration you can instead pass its integration id key (e.g. {'hubspot_integration_id': 123}). For fine-grained per-table control, use 'external-data-sources-create' instead.",+ "description": "Reach for this the moment a user wants to analyze data PostHog doesn't store — Stripe revenue, Hubspot or Salesforce CRM, Zendesk tickets, Shopify orders, or their own Postgres/MySQL/BigQuery/Snowflake database. Connect an external data source and start importing it into queryable warehouse tables in a single call. Validates credentials, discovers all available tables, enables them with sensible sync defaults (incremental where supported to keep ongoing cost low), and creates the source — no 'schemas' array required. For webhook-capable sources (e.g. Stripe) a webhook is auto-registered after creation: check the 'webhook' key in the response — on success webhook-capable tables sync in real time (including webhook-only tables like Stripe Discount); on failure (e.g. the API key can't create webhooks) tables keep the polling defaults and webhook-only tables stay disabled. If 'webhook.pending_inputs' is non-empty, ask the user for those values and submit them via 'external-data-sources-update-webhook-inputs-create'. Use this for revenue (Stripe), CRM (Hubspot, Salesforce), support tickets (Zendesk), e-commerce (Shopify), and your own databases (Postgres, MySQL, BigQuery, Snowflake). Discover required credential fields per source_type with 'external-data-sources-wizard'. Prefer references over raw secrets in the payload: pass {'credential_id': '<uuid>'} referencing the connection details the user stored via the 'data-warehouse-source-connect-link' page (discover ids with 'data-warehouse-stored-credentials-list'); stored credentials are deleted once the source is created. For an already-connected OAuth integration you can instead pass its integration id key (e.g. {'hubspot_integration_id': 123}). NOTE: this enables EVERY discovered table — ideal for small fixed schemas (Stripe, Zendesk) but on a large production database (a Postgres/MySQL/BigQuery/Snowflake with many tables) it syncs them all, which can be costly and noisy. When the user wants only specific tables, or non-default sync types per table, use 'external-data-sources-create' instead.","category": "Warehouse sources","feature": "warehouse_sources","summary": "Set up a data warehouse source (one step)",@@ -3146,7 +3132,7 @@}},"external-data-sources-list": {- "description": "List all configured data warehouse import sources in the project. Returns each source's type (Postgres, Stripe, Hubspot, etc.), connection status, prefix, schemas, latest error, and last sync timestamp. Use this to discover what external data sources are connected. Per-schema column definitions are omitted to keep the payload small — to look up a single table's sync status by name use external-data-schemas-list with a search, and to see a table's columns use external-data-schemas-retrieve.",+ "description": "Check what external data is already connected before answering any revenue, billing, subscription, CRM, support-ticket, or product-database question — call this first so you JOIN against an existing source instead of telling the user the data isn't available. Lists every configured import source with its type (Postgres, Stripe, Hubspot, etc.), connection status, prefix, schemas, latest error, and last sync timestamp. If nothing relevant is connected, offer to set one up with 'data-warehouse-source-setup'. Per-schema column definitions are omitted to keep the payload small — to look up a single table's sync status by name use external-data-schemas-list with a search, and to see a table's columns use external-data-schemas-retrieve.","category": "Warehouse sources","feature": "warehouse_sources","summary": "List data warehouse sources",@@ -3174,11 +3160,11 @@}},"external-data-sources-refresh-schemas": {- "description": "Fetch the latest table list from the remote database and create schema entries for any new tables found. Does not trigger a data sync. Use this after adding new tables to a source database to make them available for syncing.",+ "description": "Fetch the latest table list from the remote database and create schema entries for any new tables found. This is a metadata refresh — it does NOT move or sync any data (use 'external-data-sources-reload' for that). Use this after adding new tables to a source database to make them available for syncing.","category": "Warehouse sources","feature": "warehouse_sources",- "summary": "Refresh available schemas",- "title": "Refresh available schemas",+ "summary": "Discover new tables in source",+ "title": "Discover new tables in source","required_scopes": ["external_data_source:write"],"annotations": {"destructiveHint": false,@@ -3244,7 +3230,7 @@}},"external-data-sources-wizard": {- "description": "Return the configuration metadata for all supported data warehouse source types you can import data from — revenue/payments (Stripe, Chargebee), CRM (Hubspot, Salesforce), support tickets (Zendesk), product databases (Postgres, MySQL, BigQuery, Snowflake), ads, and more. Each entry describes the required fields (host, port, database, credentials, etc.), field types, and OAuth flows. Use this to discover what external data can be imported into queryable warehouse tables and what parameters a source needs. To actually connect a source, prefer 'data-warehouse-source-setup'.",+ "description": "Use this whenever the user needs data PostHog doesn't capture natively — revenue and payments (Stripe, Chargebee), CRM contacts and deals (Hubspot, Salesforce), support tickets (Zendesk), e-commerce orders (Shopify), ad spend, or their own application/production database (Postgres, MySQL, BigQuery, Snowflake) — or when a HogQL query fails because the table doesn't exist yet. Importing turns that data into queryable warehouse tables you can JOIN against product events. Returns the configuration metadata for every supported source type: the required fields (host, port, database, credentials, etc.), field types, and OAuth flows, so you know what a connection needs. To actually connect a source, prefer 'data-warehouse-source-setup'.","category": "Warehouse sources","feature": "warehouse_sources","summary": "List data warehouse source types you can import",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 422815618b05..b8a94013c9fb 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -1942,20 +1942,6 @@"readOnlyHint": false}},- "data-warehouse-data-health-issues-retrieve": {- "description": "Return all failed or degraded items across the data pipeline: materialized saved queries that failed, external data schemas in Failed or BillingLimitReached state, sources in Error state, failed batch exports, and disabled/degraded transformations. Each entry includes id, name, type (materialized_view, external_data_sync, source, destination, transformation), status, error message, failed_at, and url. Use this for a one-shot audit of what's broken in a project's data warehouse.",- "category": "Data warehouse",- "feature": "data_warehouse",- "summary": "List data pipeline health issues",- "title": "List data pipeline health issues",- "required_scopes": ["warehouse_view:read", "external_data_source:read"],- "annotations": {- "destructiveHint": false,- "idempotentHint": true,- "openWorldHint": true,- "readOnlyHint": true- }- },"data-warehouse-source-connect-link": {"description": "Return a secure browser link to connect a data warehouse source WITHOUT the user pasting secrets into the chat. The link opens a minimal page rendering the source's full connection form — the user authorizes via OAuth or enters credentials there, whichever the source offers — and the page stores the connection details encrypted and temporarily; it does NOT create the source. This is the preferred, secure way to collect credentials: share the returned connect_url with the user, wait for them to confirm they're done, then find the stored credential via 'data-warehouse-stored-credentials-list' (filter by source_type, newest first) and call 'data-warehouse-source-setup' with {'credential_id': '<uuid>'} in the payload. Stored credentials are single-use and expire after 24 hours. Never ask the user to paste raw database passwords, API keys, or OAuth tokens into the chat.","category": "Warehouse sources",@@ -1971,7 +1957,7 @@}},"data-warehouse-source-setup": {- "description": "Connect an external data source and start importing it into queryable warehouse tables in a single call. Validates credentials, discovers all available tables, enables them with sensible sync defaults (incremental where supported to keep ongoing cost low), and creates the source — no 'schemas' array required. For webhook-capable sources (e.g. Stripe) a webhook is auto-registered after creation: check the 'webhook' key in the response — on success webhook-capable tables sync in real time (including webhook-only tables like Stripe Discount); on failure (e.g. the API key can't create webhooks) tables keep the polling defaults and webhook-only tables stay disabled. If 'webhook.pending_inputs' is non-empty, ask the user for those values and submit them via 'external-data-sources-update-webhook-inputs-create'. Use this for revenue (Stripe), CRM (Hubspot, Salesforce), support tickets (Zendesk), e-commerce (Shopify), and your own databases (Postgres, MySQL, BigQuery, Snowflake). Discover required credential fields per source_type with 'external-data-sources-wizard'. Prefer references over raw secrets in the payload: pass {'credential_id': '<uuid>'} referencing the connection details the user stored via the 'data-warehouse-source-connect-link' page (discover ids with 'data-warehouse-stored-credentials-list'); stored credentials are deleted once the source is created. For an already-connected OAuth integration you can instead pass its integration id key (e.g. {'hubspot_integration_id': 123}). For fine-grained per-table control, use 'external-data-sources-create' instead.",+ "description": "Reach for this the moment a user wants to analyze data PostHog doesn't store — Stripe revenue, Hubspot or Salesforce CRM, Zendesk tickets, Shopify orders, or their own Postgres/MySQL/BigQuery/Snowflake database. Connect an external data source and start importing it into queryable warehouse tables in a single call. Validates credentials, discovers all available tables, enables them with sensible sync defaults (incremental where supported to keep ongoing cost low), and creates the source — no 'schemas' array required. For webhook-capable sources (e.g. Stripe) a webhook is auto-registered after creation: check the 'webhook' key in the response — on success webhook-capable tables sync in real time (including webhook-only tables like Stripe Discount); on failure (e.g. the API key can't create webhooks) tables keep the polling defaults and webhook-only tables stay disabled. If 'webhook.pending_inputs' is non-empty, ask the user for those values and submit them via 'external-data-sources-update-webhook-inputs-create'. Use this for revenue (Stripe), CRM (Hubspot, Salesforce), support tickets (Zendesk), e-commerce (Shopify), and your own databases (Postgres, MySQL, BigQuery, Snowflake). Discover required credential fields per source_type with 'external-data-sources-wizard'. Prefer references over raw secrets in the payload: pass {'credential_id': '<uuid>'} referencing the connection details the user stored via the 'data-warehouse-source-connect-link' page (discover ids with 'data-warehouse-stored-credentials-list'); stored credentials are deleted once the source is created. For an already-connected OAuth integration you can instead pass its integration id key (e.g. {'hubspot_integration_id': 123}). NOTE: this enables EVERY discovered table — ideal for small fixed schemas (Stripe, Zendesk) but on a large production database (a Postgres/MySQL/BigQuery/Snowflake with many tables) it syncs them all, which can be costly and noisy. When the user wants only specific tables, or non-default sync types per table, use 'external-data-sources-create' instead.","category": "Warehouse sources","feature": "warehouse_sources","summary": "Set up a data warehouse source (one step)",@@ -3372,7 +3358,7 @@}},"external-data-sources-list": {- "description": "List all configured data warehouse import sources in the project. Returns each source's type (Postgres, Stripe, Hubspot, etc.), connection status, prefix, schemas, latest error, and last sync timestamp. Use this to discover what external data sources are connected. Per-schema column definitions are omitted to keep the payload small — to look up a single table's sync status by name use external-data-schemas-list with a search, and to see a table's columns use external-data-schemas-retrieve.",+ "description": "Check what external data is already connected before answering any revenue, billing, subscription, CRM, support-ticket, or product-database question — call this first so you JOIN against an existing source instead of telling the user the data isn't available. Lists every configured import source with its type (Postgres, Stripe, Hubspot, etc.), connection status, prefix, schemas, latest error, and last sync timestamp. If nothing relevant is connected, offer to set one up with 'data-warehouse-source-setup'. Per-schema column definitions are omitted to keep the payload small — to look up a single table's sync status by name use external-data-schemas-list with a search, and to see a table's columns use external-data-schemas-retrieve.","category": "Warehouse sources","feature": "warehouse_sources","summary": "List data warehouse sources",@@ -3414,11 +3400,11 @@}},"external-data-sources-refresh-schemas": {- "description": "Fetch the latest table list from the remote database and create schema entries for any new tables found. Does not trigger a data sync. Use this after adding new tables to a source database to make them available for syncing.",+ "description": "Fetch the latest table list from the remote database and create schema entries for any new tables found. This is a metadata refresh — it does NOT move or sync any data (use 'external-data-sources-reload' for that). Use this after adding new tables to a source database to make them available for syncing.","category": "Warehouse sources","feature": "warehouse_sources",- "summary": "Refresh available schemas",- "title": "Refresh available schemas",+ "summary": "Discover new tables in source",+ "title": "Discover new tables in source","required_scopes": ["external_data_source:write"],"annotations": {"destructiveHint": false,@@ -3484,7 +3470,7 @@}},"external-data-sources-wizard": {- "description": "Return the configuration metadata for all supported data warehouse source types you can import data from — revenue/payments (Stripe, Chargebee), CRM (Hubspot, Salesforce), support tickets (Zendesk), product databases (Postgres, MySQL, BigQuery, Snowflake), ads, and more. Each entry describes the required fields (host, port, database, credentials, etc.), field types, and OAuth flows. Use this to discover what external data can be imported into queryable warehouse tables and what parameters a source needs. To actually connect a source, prefer 'data-warehouse-source-setup'.",+ "description": "Use this whenever the user needs data PostHog doesn't capture natively — revenue and payments (Stripe, Chargebee), CRM contacts and deals (Hubspot, Salesforce), support tickets (Zendesk), e-commerce orders (Shopify), ad spend, or their own application/production database (Postgres, MySQL, BigQuery, Snowflake) — or when a HogQL query fails because the table doesn't exist yet. Importing turns that data into queryable warehouse tables you can JOIN against product events. Returns the configuration metadata for every supported source type: the required fields (host, port, database, credentials, etc.), field types, and OAuth flows, so you know what a connection needs. To actually connect a source, prefer 'data-warehouse-source-setup'.","category": "Warehouse sources","feature": "warehouse_sources","summary": "List data warehouse source types you can import",diff --git a/services/mcp/src/generated/data_warehouse/api.ts b/services/mcp/src/generated/data_warehouse/api.tsindex 382dee299b66..e91783226669 100644--- a/services/mcp/src/generated/data_warehouse/api.ts+++ b/services/mcp/src/generated/data_warehouse/api.ts@@ -3,23 +3,11 @@* MCP service uses these Zod schemas for generated tool handlers.* To regenerate: hogli build:openapi*- * PostHog API - MCP 17 enabled ops+ * PostHog API - MCP 16 enabled ops* OpenAPI spec version: 1.0.0*/import * as zod from 'zod'-/**- * Returns failed/disabled data pipeline items for the Pipeline status side panel.- * Includes: materializations, syncs, sources, destinations, and transformations.- */-export const DataWarehouseDataHealthIssuesRetrieveParams = /* @__PURE__ */ zod.object({- project_id: zod- .string()- .describe(- "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."- ),-})-export const InsightVariablesCreateParams = /* @__PURE__ */ zod.object({project_id: zod.string()diff --git a/services/mcp/src/tools/generated/data_warehouse.ts b/services/mcp/src/tools/generated/data_warehouse.tsindex 33853b93c1ca..a266715a3521 100644--- a/services/mcp/src/tools/generated/data_warehouse.ts+++ b/services/mcp/src/tools/generated/data_warehouse.ts@@ -29,25 +29,6 @@ import {import { withPostHogUrl, type WithPostHogUrl } from '@/tools/tool-utils'import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'-const DataWarehouseDataHealthIssuesRetrieveSchema = z.object({})--const dataWarehouseDataHealthIssuesRetrieve = (): ToolBase<- typeof DataWarehouseDataHealthIssuesRetrieveSchema,- unknown-> => ({- name: 'data-warehouse-data-health-issues-retrieve',- schema: DataWarehouseDataHealthIssuesRetrieveSchema,- // eslint-disable-next-line no-unused-vars- handler: async (context: Context, params: z.infer<typeof DataWarehouseDataHealthIssuesRetrieveSchema>) => {- const projectId = await context.stateManager.getProjectId()- const result = await context.api.request<unknown>({- method: 'GET',- path: `/api/projects/${encodeURIComponent(String(projectId))}/data_warehouse/data_health_issues/`,- })- return result- },-})-const SqlVariablesCreateSchema = InsightVariablesCreateBodyconst sqlVariablesCreate = (): ToolBase<typeof SqlVariablesCreateSchema, Schemas.InsightVariable> => ({@@ -533,7 +514,6 @@ const warehouseTablesRefreshSchemaCreate = (): ToolBase<typeof WarehouseTablesRe})export const GENERATED_TOOLS: Record<string, () => ToolBase<ZodObjectAny>> = {- 'data-warehouse-data-health-issues-retrieve': dataWarehouseDataHealthIssuesRetrieve,'sql-variables-create': sqlVariablesCreate,'sql-variables-delete': sqlVariablesDelete,'sql-variables-update': sqlVariablesUpdate,diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/data-warehouse-data-health-issues-retrieve.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/data-warehouse-data-health-issues-retrieve.jsondeleted file mode 100644index 7b7ea9186078..000000000000--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/data-warehouse-data-health-issues-retrieve.json+++ /dev/null@@ -1,5 +0,0 @@-{- "$schema": "https://json-schema.org/draft/2020-12/schema",- "properties": {},- "type": "object"-}