: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(subscriptions): expose AI summary toggle in subscription MCP tools (#62297)
Vasco de Krijgeraa01e72bb7bf
diff --git a/ee/api/subscription.py b/ee/api/subscription.pyindex 3c150d49728a..0edc0e0b9b65 100644--- a/ee/api/subscription.py+++ b/ee/api/subscription.py@@ -228,6 +228,21 @@ class SubscriptionSerializer(serializers.ModelSerializer):"enabled": {"help_text": "Whether the subscription is active. Set to false to pause delivery without deleting. Auto-set to false when the delivery integration becomes invalid."},+ "summary_enabled": {+ "help_text": (+ "Whether to attach an AI-generated summary to each delivery (insight and dashboard "+ "subscriptions only). Requires the organization to have approved AI data processing, and "+ "is subject to the org's active-summary cap and AI credit budget; otherwise the write is "+ "rejected. Not applicable to prompt subscriptions, which are themselves AI-generated."+ ),+ },+ "summary_prompt_guide": {+ "help_text": (+ "Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics "+ "to emphasize. Only settable when AI summary context is enabled for the organization; "+ "clearing it (empty string) is always allowed."+ ),+ },}def get_insight_short_id(self, obj: Subscription) -> Optional[str]:diff --git a/products/subscriptions/frontend/generated/api.schemas.ts b/products/subscriptions/frontend/generated/api.schemas.tsindex a27e5c3d02b4..17c370bcd945 100644--- a/products/subscriptions/frontend/generated/api.schemas.ts+++ b/products/subscriptions/frontend/generated/api.schemas.ts@@ -303,8 +303,12 @@ export interface SubscriptionApi {* @nullable*/invite_message?: string | null+ /** Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated. */summary_enabled?: boolean- /** @maxLength 500 */+ /**+ * Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.+ * @maxLength 500+ */summary_prompt_guide?: string}@@ -443,8 +447,12 @@ export interface PatchedSubscriptionApi {* @nullable*/invite_message?: string | null+ /** Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated. */summary_enabled?: boolean- /** @maxLength 500 */+ /**+ * Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.+ * @maxLength 500+ */summary_prompt_guide?: string}diff --git a/products/subscriptions/frontend/generated/api.zod.ts b/products/subscriptions/frontend/generated/api.zod.tsindex 9f5f6153ad9d..4471fba9a89f 100644--- a/products/subscriptions/frontend/generated/api.zod.ts+++ b/products/subscriptions/frontend/generated/api.zod.ts@@ -112,8 +112,19 @@ export const SubscriptionsCreateBody = /* @__PURE__ */ zod.string().nullish().describe('Optional message included in the invitation email when adding new recipients.'),- summary_enabled: zod.boolean().optional(),- summary_prompt_guide: zod.string().max(subscriptionsCreateBodySummaryPromptGuideMax).optional(),+ summary_enabled: zod+ .boolean()+ .optional()+ .describe(+ "Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated."+ ),+ summary_prompt_guide: zod+ .string()+ .max(subscriptionsCreateBodySummaryPromptGuideMax)+ .optional()+ .describe(+ 'Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.'+ ),}).describe('Standard Subscription serializer.')@@ -220,8 +231,19 @@ export const SubscriptionsUpdateBody = /* @__PURE__ */ zod.string().nullish().describe('Optional message included in the invitation email when adding new recipients.'),- summary_enabled: zod.boolean().optional(),- summary_prompt_guide: zod.string().max(subscriptionsUpdateBodySummaryPromptGuideMax).optional(),+ summary_enabled: zod+ .boolean()+ .optional()+ .describe(+ "Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated."+ ),+ summary_prompt_guide: zod+ .string()+ .max(subscriptionsUpdateBodySummaryPromptGuideMax)+ .optional()+ .describe(+ 'Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.'+ ),}).describe('Standard Subscription serializer.')@@ -335,7 +357,18 @@ export const SubscriptionsPartialUpdateBody = /* @__PURE__ */ zod.string().nullish().describe('Optional message included in the invitation email when adding new recipients.'),- summary_enabled: zod.boolean().optional(),- summary_prompt_guide: zod.string().max(subscriptionsPartialUpdateBodySummaryPromptGuideMax).optional(),+ summary_enabled: zod+ .boolean()+ .optional()+ .describe(+ "Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated."+ ),+ summary_prompt_guide: zod+ .string()+ .max(subscriptionsPartialUpdateBodySummaryPromptGuideMax)+ .optional()+ .describe(+ 'Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.'+ ),}).describe('Standard Subscription serializer.')diff --git a/products/subscriptions/mcp/tools.yaml b/products/subscriptions/mcp/tools.yamlindex 68fb85982396..deeca3f8b0cf 100644--- a/products/subscriptions/mcp/tools.yaml+++ b/products/subscriptions/mcp/tools.yaml@@ -38,14 +38,17 @@ tools:The kind is fixed at create time — a PATCH that would change the populated relation to a different kind isrejected.++ For insight and dashboard subscriptions you can attach an AI-generated summary to each delivery by setting+ `summary_enabled: true` (optionally steered by `summary_prompt_guide`). This requires the organization to+ have approved AI data processing and to be within its active-summary cap and AI credit budget; otherwise the+ create is rejected. Prompt subscriptions are themselves AI-generated, so these fields do not apply to them.exclude_params:- deleted- next_delivery_date- resource_name- insight_short_id- invite_message- - summary_enabled- - summary_prompt_guidesubscriptions-delete:operation: subscriptions_destroyenabled: true@@ -147,14 +150,16 @@ tools:the original creator is still an active user; otherwise it is rejected with 400. Editing or re-enabling aprompt subscription additionally requires the `query:read` scope. Use `subscriptions-delete` to soft-delete— `deleted` is not settable here.++ For insight and dashboard subscriptions, toggle the per-delivery AI summary with `summary_enabled` and steer+ it with `summary_prompt_guide`. Enabling a summary requires the organization to have approved AI data+ processing and to be within its active-summary cap and AI credit budget; otherwise the update is rejected.exclude_params:- deleted- next_delivery_date- resource_name- insight_short_id- invite_message- - summary_enabled- - summary_prompt_guidesubscriptions-retrieve:operation: subscriptions_retrieveenabled: truediff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 462d6e826971..a983d41da9c4 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -5174,7 +5174,7 @@}},"subscriptions-create": {- "description": "Create a recurring subscription. The kind is inferred from which field you populate and returned as the read-only `resource_type`:\n(1) set `insight` — schedule periodic snapshots of one insight (`resource_type: \"insight\"`).\n(2) set `dashboard` and `dashboard_export_insights` (the subset of the dashboard's insights to include, max 6) — schedule periodic snapshots of one dashboard (`resource_type: \"dashboard\"`).\n(3) set `prompt` (≤4000 chars, with no insight or dashboard) — schedule a recurring LLM-generated report (`resource_type: \"ai_prompt\"`). Available on PostHog Cloud (self-hosted production is not eligible) once the organization has approved AI data processing and prompt subscriptions are enabled for it; otherwise create is rejected with a 400. Creating a prompt subscription also requires the `query:read` scope — the report runs LLM-generated HogQL over your data — so a `subscription:write`-only token is rejected for this kind.\nDelivery is set by `target_type` — `email` or `slack`.\nThe kind is fixed at create time — a PATCH that would change the populated relation to a different kind is rejected.",+ "description": "Create a recurring subscription. The kind is inferred from which field you populate and returned as the read-only `resource_type`:\n(1) set `insight` — schedule periodic snapshots of one insight (`resource_type: \"insight\"`).\n(2) set `dashboard` and `dashboard_export_insights` (the subset of the dashboard's insights to include, max 6) — schedule periodic snapshots of one dashboard (`resource_type: \"dashboard\"`).\n(3) set `prompt` (≤4000 chars, with no insight or dashboard) — schedule a recurring LLM-generated report (`resource_type: \"ai_prompt\"`). Available on PostHog Cloud (self-hosted production is not eligible) once the organization has approved AI data processing and prompt subscriptions are enabled for it; otherwise create is rejected with a 400. Creating a prompt subscription also requires the `query:read` scope — the report runs LLM-generated HogQL over your data — so a `subscription:write`-only token is rejected for this kind.\nDelivery is set by `target_type` — `email` or `slack`.\nThe kind is fixed at create time — a PATCH that would change the populated relation to a different kind is rejected.\nFor insight and dashboard subscriptions you can attach an AI-generated summary to each delivery by setting `summary_enabled: true` (optionally steered by `summary_prompt_guide`). This requires the organization to have approved AI data processing and to be within its active-summary cap and AI credit budget; otherwise the create is rejected. Prompt subscriptions are themselves AI-generated, so these fields do not apply to them.","category": "Subscriptions","feature": "subscriptions","summary": "Create subscription",@@ -5244,7 +5244,7 @@}},"subscriptions-partial-update": {- "description": "Update a subscription's mutable fields (title, target, schedule, the `prompt` for prompt subscriptions, `enabled`). The kind (`resource_type`) is fixed at create — a PATCH that would introduce another kind's field (e.g. a `prompt` on an insight sub) is rejected with 400. For prompt subs, re-enabling a previously auto-disabled sub requires both a valid `prompt` (already persisted or supplied in the PATCH body) and that the original creator is still an active user; otherwise it is rejected with 400. Editing or re-enabling a prompt subscription additionally requires the `query:read` scope. Use `subscriptions-delete` to soft-delete — `deleted` is not settable here.",+ "description": "Update a subscription's mutable fields (title, target, schedule, the `prompt` for prompt subscriptions, `enabled`). The kind (`resource_type`) is fixed at create — a PATCH that would introduce another kind's field (e.g. a `prompt` on an insight sub) is rejected with 400. For prompt subs, re-enabling a previously auto-disabled sub requires both a valid `prompt` (already persisted or supplied in the PATCH body) and that the original creator is still an active user; otherwise it is rejected with 400. Editing or re-enabling a prompt subscription additionally requires the `query:read` scope. Use `subscriptions-delete` to soft-delete — `deleted` is not settable here.\nFor insight and dashboard subscriptions, toggle the per-delivery AI summary with `summary_enabled` and steer it with `summary_prompt_guide`. Enabling a summary requires the organization to have approved AI data processing and to be within its active-summary cap and AI credit budget; otherwise the update is rejected.","category": "Subscriptions","feature": "subscriptions","summary": "Update subscription",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 467c3c6771f4..b41c0bc4b116 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -5501,7 +5501,7 @@}},"subscriptions-create": {- "description": "Create a recurring subscription. The kind is inferred from which field you populate and returned as the read-only `resource_type`:\n(1) set `insight` — schedule periodic snapshots of one insight (`resource_type: \"insight\"`).\n(2) set `dashboard` and `dashboard_export_insights` (the subset of the dashboard's insights to include, max 6) — schedule periodic snapshots of one dashboard (`resource_type: \"dashboard\"`).\n(3) set `prompt` (≤4000 chars, with no insight or dashboard) — schedule a recurring LLM-generated report (`resource_type: \"ai_prompt\"`). Available on PostHog Cloud (self-hosted production is not eligible) once the organization has approved AI data processing and prompt subscriptions are enabled for it; otherwise create is rejected with a 400. Creating a prompt subscription also requires the `query:read` scope — the report runs LLM-generated HogQL over your data — so a `subscription:write`-only token is rejected for this kind.\nDelivery is set by `target_type` — `email` or `slack`.\nThe kind is fixed at create time — a PATCH that would change the populated relation to a different kind is rejected.",+ "description": "Create a recurring subscription. The kind is inferred from which field you populate and returned as the read-only `resource_type`:\n(1) set `insight` — schedule periodic snapshots of one insight (`resource_type: \"insight\"`).\n(2) set `dashboard` and `dashboard_export_insights` (the subset of the dashboard's insights to include, max 6) — schedule periodic snapshots of one dashboard (`resource_type: \"dashboard\"`).\n(3) set `prompt` (≤4000 chars, with no insight or dashboard) — schedule a recurring LLM-generated report (`resource_type: \"ai_prompt\"`). Available on PostHog Cloud (self-hosted production is not eligible) once the organization has approved AI data processing and prompt subscriptions are enabled for it; otherwise create is rejected with a 400. Creating a prompt subscription also requires the `query:read` scope — the report runs LLM-generated HogQL over your data — so a `subscription:write`-only token is rejected for this kind.\nDelivery is set by `target_type` — `email` or `slack`.\nThe kind is fixed at create time — a PATCH that would change the populated relation to a different kind is rejected.\nFor insight and dashboard subscriptions you can attach an AI-generated summary to each delivery by setting `summary_enabled: true` (optionally steered by `summary_prompt_guide`). This requires the organization to have approved AI data processing and to be within its active-summary cap and AI credit budget; otherwise the create is rejected. Prompt subscriptions are themselves AI-generated, so these fields do not apply to them.","category": "Subscriptions","feature": "subscriptions","summary": "Create subscription",@@ -5571,7 +5571,7 @@}},"subscriptions-partial-update": {- "description": "Update a subscription's mutable fields (title, target, schedule, the `prompt` for prompt subscriptions, `enabled`). The kind (`resource_type`) is fixed at create — a PATCH that would introduce another kind's field (e.g. a `prompt` on an insight sub) is rejected with 400. For prompt subs, re-enabling a previously auto-disabled sub requires both a valid `prompt` (already persisted or supplied in the PATCH body) and that the original creator is still an active user; otherwise it is rejected with 400. Editing or re-enabling a prompt subscription additionally requires the `query:read` scope. Use `subscriptions-delete` to soft-delete — `deleted` is not settable here.",+ "description": "Update a subscription's mutable fields (title, target, schedule, the `prompt` for prompt subscriptions, `enabled`). The kind (`resource_type`) is fixed at create — a PATCH that would introduce another kind's field (e.g. a `prompt` on an insight sub) is rejected with 400. For prompt subs, re-enabling a previously auto-disabled sub requires both a valid `prompt` (already persisted or supplied in the PATCH body) and that the original creator is still an active user; otherwise it is rejected with 400. Editing or re-enabling a prompt subscription additionally requires the `query:read` scope. Use `subscriptions-delete` to soft-delete — `deleted` is not settable here.\nFor insight and dashboard subscriptions, toggle the per-delivery AI summary with `summary_enabled` and steer it with `summary_prompt_guide`. Enabling a summary requires the organization to have approved AI data processing and to be within its active-summary cap and AI credit budget; otherwise the update is rejected.","category": "Subscriptions","feature": "subscriptions","summary": "Update subscription",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex a26e5717d871..aecbc2c0a2c6 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -26482,8 +26482,12 @@ export namespace Schemas {* @nullable*/invite_message?: string | null;+ /** Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated. */summary_enabled?: boolean;- /** @maxLength 500 */+ /**+ * Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.+ * @maxLength 500+ */summary_prompt_guide?: string;}@@ -32500,8 +32504,12 @@ export namespace Schemas {* @nullable*/invite_message?: string | null;+ /** Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated. */summary_enabled?: boolean;- /** @maxLength 500 */+ /**+ * Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.+ * @maxLength 500+ */summary_prompt_guide?: string;}diff --git a/services/mcp/src/generated/subscriptions/api.ts b/services/mcp/src/generated/subscriptions/api.tsindex 1c46af6e8056..0d33644465bb 100644--- a/services/mcp/src/generated/subscriptions/api.ts+++ b/services/mcp/src/generated/subscriptions/api.ts@@ -84,6 +84,8 @@ export const subscriptionsCreateBodyCountMax = 2147483647export const subscriptionsCreateBodyTitleMax = 100+export const subscriptionsCreateBodySummaryPromptGuideMax = 500+export const SubscriptionsCreateBody = /* @__PURE__ */ zod.object({dashboard: zod@@ -170,6 +172,19 @@ export const SubscriptionsCreateBody = /* @__PURE__ */ zod.number().nullish().describe('ID of a connected Slack integration. Required when target_type is slack.'),+ summary_enabled: zod+ .boolean()+ .optional()+ .describe(+ "Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated."+ ),+ summary_prompt_guide: zod+ .string()+ .max(subscriptionsCreateBodySummaryPromptGuideMax)+ .optional()+ .describe(+ 'Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.'+ ),}).describe('Standard Subscription serializer.')@@ -201,6 +216,8 @@ export const subscriptionsPartialUpdateBodyCountMax = 2147483647export const subscriptionsPartialUpdateBodyTitleMax = 100+export const subscriptionsPartialUpdateBodySummaryPromptGuideMax = 500+export const SubscriptionsPartialUpdateBody = /* @__PURE__ */ zod.object({dashboard: zod@@ -294,6 +311,19 @@ export const SubscriptionsPartialUpdateBody = /* @__PURE__ */ zod.number().nullish().describe('ID of a connected Slack integration. Required when target_type is slack.'),+ summary_enabled: zod+ .boolean()+ .optional()+ .describe(+ "Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated."+ ),+ summary_prompt_guide: zod+ .string()+ .max(subscriptionsPartialUpdateBodySummaryPromptGuideMax)+ .optional()+ .describe(+ 'Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.'+ ),}).describe('Standard Subscription serializer.')diff --git a/services/mcp/src/tools/generated/subscriptions.ts b/services/mcp/src/tools/generated/subscriptions.tsindex f61707938f17..2987315d51cf 100644--- a/services/mcp/src/tools/generated/subscriptions.ts+++ b/services/mcp/src/tools/generated/subscriptions.ts@@ -74,6 +74,12 @@ const subscriptionsCreate = (): ToolBase<typeof SubscriptionsCreateSchema, Schemif (params.integration_id !== undefined) {body['integration_id'] = params.integration_id}+ if (params.summary_enabled !== undefined) {+ body['summary_enabled'] = params.summary_enabled+ }+ if (params.summary_prompt_guide !== undefined) {+ body['summary_prompt_guide'] = params.summary_prompt_guide+ }const result = await context.api.request<Schemas.Subscription>({method: 'POST',path: `/api/projects/${encodeURIComponent(String(projectId))}/subscriptions/`,@@ -242,6 +248,12 @@ const subscriptionsPartialUpdate = (): ToolBase<typeof SubscriptionsPartialUpdatif (params.integration_id !== undefined) {body['integration_id'] = params.integration_id}+ if (params.summary_enabled !== undefined) {+ body['summary_enabled'] = params.summary_enabled+ }+ if (params.summary_prompt_guide !== undefined) {+ body['summary_prompt_guide'] = params.summary_prompt_guide+ }const result = await context.api.request<Schemas.Subscription>({method: 'PATCH',path: `/api/projects/${encodeURIComponent(String(projectId))}/subscriptions/${encodeURIComponent(String(params.id))}/`,diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-create.jsonindex da6f8504852a..befedc096fab 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-create.json@@ -116,6 +116,15 @@"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"},+ "summary_enabled": {+ "description": "Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated.",+ "type": "boolean"+ },+ "summary_prompt_guide": {+ "description": "Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.",+ "maxLength": 500,+ "type": "string"+ },"target_type": {"description": "Delivery channel: email or slack.\n\n* `email` - Email\n* `slack` - Slack","enum": ["email", "slack"],diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-partial-update.jsonindex 55c49d9a2da9..41979e314d8f 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-partial-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-partial-update.json@@ -119,6 +119,15 @@"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"},+ "summary_enabled": {+ "description": "Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated.",+ "type": "boolean"+ },+ "summary_prompt_guide": {+ "description": "Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.",+ "maxLength": 500,+ "type": "string"+ },"target_type": {"description": "Delivery channel: email or slack.\n\n* `email` - Email\n* `slack` - Slack","enum": ["email", "slack"],