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.

feat(subscriptions): support half-hour delivery times (#92165)

Vasco de Krijger6643ee3ccc1d
diff --git a/ee/api/subscription.py b/ee/api/subscription.py
index 038ea6df1575..9ab97f8591f8 100644
--- a/ee/api/subscription.py
+++ b/ee/api/subscription.py
@@ -412,7 +412,13 @@ class SubscriptionSerializer(serializers.ModelSerializer):
"help_text": "Position within byweekday set for monthly frequency (e.g. 1 for first, -1 for last)."
},
"count": {"help_text": "Total number of deliveries before the subscription stops. Null for unlimited."},
- "start_date": {"help_text": "When to start delivering (ISO 8601 datetime)."},
+ "start_date": {
+ "help_text": (
+ "When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in "
+ "the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted "
+ "for backward compatibility, but delivery happens during the next cycle instead of at that exact minute."
+ )
+ },
"until_date": {"help_text": "When to stop delivering (ISO 8601 datetime). Null for indefinite."},
"title": {"help_text": "Human-readable name for this subscription."},
"deleted": {"help_text": "Set to true to soft-delete. Subscriptions cannot be hard-deleted."},
diff --git a/posthog/temporal/schedule.py b/posthog/temporal/schedule.py
index 064d25964147..cc96ef38ab30 100644
--- a/posthog/temporal/schedule.py
+++ b/posthog/temporal/schedule.py
@@ -163,7 +163,7 @@ async def create_run_quota_limiting_schedule(client: Client):
async def create_schedule_all_subscriptions_schedule(client: Client):
"""Create or update the schedule for the ScheduleAllSubscriptionsWorkflow.
- This schedule runs every hour at the 55th minute to match the original Celery schedule.
+ This schedule runs twice an hour, shortly before each supported delivery slot.
"""
schedule_all_subscriptions_schedule = Schedule(
action=ScheduleActionStartWorkflow(
@@ -172,10 +172,9 @@ async def create_schedule_all_subscriptions_schedule(client: Client):
id="schedule-all-subscriptions-schedule",
task_queue=settings.ANALYTICS_PLATFORM_TASK_QUEUE,
),
- spec=ScheduleSpec(cron_expressions=["55 * * * *"]), # Run at minute 55 of every hour
+ spec=ScheduleSpec(cron_expressions=["25,55 * * * *"]), # Run shortly before :30 and :00 deliveries
# ALLOW_ALL: if a previous run is still executing, start the new one anyway.
- # Safe because child workflows use deterministic IDs (process-subscription-{id})
- # and Temporal guarantees no two open workflows can share the same ID.
+ # Deterministic subscription child IDs prevent duplicate starts while a child is open.
policy=SchedulePolicy(overlap=ScheduleOverlapPolicy.ALLOW_ALL),
)
diff --git a/products/subscriptions/frontend/components/Subscriptions/SubscriptionTimePicker.test.tsx b/products/subscriptions/frontend/components/Subscriptions/SubscriptionTimePicker.test.tsx
new file mode 100644
index 000000000000..c4673dfbf4b5
--- /dev/null
+++ b/products/subscriptions/frontend/components/Subscriptions/SubscriptionTimePicker.test.tsx
@@ -0,0 +1,30 @@
+import '@testing-library/jest-dom'
+
+import { cleanup, fireEvent, render, screen } from '@testing-library/react'
+
+import { SubscriptionTimePicker } from './SubscriptionTimePicker'
+
+describe('SubscriptionTimePicker', () => {
+ beforeEach(() => {
+ jest.useFakeTimers()
+ jest.setSystemTime(new Date('2026-09-01T12:00:00Z'))
+ })
+
+ afterEach(() => {
+ cleanup()
+ jest.useRealTimers()
+ })
+
+ it('offers half-hour times without changing the existing date-anchor behavior', () => {
+ const onChange = jest.fn()
+
+ render(<SubscriptionTimePicker value="2024-01-01T09:00:00Z" onChange={onChange} />)
+
+ fireEvent.click(screen.getByLabelText('Delivery time'))
+
+ expect(screen.queryByText('9:15 AM')).not.toBeInTheDocument()
+ fireEvent.click(screen.getByText('9:30 AM'))
+
+ expect(onChange).toHaveBeenCalledWith('2026-09-01T09:30:00.000Z')
+ })
+})
diff --git a/products/subscriptions/frontend/components/Subscriptions/SubscriptionTimePicker.tsx b/products/subscriptions/frontend/components/Subscriptions/SubscriptionTimePicker.tsx
new file mode 100644
index 000000000000..5a1988fa15b2
--- /dev/null
+++ b/products/subscriptions/frontend/components/Subscriptions/SubscriptionTimePicker.tsx
@@ -0,0 +1,50 @@
+import { LemonSelect, LemonSelectOptionLeaf } from '@posthog/lemon-ui'
+
+import { dayjs } from 'lib/dayjs'
+
+function formatTimeLabel(hour: number, minute: number): string {
+ return `${hour % 12 || 12}:${minute.toString().padStart(2, '0')} ${hour < 12 ? 'AM' : 'PM'}`
+}
+
+const HALF_HOUR_TIME_OPTIONS: LemonSelectOptionLeaf<string>[] = Array.from({ length: 48 }, (_, index) => {
+ const hour = Math.floor(index / 2)
+ const minute = (index % 2) * 30
+
+ return {
+ value: `${hour.toString().padStart(2, '0')}:${minute.toString().padStart(2, '0')}`,
+ label: formatTimeLabel(hour, minute),
+ }
+})
+
+export function SubscriptionTimePicker({
+ value,
+ onChange,
+}: {
+ value: string
+ onChange: (value: string) => void
+}): JSX.Element {
+ const selectedTime = dayjs(value).format('HH:mm')
+ const hasSupportedSelectedTime = HALF_HOUR_TIME_OPTIONS.some((option) => option.value === selectedTime)
+ const options: LemonSelectOptionLeaf<string>[] = hasSupportedSelectedTime
+ ? HALF_HOUR_TIME_OPTIONS
+ : [
+ {
+ value: selectedTime,
+ label: `${dayjs(value).format('h:mm A')} (current)`,
+ hidden: true,
+ },
+ ...HALF_HOUR_TIME_OPTIONS,
+ ]
+
+ return (
+ <LemonSelect
+ aria-label="Delivery time"
+ options={options}
+ value={selectedTime}
+ onChange={(time) => {
+ const [hour, minute] = time.split(':').map(Number)
+ onChange(dayjs().hour(hour).minute(minute).second(0).toISOString())
+ }}
+ />
+ )
+}
diff --git a/products/subscriptions/frontend/components/Subscriptions/SubscriptionWizard.tsx b/products/subscriptions/frontend/components/Subscriptions/SubscriptionWizard.tsx
index 77aa63cb53c9..bcaee2e7cb8d 100644
--- a/products/subscriptions/frontend/components/Subscriptions/SubscriptionWizard.tsx
+++ b/products/subscriptions/frontend/components/Subscriptions/SubscriptionWizard.tsx
@@ -38,6 +38,7 @@ import { InsightSelector } from './InsightSelector'
import { SubscriptionDayPicker } from './SubscriptionDayPicker'
import { subscriptionLogic } from './subscriptionLogic'
import type { SubscriptionLogicProps } from './subscriptionLogic'
+import { SubscriptionTimePicker } from './SubscriptionTimePicker'
import {
frequencyOptionsPlural,
frequencyOptionsSingular,
@@ -51,7 +52,6 @@ import {
shouldShowDayPicker,
requestSubscriptionWizardCancellation,
targetTypeOptions,
- timeOptions,
WEEKDAYS,
weekdayOptions,
} from './utils'
@@ -565,21 +565,7 @@ function SubscriptionScheduleStep({ logicProps }: { logicProps: SubscriptionLogi
) : null}
<span>at</span>
<LemonField name="start_date">
- {({ value, onChange }) => (
- <LemonSelect
- options={timeOptions}
- value={dayjs(value).hour().toString()}
- onChange={(hour) =>
- onChange(
- dayjs()
- .hour(Number(hour ?? 0))
- .minute(0)
- .second(0)
- .toISOString()
- )
- }
- />
- )}
+ {({ value, onChange }) => <SubscriptionTimePicker value={value} onChange={onChange} />}
</LemonField>
</div>
{nextDeliveryDate ? (
diff --git a/products/subscriptions/frontend/components/Subscriptions/views/EditSubscription.tsx b/products/subscriptions/frontend/components/Subscriptions/views/EditSubscription.tsx
index 03b8190ec672..823e73278466 100644
--- a/products/subscriptions/frontend/components/Subscriptions/views/EditSubscription.tsx
+++ b/products/subscriptions/frontend/components/Subscriptions/views/EditSubscription.tsx
@@ -48,6 +48,7 @@ import { subscriptionCountLogic } from '../subscriptionCountLogic'
import { SubscriptionDayPicker } from '../SubscriptionDayPicker'
import { subscriptionLogic } from '../subscriptionLogic'
import { subscriptionsLogic } from '../subscriptionsLogic'
+import { SubscriptionTimePicker } from '../SubscriptionTimePicker'
import {
bysetposOptions,
frequencyOptionsPlural,
@@ -59,7 +60,6 @@ import {
monthlyWeekdayOptions,
shouldShowDayPicker,
targetTypeOptions,
- timeOptions,
WEEKDAYS,
weekdayOptions,
isFreeTierCreateAtLimit,
@@ -748,19 +748,7 @@ function EditSubscriptionForm({
<span>at</span>
<LemonField name="start_date">
{({ value, onChange }) => (
- <LemonSelect
- options={timeOptions}
- value={dayjs(value).hour().toString()}
- onChange={(val) => {
- onChange(
- dayjs()
- .hour(Number(val ?? 0))
- .minute(0)
- .second(0)
- .toISOString()
- )
- }}
- />
+ <SubscriptionTimePicker value={value} onChange={onChange} />
)}
</LemonField>
</div>
diff --git a/products/subscriptions/frontend/generated/api.schemas.ts b/products/subscriptions/frontend/generated/api.schemas.ts
index 5143f482e768..6b2a55d3663c 100644
--- a/products/subscriptions/frontend/generated/api.schemas.ts
+++ b/products/subscriptions/frontend/generated/api.schemas.ts
@@ -255,7 +255,7 @@ export interface SubscriptionApi {
* @nullable
*/
count?: number | null
- /** When to start delivering (ISO 8601 datetime). */
+ /** When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute. */
start_date: string
/**
* When to stop delivering (ISO 8601 datetime). Null for indefinite.
@@ -406,7 +406,7 @@ export interface PatchedSubscriptionApi {
* @nullable
*/
count?: number | null
- /** When to start delivering (ISO 8601 datetime). */
+ /** When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute. */
start_date?: string
/**
* When to stop delivering (ISO 8601 datetime). Null for indefinite.
diff --git a/products/subscriptions/frontend/generated/api.zod.ts b/products/subscriptions/frontend/generated/api.zod.ts
index 945025147449..ea3d7b88d9f7 100644
--- a/products/subscriptions/frontend/generated/api.zod.ts
+++ b/products/subscriptions/frontend/generated/api.zod.ts
@@ -138,7 +138,11 @@ export const SubscriptionsCreateBody = /* @__PURE__ */ zod
.max(subscriptionsCreateBodyCountMax)
.nullish()
.describe('Total number of deliveries before the subscription stops. Null for unlimited.'),
- start_date: zod.iso.datetime({ offset: true }).describe('When to start delivering (ISO 8601 datetime).'),
+ start_date: zod.iso
+ .datetime({ offset: true })
+ .describe(
+ 'When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute.'
+ ),
until_date: zod.iso
.datetime({ offset: true })
.nullish()
@@ -326,7 +330,11 @@ export const SubscriptionsUpdateBody = /* @__PURE__ */ zod
.max(subscriptionsUpdateBodyCountMax)
.nullish()
.describe('Total number of deliveries before the subscription stops. Null for unlimited.'),
- start_date: zod.iso.datetime({ offset: true }).describe('When to start delivering (ISO 8601 datetime).'),
+ start_date: zod.iso
+ .datetime({ offset: true })
+ .describe(
+ 'When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute.'
+ ),
until_date: zod.iso
.datetime({ offset: true })
.nullish()
@@ -521,7 +529,9 @@ export const SubscriptionsPartialUpdateBody = /* @__PURE__ */ zod
start_date: zod.iso
.datetime({ offset: true })
.optional()
- .describe('When to start delivering (ISO 8601 datetime).'),
+ .describe(
+ 'When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute.'
+ ),
until_date: zod.iso
.datetime({ offset: true })
.nullish()
diff --git a/products/subscriptions/mcp/tools.yaml b/products/subscriptions/mcp/tools.yaml
index cd6307239aa8..422d14b286e7 100644
--- a/products/subscriptions/mcp/tools.yaml
+++ b/products/subscriptions/mcp/tools.yaml
@@ -38,6 +38,11 @@ tools:
`target_value`). A Teams webhook URL is only ever read back as its host. Creating a Teams subscription
requires the full webhook URL in `target_value`.
+ Set `start_date` to an ISO 8601 datetime. Its date anchors the recurrence and may be in the past. Deliveries
+ run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but
+ delivery happens during the next cycle instead of at that exact minute. For example, use a value ending in
+ `T16:30:00Z` for the 16:30 delivery cycle.
+
The kind is fixed at create time — a PATCH that would change the populated relation to a different kind is
rejected.
diff --git a/products/subscriptions/skills/creating-ai-subscription/SKILL.md b/products/subscriptions/skills/creating-ai-subscription/SKILL.md
index b45769bf4cc9..76b846618f12 100644
--- a/products/subscriptions/skills/creating-ai-subscription/SKILL.md
+++ b/products/subscriptions/skills/creating-ai-subscription/SKILL.md
@@ -88,7 +88,7 @@ target_type: "email" | "slack" # webhook is rejected for prompt subs
target_value: "..." # comma-separated emails, or "<channel_id>|<channel_name>"
frequency: "daily" | "weekly" | "monthly" | "yearly"
interval: 1 # 1 = every tick; 2 = every other tick; etc.
-start_date: "2026-09-15T09:00:00Z" # anchors the recurrence + time-of-day; need not be in the future — the scheduler delivers the next occurrence
+start_date: "2026-09-15T09:30:00Z" # anchors the recurrence + time-of-day; hour and half-hour slots are supported; need not be in the future
title: "..." # display name in the subscriptions list
```
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index ab40d9d9b926..2ace124f582f 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -10384,7 +10384,7 @@
"feature_flag": "streamlit-apps"
},
"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 10) — 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`, `slack`, or `teams` (a Microsoft Teams webhook URL in `target_value`). A Teams webhook URL is only ever read back as its host. Creating a Teams subscription requires the full webhook URL in `target_value`.\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.\nIMPORTANT — when creating an insight (or dashboard) subscription, always ask the user whether to enable the AI-generated summary before creating it. Present it as their choice: they can turn it on (`summary_enabled: true`) or leave it off, and if they turn it on, offer them the option to add a custom prompt to steer the summary (`summary_prompt_guide`). Do not enable the summary on your own without asking. (Prompt subscriptions are themselves AI-generated, so this does not apply to them.)",
+ "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 10) — 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`, `slack`, or `teams` (a Microsoft Teams webhook URL in `target_value`). A Teams webhook URL is only ever read back as its host. Creating a Teams subscription requires the full webhook URL in `target_value`.\nSet `start_date` to an ISO 8601 datetime. Its date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute. For example, use a value ending in `T16:30:00Z` for the 16:30 delivery cycle.\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.\nIMPORTANT — when creating an insight (or dashboard) subscription, always ask the user whether to enable the AI-generated summary before creating it. Present it as their choice: they can turn it on (`summary_enabled: true`) or leave it off, and if they turn it on, offer them the option to add a custom prompt to steer the summary (`summary_prompt_guide`). Do not enable the summary on your own without asking. (Prompt subscriptions are themselves AI-generated, so this does not apply to them.)",
"category": "Subscriptions",
"feature": "subscriptions",
"summary": "Create subscription",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index a680b0152b6c..01564832082f 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -10939,7 +10939,7 @@
"feature_flag": "streamlit-apps"
},
"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 10) — 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`, `slack`, or `teams` (a Microsoft Teams webhook URL in `target_value`). A Teams webhook URL is only ever read back as its host. Creating a Teams subscription requires the full webhook URL in `target_value`.\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.\nIMPORTANT — when creating an insight (or dashboard) subscription, always ask the user whether to enable the AI-generated summary before creating it. Present it as their choice: they can turn it on (`summary_enabled: true`) or leave it off, and if they turn it on, offer them the option to add a custom prompt to steer the summary (`summary_prompt_guide`). Do not enable the summary on your own without asking. (Prompt subscriptions are themselves AI-generated, so this does not apply to them.)",
+ "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 10) — 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`, `slack`, or `teams` (a Microsoft Teams webhook URL in `target_value`). A Teams webhook URL is only ever read back as its host. Creating a Teams subscription requires the full webhook URL in `target_value`.\nSet `start_date` to an ISO 8601 datetime. Its date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute. For example, use a value ending in `T16:30:00Z` for the 16:30 delivery cycle.\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.\nIMPORTANT — when creating an insight (or dashboard) subscription, always ask the user whether to enable the AI-generated summary before creating it. Present it as their choice: they can turn it on (`summary_enabled: true`) or leave it off, and if they turn it on, offer them the option to add a custom prompt to steer the summary (`summary_prompt_guide`). Do not enable the summary on your own without asking. (Prompt subscriptions are themselves AI-generated, so this does not apply to them.)",
"category": "Subscriptions",
"feature": "subscriptions",
"summary": "Create subscription",
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index a3a6192a7d82..9295b2ff5e9d 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -57411,7 +57411,7 @@ export namespace Schemas {
* @nullable
*/
count?: number | null;
- /** When to start delivering (ISO 8601 datetime). */
+ /** When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute. */
start_date: string;
/**
* When to stop delivering (ISO 8601 datetime). Null for indefinite.
@@ -66438,7 +66438,7 @@ export namespace Schemas {
* @nullable
*/
count?: number | null;
- /** When to start delivering (ISO 8601 datetime). */
+ /** When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute. */
start_date?: string;
/**
* When to stop delivering (ISO 8601 datetime). Null for indefinite.
diff --git a/services/mcp/src/generated/subscriptions/api.ts b/services/mcp/src/generated/subscriptions/api.ts
index e6729ecfd5fe..14dd3cdfcceb 100644
--- a/services/mcp/src/generated/subscriptions/api.ts
+++ b/services/mcp/src/generated/subscriptions/api.ts
@@ -176,7 +176,11 @@ export const SubscriptionsCreateBody = /* @__PURE__ */ zod
.max(subscriptionsCreateBodyCountMax)
.nullish()
.describe('Total number of deliveries before the subscription stops. Null for unlimited.'),
- start_date: zod.iso.datetime({ offset: true }).describe('When to start delivering (ISO 8601 datetime).'),
+ start_date: zod.iso
+ .datetime({ offset: true })
+ .describe(
+ 'When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute.'
+ ),
until_date: zod.iso
.datetime({ offset: true })
.nullish()
@@ -384,7 +388,9 @@ export const SubscriptionsPartialUpdateBody = /* @__PURE__ */ zod
start_date: zod.iso
.datetime({ offset: true })
.optional()
- .describe('When to start delivering (ISO 8601 datetime).'),
+ .describe(
+ 'When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute.'
+ ),
until_date: zod.iso
.datetime({ offset: true })
.nullish()
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-create.json
index 7d1954a81162..184cdfda6121 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/subscriptions-create.json
@@ -170,7 +170,7 @@
"type": "boolean"
},
"start_date": {
- "description": "When to start delivering (ISO 8601 datetime).",
+ "description": "When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute.",
"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"
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.json
index 57f7e56dcf62..20468409be0b 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
@@ -169,7 +169,7 @@
"description": "Free-text prompt that drives the AI-generated report. Required when resource_type is 'ai_prompt'. Max 4000 characters."
},
"start_date": {
- "description": "When to start delivering (ISO 8601 datetime).",
+ "description": "When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute.",
"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"