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(conversations): link self-driving reports on ticket MCP retrieve (#74613)

Christiaan Hendriksen4cc1ab5c2fed
diff --git a/products/conversations/mcp/tools.yaml b/products/conversations/mcp/tools.yaml
index 79fbd3195be7..f95b5868e9a9 100644
--- a/products/conversations/mcp/tools.yaml
+++ b/products/conversations/mcp/tools.yaml
@@ -100,6 +100,11 @@ tools:
description: >
Get a specific support ticket by ID or ticket number. Returns full ticket details including status,
priority, assignee, message count, channel info, person data, and session context.
+ agent_note:
+ The PostHog Assistant may have investigated this ticket and written self-driving reports into the Inbox. To
+ surface them, call inbox-reports-list with source_id set to this ticket's `id` and
+ source_product=conversations (add include_all_statuses=true to include dismissed ones). Those reports hold
+ the investigation and findings; the ticket's own messages do not.
response:
include:
- id
diff --git a/products/signals/mcp/tools.yaml b/products/signals/mcp/tools.yaml
index c26c824e118b..f48b6db5c5db 100644
--- a/products/signals/mcp/tools.yaml
+++ b/products/signals/mcp/tools.yaml
@@ -150,7 +150,10 @@ tools:
are still moving through the pipeline, and `pending_input` reports are waiting on a human. Each report's
full work log — signal findings (evidence), judgments, and log entries — is readable via
inbox-report-artefacts-list; read it before acting on a report. Results are paginated and ordered by
- '-is_suggested_reviewer,status,-updated_at' by default.
+ '-is_suggested_reviewer,status,-updated_at' by default. To find the self-driving reports for one source
+ record — e.g. what the inbox already investigated for a specific support ticket — pass that record's id as
+ `source_id` together with exactly one `source_product` (for a support ticket: `source_product=conversations`
+ and the ticket's UUID as `source_id`); add `include_all_statuses=true` to include dismissed ones.
agent_note:
"If you do ANY work connected to one of these reports — even pure research or investigation — always first
associate your task with it: call inbox-report-artefacts-create with artefact_type `task_run` and content {}
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index 6e4b54351646..e478802f8b65 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -4420,7 +4420,7 @@
}
},
"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, resolved, failed, suppressed), free-text search across title and summary, source_product (e.g. error_tracking, session_replay), suggested_reviewers (PostHog user UUIDs), and task_id (only reports associated with that task — pass your own task id to see which reports you are already working against). Some statuses are hidden by default (currently suppressed, i.e. human-dismissed); pass `include_all_statuses=true` to list reports in every status — do this when deduplicating against the full inbox state, and read each row's `status` (plus `dismissal_reason` / `dismissal_note` on dismissed rows) before acting. For picking up work, filter to `ready` — earlier statuses are still moving through the pipeline, and `pending_input` reports are waiting on a human. Each report's full work log — signal findings (evidence), judgments, and log entries — is readable via inbox-report-artefacts-list; read it before acting on a report. Results are paginated and ordered by '-is_suggested_reviewer,status,-updated_at' by default.",
+ "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, resolved, failed, suppressed), free-text search across title and summary, source_product (e.g. error_tracking, session_replay), suggested_reviewers (PostHog user UUIDs), and task_id (only reports associated with that task — pass your own task id to see which reports you are already working against). Some statuses are hidden by default (currently suppressed, i.e. human-dismissed); pass `include_all_statuses=true` to list reports in every status — do this when deduplicating against the full inbox state, and read each row's `status` (plus `dismissal_reason` / `dismissal_note` on dismissed rows) before acting. For picking up work, filter to `ready` — earlier statuses are still moving through the pipeline, and `pending_input` reports are waiting on a human. Each report's full work log — signal findings (evidence), judgments, and log entries — is readable via inbox-report-artefacts-list; read it before acting on a report. Results are paginated and ordered by '-is_suggested_reviewer,status,-updated_at' by default. To find the self-driving reports for one source record — e.g. what the inbox already investigated for a specific support ticket — pass that record's id as `source_id` together with exactly one `source_product` (for a support ticket: `source_product=conversations` and the ticket's UUID as `source_id`); add `include_all_statuses=true` to include dismissed ones.",
"category": "Signals",
"feature": "signals",
"summary": "List signal reports",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index dd524ccccee2..6881009f6a5d 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -4701,7 +4701,7 @@
}
},
"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, resolved, failed, suppressed), free-text search across title and summary, source_product (e.g. error_tracking, session_replay), suggested_reviewers (PostHog user UUIDs), and task_id (only reports associated with that task — pass your own task id to see which reports you are already working against). Some statuses are hidden by default (currently suppressed, i.e. human-dismissed); pass `include_all_statuses=true` to list reports in every status — do this when deduplicating against the full inbox state, and read each row's `status` (plus `dismissal_reason` / `dismissal_note` on dismissed rows) before acting. For picking up work, filter to `ready` — earlier statuses are still moving through the pipeline, and `pending_input` reports are waiting on a human. Each report's full work log — signal findings (evidence), judgments, and log entries — is readable via inbox-report-artefacts-list; read it before acting on a report. Results are paginated and ordered by '-is_suggested_reviewer,status,-updated_at' by default.",
+ "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, resolved, failed, suppressed), free-text search across title and summary, source_product (e.g. error_tracking, session_replay), suggested_reviewers (PostHog user UUIDs), and task_id (only reports associated with that task — pass your own task id to see which reports you are already working against). Some statuses are hidden by default (currently suppressed, i.e. human-dismissed); pass `include_all_statuses=true` to list reports in every status — do this when deduplicating against the full inbox state, and read each row's `status` (plus `dismissal_reason` / `dismissal_note` on dismissed rows) before acting. For picking up work, filter to `ready` — earlier statuses are still moving through the pipeline, and `pending_input` reports are waiting on a human. Each report's full work log — signal findings (evidence), judgments, and log entries — is readable via inbox-report-artefacts-list; read it before acting on a report. Results are paginated and ordered by '-is_suggested_reviewer,status,-updated_at' by default. To find the self-driving reports for one source record — e.g. what the inbox already investigated for a specific support ticket — pass that record's id as `source_id` together with exactly one `source_product` (for a support ticket: `source_product=conversations` and the ticket's UUID as `source_id`); add `include_all_statuses=true` to include dismissed ones.",
"category": "Signals",
"feature": "signals",
"summary": "List signal reports",
diff --git a/services/mcp/src/tools/generated/conversations.ts b/services/mcp/src/tools/generated/conversations.ts
index 7fdb29af4c10..d85e9c2fe7ca 100644
--- a/services/mcp/src/tools/generated/conversations.ts
+++ b/services/mcp/src/tools/generated/conversations.ts
@@ -13,7 +13,13 @@ import {
ConversationsTicketsRetrieveParams,
ConversationsViewsListQueryParams,
} from '@/generated/conversations/api'
-import { withPostHogUrl, pickResponseFields, type WithPostHogUrl } from '@/tools/tool-utils'
+import {
+ withPostHogUrl,
+ withAgentNote,
+ pickResponseFields,
+ type WithPostHogUrl,
+ type WithAgentNote,
+} from '@/tools/tool-utils'
import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'
const ConversationsTicketsListSchema = ConversationsTicketsListQueryParams
@@ -130,7 +136,7 @@ const ConversationsTicketsRetrieveSchema = ConversationsTicketsRetrieveParams.om
const conversationsTicketsRetrieve = (): ToolBase<
typeof ConversationsTicketsRetrieveSchema,
- WithPostHogUrl<Schemas.Ticket>
+ WithAgentNote<WithPostHogUrl<Schemas.Ticket>>
> => ({
name: 'conversations-tickets-retrieve',
schema: ConversationsTicketsRetrieveSchema,
@@ -164,7 +170,10 @@ const conversationsTicketsRetrieve = (): ToolBase<
'created_at',
'updated_at',
]) as typeof result
- return await withPostHogUrl(context, filtered, `/support/tickets/${filtered.id}`)
+ return withAgentNote(
+ await withPostHogUrl(context, filtered, `/support/tickets/${filtered.id}`),
+ "The PostHog Assistant may have investigated this ticket and written self-driving reports into the Inbox. To surface them, call inbox-reports-list with source_id set to this ticket's `id` and source_product=conversations (add include_all_statuses=true to include dismissed ones). Those reports hold the investigation and findings; the ticket's own messages do not."
+ )
},
})