@opentabs-dev/opentabs-plugin-posthog 0.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +159 -0
- package/dist/adapter.iife.js +15614 -0
- package/dist/adapter.iife.js.map +7 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +104 -0
- package/dist/index.js.map +1 -0
- package/dist/posthog-api.d.ts +21 -0
- package/dist/posthog-api.d.ts.map +1 -0
- package/dist/posthog-api.js +82 -0
- package/dist/posthog-api.js.map +1 -0
- package/dist/tools/create-annotation.d.ts +20 -0
- package/dist/tools/create-annotation.d.ts.map +1 -0
- package/dist/tools/create-annotation.js +31 -0
- package/dist/tools/create-annotation.js.map +1 -0
- package/dist/tools/create-dashboard.d.ts +25 -0
- package/dist/tools/create-dashboard.d.ts.map +1 -0
- package/dist/tools/create-dashboard.js +29 -0
- package/dist/tools/create-dashboard.js.map +1 -0
- package/dist/tools/create-experiment.d.ts +23 -0
- package/dist/tools/create-experiment.d.ts.map +1 -0
- package/dist/tools/create-experiment.js +31 -0
- package/dist/tools/create-experiment.js.map +1 -0
- package/dist/tools/create-feature-flag.d.ts +26 -0
- package/dist/tools/create-feature-flag.d.ts.map +1 -0
- package/dist/tools/create-feature-flag.js +45 -0
- package/dist/tools/create-feature-flag.js.map +1 -0
- package/dist/tools/delete-annotation.d.ts +7 -0
- package/dist/tools/delete-annotation.d.ts.map +1 -0
- package/dist/tools/delete-annotation.js +22 -0
- package/dist/tools/delete-annotation.js.map +1 -0
- package/dist/tools/delete-dashboard.d.ts +7 -0
- package/dist/tools/delete-dashboard.d.ts.map +1 -0
- package/dist/tools/delete-dashboard.js +22 -0
- package/dist/tools/delete-dashboard.js.map +1 -0
- package/dist/tools/delete-feature-flag.d.ts +7 -0
- package/dist/tools/delete-feature-flag.d.ts.map +1 -0
- package/dist/tools/delete-feature-flag.js +22 -0
- package/dist/tools/delete-feature-flag.js.map +1 -0
- package/dist/tools/delete-insight.d.ts +7 -0
- package/dist/tools/delete-insight.d.ts.map +1 -0
- package/dist/tools/delete-insight.js +23 -0
- package/dist/tools/delete-insight.js.map +1 -0
- package/dist/tools/get-action.d.ts +19 -0
- package/dist/tools/get-action.d.ts.map +1 -0
- package/dist/tools/get-action.js +23 -0
- package/dist/tools/get-action.js.map +1 -0
- package/dist/tools/get-cohort.d.ts +20 -0
- package/dist/tools/get-cohort.d.ts.map +1 -0
- package/dist/tools/get-cohort.js +23 -0
- package/dist/tools/get-cohort.js.map +1 -0
- package/dist/tools/get-current-user.d.ts +14 -0
- package/dist/tools/get-current-user.d.ts.map +1 -0
- package/dist/tools/get-current-user.js +32 -0
- package/dist/tools/get-current-user.js.map +1 -0
- package/dist/tools/get-dashboard.d.ts +22 -0
- package/dist/tools/get-dashboard.d.ts.map +1 -0
- package/dist/tools/get-dashboard.js +23 -0
- package/dist/tools/get-dashboard.js.map +1 -0
- package/dist/tools/get-experiment.d.ts +21 -0
- package/dist/tools/get-experiment.d.ts.map +1 -0
- package/dist/tools/get-experiment.js +23 -0
- package/dist/tools/get-experiment.js.map +1 -0
- package/dist/tools/get-feature-flag.d.ts +22 -0
- package/dist/tools/get-feature-flag.d.ts.map +1 -0
- package/dist/tools/get-feature-flag.js +23 -0
- package/dist/tools/get-feature-flag.js.map +1 -0
- package/dist/tools/get-insight.d.ts +26 -0
- package/dist/tools/get-insight.d.ts.map +1 -0
- package/dist/tools/get-insight.js +24 -0
- package/dist/tools/get-insight.js.map +1 -0
- package/dist/tools/get-organization.d.ts +10 -0
- package/dist/tools/get-organization.d.ts.map +1 -0
- package/dist/tools/get-organization.js +21 -0
- package/dist/tools/get-organization.js.map +1 -0
- package/dist/tools/get-person.d.ts +14 -0
- package/dist/tools/get-person.d.ts.map +1 -0
- package/dist/tools/get-person.js +23 -0
- package/dist/tools/get-person.js.map +1 -0
- package/dist/tools/get-project.d.ts +15 -0
- package/dist/tools/get-project.d.ts.map +1 -0
- package/dist/tools/get-project.js +24 -0
- package/dist/tools/get-project.js.map +1 -0
- package/dist/tools/get-survey.d.ts +16 -0
- package/dist/tools/get-survey.d.ts.map +1 -0
- package/dist/tools/get-survey.js +23 -0
- package/dist/tools/get-survey.js.map +1 -0
- package/dist/tools/list-actions.d.ts +22 -0
- package/dist/tools/list-actions.d.ts.map +1 -0
- package/dist/tools/list-actions.js +30 -0
- package/dist/tools/list-actions.js.map +1 -0
- package/dist/tools/list-annotations.d.ts +22 -0
- package/dist/tools/list-annotations.d.ts.map +1 -0
- package/dist/tools/list-annotations.js +29 -0
- package/dist/tools/list-annotations.js.map +1 -0
- package/dist/tools/list-cohorts.d.ts +23 -0
- package/dist/tools/list-cohorts.d.ts.map +1 -0
- package/dist/tools/list-cohorts.js +30 -0
- package/dist/tools/list-cohorts.js.map +1 -0
- package/dist/tools/list-dashboards.d.ts +25 -0
- package/dist/tools/list-dashboards.d.ts.map +1 -0
- package/dist/tools/list-dashboards.js +30 -0
- package/dist/tools/list-dashboards.js.map +1 -0
- package/dist/tools/list-experiments.d.ts +24 -0
- package/dist/tools/list-experiments.d.ts.map +1 -0
- package/dist/tools/list-experiments.js +30 -0
- package/dist/tools/list-experiments.js.map +1 -0
- package/dist/tools/list-feature-flags.d.ts +27 -0
- package/dist/tools/list-feature-flags.d.ts.map +1 -0
- package/dist/tools/list-feature-flags.js +35 -0
- package/dist/tools/list-feature-flags.js.map +1 -0
- package/dist/tools/list-insights.d.ts +31 -0
- package/dist/tools/list-insights.d.ts.map +1 -0
- package/dist/tools/list-insights.js +38 -0
- package/dist/tools/list-insights.js.map +1 -0
- package/dist/tools/list-persons.d.ts +19 -0
- package/dist/tools/list-persons.d.ts.map +1 -0
- package/dist/tools/list-persons.js +35 -0
- package/dist/tools/list-persons.js.map +1 -0
- package/dist/tools/list-projects.d.ts +18 -0
- package/dist/tools/list-projects.d.ts.map +1 -0
- package/dist/tools/list-projects.js +31 -0
- package/dist/tools/list-projects.js.map +1 -0
- package/dist/tools/list-surveys.d.ts +20 -0
- package/dist/tools/list-surveys.d.ts.map +1 -0
- package/dist/tools/list-surveys.js +29 -0
- package/dist/tools/list-surveys.js.map +1 -0
- package/dist/tools/schemas.d.ts +452 -0
- package/dist/tools/schemas.d.ts.map +1 -0
- package/dist/tools/schemas.js +276 -0
- package/dist/tools/schemas.js.map +1 -0
- package/dist/tools/update-dashboard.d.ts +26 -0
- package/dist/tools/update-dashboard.d.ts.map +1 -0
- package/dist/tools/update-dashboard.js +31 -0
- package/dist/tools/update-dashboard.js.map +1 -0
- package/dist/tools/update-feature-flag.d.ts +26 -0
- package/dist/tools/update-feature-flag.d.ts.map +1 -0
- package/dist/tools/update-feature-flag.js +42 -0
- package/dist/tools/update-feature-flag.js.map +1 -0
- package/dist/tools/update-insight.d.ts +30 -0
- package/dist/tools/update-insight.d.ts.map +1 -0
- package/dist/tools/update-insight.js +40 -0
- package/dist/tools/update-insight.js.map +1 -0
- package/dist/tools.json +3530 -0
- package/package.json +55 -0
package/dist/tools.json
ADDED
|
@@ -0,0 +1,3530 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sdkVersion": "0.0.74",
|
|
3
|
+
"iconSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.854 14.5 5 9.647.854 5.5A.5.5 0 0 0 0 5.854V8.44a.5.5 0 0 0 .146.353L5 13.647l.147.146L9.854 18.5l.146.147v-.049c.065.03.134.049.207.049h2.586a.5.5 0 0 0 .353-.854L9.854 14.5zm0-5-4-4a.487.487 0 0 0-.409-.144.515.515 0 0 0-.356.21.493.493 0 0 0-.089.288V8.44a.5.5 0 0 0 .147.353l9 9a.5.5 0 0 0 .853-.354v-2.585a.5.5 0 0 0-.146-.354l-5-5zm1-4a.5.5 0 0 0-.854.354V8.44a.5.5 0 0 0 .147.353l4 4a.5.5 0 0 0 .853-.354V9.854a.5.5 0 0 0-.146-.354l-4-4zm12.647 11.515a3.863 3.863 0 0 1-2.232-1.1l-4.708-4.707a.5.5 0 0 0-.854.354v6.585a.5.5 0 0 0 .5.5H23.5a.5.5 0 0 0 .5-.5v-.6c0-.276-.225-.497-.499-.532zm-5.394.032a.8.8 0 1 1 0-1.6.8.8 0 0 1 0 1.6zM.854 15.5a.5.5 0 0 0-.854.354v2.293a.5.5 0 0 0 .5.5h2.293c.222 0 .39-.135.462-.309a.493.493 0 0 0-.109-.545L.854 15.501zM5 14.647.854 10.5a.5.5 0 0 0-.854.353v2.586a.5.5 0 0 0 .146.353L4.854 18.5l.146.147h2.793a.5.5 0 0 0 .353-.854L5 14.647z\" fill=\"black\"/></svg>",
|
|
4
|
+
"iconInactiveSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.854 14.5 5 9.647.854 5.5A.5.5 0 0 0 0 5.854V8.44a.5.5 0 0 0 .146.353L5 13.647l.147.146L9.854 18.5l.146.147v-.049c.065.03.134.049.207.049h2.586a.5.5 0 0 0 .353-.854L9.854 14.5zm0-5-4-4a.487.487 0 0 0-.409-.144.515.515 0 0 0-.356.21.493.493 0 0 0-.089.288V8.44a.5.5 0 0 0 .147.353l9 9a.5.5 0 0 0 .853-.354v-2.585a.5.5 0 0 0-.146-.354l-5-5zm1-4a.5.5 0 0 0-.854.354V8.44a.5.5 0 0 0 .147.353l4 4a.5.5 0 0 0 .853-.354V9.854a.5.5 0 0 0-.146-.354l-4-4zm12.647 11.515a3.863 3.863 0 0 1-2.232-1.1l-4.708-4.707a.5.5 0 0 0-.854.354v6.585a.5.5 0 0 0 .5.5H23.5a.5.5 0 0 0 .5-.5v-.6c0-.276-.225-.497-.499-.532zm-5.394.032a.8.8 0 1 1 0-1.6.8.8 0 0 1 0 1.6zM.854 15.5a.5.5 0 0 0-.854.354v2.293a.5.5 0 0 0 .5.5h2.293c.222 0 .39-.135.462-.309a.493.493 0 0 0-.109-.545L.854 15.501zM5 14.647.854 10.5a.5.5 0 0 0-.854.353v2.586a.5.5 0 0 0 .146.353L4.854 18.5l.146.147h2.793a.5.5 0 0 0 .353-.854L5 14.647z\" fill=\"#999999\"/></svg>",
|
|
5
|
+
"iconDarkSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.854 14.5 5 9.647.854 5.5A.5.5 0 0 0 0 5.854V8.44a.5.5 0 0 0 .146.353L5 13.647l.147.146L9.854 18.5l.146.147v-.049c.065.03.134.049.207.049h2.586a.5.5 0 0 0 .353-.854L9.854 14.5zm0-5-4-4a.487.487 0 0 0-.409-.144.515.515 0 0 0-.356.21.493.493 0 0 0-.089.288V8.44a.5.5 0 0 0 .147.353l9 9a.5.5 0 0 0 .853-.354v-2.585a.5.5 0 0 0-.146-.354l-5-5zm1-4a.5.5 0 0 0-.854.354V8.44a.5.5 0 0 0 .147.353l4 4a.5.5 0 0 0 .853-.354V9.854a.5.5 0 0 0-.146-.354l-4-4zm12.647 11.515a3.863 3.863 0 0 1-2.232-1.1l-4.708-4.707a.5.5 0 0 0-.854.354v6.585a.5.5 0 0 0 .5.5H23.5a.5.5 0 0 0 .5-.5v-.6c0-.276-.225-.497-.499-.532zm-5.394.032a.8.8 0 1 1 0-1.6.8.8 0 0 1 0 1.6zM.854 15.5a.5.5 0 0 0-.854.354v2.293a.5.5 0 0 0 .5.5h2.293c.222 0 .39-.135.462-.309a.493.493 0 0 0-.109-.545L.854 15.501zM5 14.647.854 10.5a.5.5 0 0 0-.854.353v2.586a.5.5 0 0 0 .146.353L4.854 18.5l.146.147h2.793a.5.5 0 0 0 .353-.854L5 14.647z\" fill=\"#ffffff\"/></svg>",
|
|
6
|
+
"iconDarkInactiveSvg": "<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.854 14.5 5 9.647.854 5.5A.5.5 0 0 0 0 5.854V8.44a.5.5 0 0 0 .146.353L5 13.647l.147.146L9.854 18.5l.146.147v-.049c.065.03.134.049.207.049h2.586a.5.5 0 0 0 .353-.854L9.854 14.5zm0-5-4-4a.487.487 0 0 0-.409-.144.515.515 0 0 0-.356.21.493.493 0 0 0-.089.288V8.44a.5.5 0 0 0 .147.353l9 9a.5.5 0 0 0 .853-.354v-2.585a.5.5 0 0 0-.146-.354l-5-5zm1-4a.5.5 0 0 0-.854.354V8.44a.5.5 0 0 0 .147.353l4 4a.5.5 0 0 0 .853-.354V9.854a.5.5 0 0 0-.146-.354l-4-4zm12.647 11.515a3.863 3.863 0 0 1-2.232-1.1l-4.708-4.707a.5.5 0 0 0-.854.354v6.585a.5.5 0 0 0 .5.5H23.5a.5.5 0 0 0 .5-.5v-.6c0-.276-.225-.497-.499-.532zm-5.394.032a.8.8 0 1 1 0-1.6.8.8 0 0 1 0 1.6zM.854 15.5a.5.5 0 0 0-.854.354v2.293a.5.5 0 0 0 .5.5h2.293c.222 0 .39-.135.462-.309a.493.493 0 0 0-.109-.545L.854 15.501zM5 14.647.854 10.5a.5.5 0 0 0-.854.353v2.586a.5.5 0 0 0 .146.353L4.854 18.5l.146.147h2.793a.5.5 0 0 0 .353-.854L5 14.647z\" fill=\"#ffffff\"/></svg>",
|
|
7
|
+
"tools": [
|
|
8
|
+
{
|
|
9
|
+
"name": "get_current_user",
|
|
10
|
+
"displayName": "Get Current User",
|
|
11
|
+
"description": "Get the profile of the currently authenticated PostHog user including email, name, and organization details.",
|
|
12
|
+
"summary": "Get your PostHog profile",
|
|
13
|
+
"icon": "user",
|
|
14
|
+
"group": "Users",
|
|
15
|
+
"input_schema": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {},
|
|
18
|
+
"additionalProperties": false
|
|
19
|
+
},
|
|
20
|
+
"output_schema": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"user": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"id": {
|
|
27
|
+
"type": "number",
|
|
28
|
+
"description": "User ID"
|
|
29
|
+
},
|
|
30
|
+
"uuid": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "User UUID"
|
|
33
|
+
},
|
|
34
|
+
"email": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Email address"
|
|
37
|
+
},
|
|
38
|
+
"first_name": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "First name"
|
|
41
|
+
},
|
|
42
|
+
"last_name": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Last name"
|
|
45
|
+
},
|
|
46
|
+
"distinct_id": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Distinct ID for PostHog tracking"
|
|
49
|
+
},
|
|
50
|
+
"is_email_verified": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"description": "Whether the email address is verified"
|
|
53
|
+
},
|
|
54
|
+
"is_2fa_enabled": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"description": "Whether two-factor authentication is enabled"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"id",
|
|
61
|
+
"uuid",
|
|
62
|
+
"email",
|
|
63
|
+
"first_name",
|
|
64
|
+
"last_name",
|
|
65
|
+
"distinct_id",
|
|
66
|
+
"is_email_verified",
|
|
67
|
+
"is_2fa_enabled"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"description": "The authenticated user profile"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"user"
|
|
75
|
+
],
|
|
76
|
+
"additionalProperties": false
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "get_organization",
|
|
81
|
+
"displayName": "Get Organization",
|
|
82
|
+
"description": "Get details about the current PostHog organization including name and membership level.",
|
|
83
|
+
"summary": "Get current organization info",
|
|
84
|
+
"icon": "building-2",
|
|
85
|
+
"group": "Organization",
|
|
86
|
+
"input_schema": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"properties": {},
|
|
89
|
+
"additionalProperties": false
|
|
90
|
+
},
|
|
91
|
+
"output_schema": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"properties": {
|
|
94
|
+
"organization": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"id": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "Organization UUID"
|
|
100
|
+
},
|
|
101
|
+
"name": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "Organization name"
|
|
104
|
+
},
|
|
105
|
+
"created_at": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "ISO 8601 creation timestamp"
|
|
108
|
+
},
|
|
109
|
+
"membership_level": {
|
|
110
|
+
"type": "number",
|
|
111
|
+
"description": "Current user membership level (1=member, 8=admin, 15=owner)"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": [
|
|
115
|
+
"id",
|
|
116
|
+
"name",
|
|
117
|
+
"created_at",
|
|
118
|
+
"membership_level"
|
|
119
|
+
],
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"description": "The organization details"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": [
|
|
125
|
+
"organization"
|
|
126
|
+
],
|
|
127
|
+
"additionalProperties": false
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "list_projects",
|
|
132
|
+
"displayName": "List Projects",
|
|
133
|
+
"description": "List all projects in the current PostHog organization. Projects contain events, dashboards, feature flags, and other analytics data.",
|
|
134
|
+
"summary": "List projects in the organization",
|
|
135
|
+
"icon": "folder",
|
|
136
|
+
"group": "Projects",
|
|
137
|
+
"input_schema": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"limit": {
|
|
141
|
+
"description": "Results per page (default 100, max 100)",
|
|
142
|
+
"type": "integer",
|
|
143
|
+
"minimum": 1,
|
|
144
|
+
"maximum": 100
|
|
145
|
+
},
|
|
146
|
+
"offset": {
|
|
147
|
+
"description": "Pagination offset (default 0)",
|
|
148
|
+
"type": "integer",
|
|
149
|
+
"minimum": 0,
|
|
150
|
+
"maximum": 9007199254740991
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"additionalProperties": false
|
|
154
|
+
},
|
|
155
|
+
"output_schema": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"properties": {
|
|
158
|
+
"projects": {
|
|
159
|
+
"type": "array",
|
|
160
|
+
"items": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"properties": {
|
|
163
|
+
"id": {
|
|
164
|
+
"type": "number",
|
|
165
|
+
"description": "Project ID (also used as team_id and environment_id)"
|
|
166
|
+
},
|
|
167
|
+
"uuid": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"description": "Project UUID"
|
|
170
|
+
},
|
|
171
|
+
"name": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"description": "Project name"
|
|
174
|
+
},
|
|
175
|
+
"api_token": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"description": "Project API token for event ingestion"
|
|
178
|
+
},
|
|
179
|
+
"timezone": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"description": "Project timezone (e.g., \"UTC\")"
|
|
182
|
+
},
|
|
183
|
+
"is_demo": {
|
|
184
|
+
"type": "boolean",
|
|
185
|
+
"description": "Whether this is a demo project"
|
|
186
|
+
},
|
|
187
|
+
"created_at": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"description": "ISO 8601 creation timestamp"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"required": [
|
|
193
|
+
"id",
|
|
194
|
+
"uuid",
|
|
195
|
+
"name",
|
|
196
|
+
"api_token",
|
|
197
|
+
"timezone",
|
|
198
|
+
"is_demo",
|
|
199
|
+
"created_at"
|
|
200
|
+
],
|
|
201
|
+
"additionalProperties": false
|
|
202
|
+
},
|
|
203
|
+
"description": "List of projects"
|
|
204
|
+
},
|
|
205
|
+
"count": {
|
|
206
|
+
"type": "number",
|
|
207
|
+
"description": "Total number of results"
|
|
208
|
+
},
|
|
209
|
+
"has_next": {
|
|
210
|
+
"type": "boolean",
|
|
211
|
+
"description": "Whether more results are available"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"required": [
|
|
215
|
+
"projects",
|
|
216
|
+
"count",
|
|
217
|
+
"has_next"
|
|
218
|
+
],
|
|
219
|
+
"additionalProperties": false
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "get_project",
|
|
224
|
+
"displayName": "Get Project",
|
|
225
|
+
"description": "Get detailed information about a specific PostHog project by its ID.",
|
|
226
|
+
"summary": "Get project details",
|
|
227
|
+
"icon": "folder-open",
|
|
228
|
+
"group": "Projects",
|
|
229
|
+
"input_schema": {
|
|
230
|
+
"type": "object",
|
|
231
|
+
"properties": {
|
|
232
|
+
"project_id": {
|
|
233
|
+
"type": "integer",
|
|
234
|
+
"minimum": -9007199254740991,
|
|
235
|
+
"maximum": 9007199254740991,
|
|
236
|
+
"description": "Project ID"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"required": [
|
|
240
|
+
"project_id"
|
|
241
|
+
],
|
|
242
|
+
"additionalProperties": false
|
|
243
|
+
},
|
|
244
|
+
"output_schema": {
|
|
245
|
+
"type": "object",
|
|
246
|
+
"properties": {
|
|
247
|
+
"project": {
|
|
248
|
+
"type": "object",
|
|
249
|
+
"properties": {
|
|
250
|
+
"id": {
|
|
251
|
+
"type": "number",
|
|
252
|
+
"description": "Project ID (also used as team_id and environment_id)"
|
|
253
|
+
},
|
|
254
|
+
"uuid": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"description": "Project UUID"
|
|
257
|
+
},
|
|
258
|
+
"name": {
|
|
259
|
+
"type": "string",
|
|
260
|
+
"description": "Project name"
|
|
261
|
+
},
|
|
262
|
+
"api_token": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"description": "Project API token for event ingestion"
|
|
265
|
+
},
|
|
266
|
+
"timezone": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"description": "Project timezone (e.g., \"UTC\")"
|
|
269
|
+
},
|
|
270
|
+
"is_demo": {
|
|
271
|
+
"type": "boolean",
|
|
272
|
+
"description": "Whether this is a demo project"
|
|
273
|
+
},
|
|
274
|
+
"created_at": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"description": "ISO 8601 creation timestamp"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"required": [
|
|
280
|
+
"id",
|
|
281
|
+
"uuid",
|
|
282
|
+
"name",
|
|
283
|
+
"api_token",
|
|
284
|
+
"timezone",
|
|
285
|
+
"is_demo",
|
|
286
|
+
"created_at"
|
|
287
|
+
],
|
|
288
|
+
"additionalProperties": false,
|
|
289
|
+
"description": "The project details"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"required": [
|
|
293
|
+
"project"
|
|
294
|
+
],
|
|
295
|
+
"additionalProperties": false
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "list_dashboards",
|
|
300
|
+
"displayName": "List Dashboards",
|
|
301
|
+
"description": "List all dashboards in the current PostHog project. Returns dashboard names, tags, and tile counts.",
|
|
302
|
+
"summary": "List dashboards in the project",
|
|
303
|
+
"icon": "layout-dashboard",
|
|
304
|
+
"group": "Dashboards",
|
|
305
|
+
"input_schema": {
|
|
306
|
+
"type": "object",
|
|
307
|
+
"properties": {
|
|
308
|
+
"limit": {
|
|
309
|
+
"description": "Results per page (default 100, max 100)",
|
|
310
|
+
"type": "integer",
|
|
311
|
+
"minimum": 1,
|
|
312
|
+
"maximum": 100
|
|
313
|
+
},
|
|
314
|
+
"offset": {
|
|
315
|
+
"description": "Pagination offset (default 0)",
|
|
316
|
+
"type": "integer",
|
|
317
|
+
"minimum": 0,
|
|
318
|
+
"maximum": 9007199254740991
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"additionalProperties": false
|
|
322
|
+
},
|
|
323
|
+
"output_schema": {
|
|
324
|
+
"type": "object",
|
|
325
|
+
"properties": {
|
|
326
|
+
"dashboards": {
|
|
327
|
+
"type": "array",
|
|
328
|
+
"items": {
|
|
329
|
+
"type": "object",
|
|
330
|
+
"properties": {
|
|
331
|
+
"id": {
|
|
332
|
+
"type": "number",
|
|
333
|
+
"description": "Dashboard ID"
|
|
334
|
+
},
|
|
335
|
+
"name": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"description": "Dashboard name"
|
|
338
|
+
},
|
|
339
|
+
"description": {
|
|
340
|
+
"type": "string",
|
|
341
|
+
"description": "Dashboard description"
|
|
342
|
+
},
|
|
343
|
+
"pinned": {
|
|
344
|
+
"type": "boolean",
|
|
345
|
+
"description": "Whether the dashboard is pinned"
|
|
346
|
+
},
|
|
347
|
+
"created_at": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"description": "ISO 8601 creation timestamp"
|
|
350
|
+
},
|
|
351
|
+
"created_by": {
|
|
352
|
+
"anyOf": [
|
|
353
|
+
{
|
|
354
|
+
"type": "object",
|
|
355
|
+
"properties": {
|
|
356
|
+
"id": {
|
|
357
|
+
"type": "number",
|
|
358
|
+
"description": "Creator user ID"
|
|
359
|
+
},
|
|
360
|
+
"first_name": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"description": "Creator first name"
|
|
363
|
+
},
|
|
364
|
+
"email": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"description": "Creator email"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"required": [
|
|
370
|
+
"id",
|
|
371
|
+
"first_name",
|
|
372
|
+
"email"
|
|
373
|
+
],
|
|
374
|
+
"additionalProperties": false
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"type": "null"
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"description": "User who created the dashboard"
|
|
381
|
+
},
|
|
382
|
+
"is_shared": {
|
|
383
|
+
"type": "boolean",
|
|
384
|
+
"description": "Whether the dashboard is shared externally"
|
|
385
|
+
},
|
|
386
|
+
"tags": {
|
|
387
|
+
"type": "array",
|
|
388
|
+
"items": {
|
|
389
|
+
"type": "string"
|
|
390
|
+
},
|
|
391
|
+
"description": "Tags attached to the dashboard"
|
|
392
|
+
},
|
|
393
|
+
"tiles_count": {
|
|
394
|
+
"type": "number",
|
|
395
|
+
"description": "Number of tiles on the dashboard"
|
|
396
|
+
},
|
|
397
|
+
"deleted": {
|
|
398
|
+
"type": "boolean",
|
|
399
|
+
"description": "Whether the dashboard is deleted"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"required": [
|
|
403
|
+
"id",
|
|
404
|
+
"name",
|
|
405
|
+
"description",
|
|
406
|
+
"pinned",
|
|
407
|
+
"created_at",
|
|
408
|
+
"created_by",
|
|
409
|
+
"is_shared",
|
|
410
|
+
"tags",
|
|
411
|
+
"tiles_count",
|
|
412
|
+
"deleted"
|
|
413
|
+
],
|
|
414
|
+
"additionalProperties": false
|
|
415
|
+
},
|
|
416
|
+
"description": "List of dashboards"
|
|
417
|
+
},
|
|
418
|
+
"count": {
|
|
419
|
+
"type": "number",
|
|
420
|
+
"description": "Total number of results"
|
|
421
|
+
},
|
|
422
|
+
"has_next": {
|
|
423
|
+
"type": "boolean",
|
|
424
|
+
"description": "Whether more results are available"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"required": [
|
|
428
|
+
"dashboards",
|
|
429
|
+
"count",
|
|
430
|
+
"has_next"
|
|
431
|
+
],
|
|
432
|
+
"additionalProperties": false
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "get_dashboard",
|
|
437
|
+
"displayName": "Get Dashboard",
|
|
438
|
+
"description": "Get detailed information about a specific dashboard including its tiles and sharing status.",
|
|
439
|
+
"summary": "Get dashboard details",
|
|
440
|
+
"icon": "layout-dashboard",
|
|
441
|
+
"group": "Dashboards",
|
|
442
|
+
"input_schema": {
|
|
443
|
+
"type": "object",
|
|
444
|
+
"properties": {
|
|
445
|
+
"dashboard_id": {
|
|
446
|
+
"type": "integer",
|
|
447
|
+
"minimum": -9007199254740991,
|
|
448
|
+
"maximum": 9007199254740991,
|
|
449
|
+
"description": "Dashboard ID"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"required": [
|
|
453
|
+
"dashboard_id"
|
|
454
|
+
],
|
|
455
|
+
"additionalProperties": false
|
|
456
|
+
},
|
|
457
|
+
"output_schema": {
|
|
458
|
+
"type": "object",
|
|
459
|
+
"properties": {
|
|
460
|
+
"dashboard": {
|
|
461
|
+
"type": "object",
|
|
462
|
+
"properties": {
|
|
463
|
+
"id": {
|
|
464
|
+
"type": "number",
|
|
465
|
+
"description": "Dashboard ID"
|
|
466
|
+
},
|
|
467
|
+
"name": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"description": "Dashboard name"
|
|
470
|
+
},
|
|
471
|
+
"description": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"description": "Dashboard description"
|
|
474
|
+
},
|
|
475
|
+
"pinned": {
|
|
476
|
+
"type": "boolean",
|
|
477
|
+
"description": "Whether the dashboard is pinned"
|
|
478
|
+
},
|
|
479
|
+
"created_at": {
|
|
480
|
+
"type": "string",
|
|
481
|
+
"description": "ISO 8601 creation timestamp"
|
|
482
|
+
},
|
|
483
|
+
"created_by": {
|
|
484
|
+
"anyOf": [
|
|
485
|
+
{
|
|
486
|
+
"type": "object",
|
|
487
|
+
"properties": {
|
|
488
|
+
"id": {
|
|
489
|
+
"type": "number",
|
|
490
|
+
"description": "Creator user ID"
|
|
491
|
+
},
|
|
492
|
+
"first_name": {
|
|
493
|
+
"type": "string",
|
|
494
|
+
"description": "Creator first name"
|
|
495
|
+
},
|
|
496
|
+
"email": {
|
|
497
|
+
"type": "string",
|
|
498
|
+
"description": "Creator email"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"required": [
|
|
502
|
+
"id",
|
|
503
|
+
"first_name",
|
|
504
|
+
"email"
|
|
505
|
+
],
|
|
506
|
+
"additionalProperties": false
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"type": "null"
|
|
510
|
+
}
|
|
511
|
+
],
|
|
512
|
+
"description": "User who created the dashboard"
|
|
513
|
+
},
|
|
514
|
+
"is_shared": {
|
|
515
|
+
"type": "boolean",
|
|
516
|
+
"description": "Whether the dashboard is shared externally"
|
|
517
|
+
},
|
|
518
|
+
"tags": {
|
|
519
|
+
"type": "array",
|
|
520
|
+
"items": {
|
|
521
|
+
"type": "string"
|
|
522
|
+
},
|
|
523
|
+
"description": "Tags attached to the dashboard"
|
|
524
|
+
},
|
|
525
|
+
"tiles_count": {
|
|
526
|
+
"type": "number",
|
|
527
|
+
"description": "Number of tiles on the dashboard"
|
|
528
|
+
},
|
|
529
|
+
"deleted": {
|
|
530
|
+
"type": "boolean",
|
|
531
|
+
"description": "Whether the dashboard is deleted"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
"required": [
|
|
535
|
+
"id",
|
|
536
|
+
"name",
|
|
537
|
+
"description",
|
|
538
|
+
"pinned",
|
|
539
|
+
"created_at",
|
|
540
|
+
"created_by",
|
|
541
|
+
"is_shared",
|
|
542
|
+
"tags",
|
|
543
|
+
"tiles_count",
|
|
544
|
+
"deleted"
|
|
545
|
+
],
|
|
546
|
+
"additionalProperties": false,
|
|
547
|
+
"description": "The dashboard details"
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
"required": [
|
|
551
|
+
"dashboard"
|
|
552
|
+
],
|
|
553
|
+
"additionalProperties": false
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "create_dashboard",
|
|
558
|
+
"displayName": "Create Dashboard",
|
|
559
|
+
"description": "Create a new dashboard in the current PostHog project.",
|
|
560
|
+
"summary": "Create a new dashboard",
|
|
561
|
+
"icon": "plus",
|
|
562
|
+
"group": "Dashboards",
|
|
563
|
+
"input_schema": {
|
|
564
|
+
"type": "object",
|
|
565
|
+
"properties": {
|
|
566
|
+
"name": {
|
|
567
|
+
"type": "string",
|
|
568
|
+
"description": "Dashboard name"
|
|
569
|
+
},
|
|
570
|
+
"description": {
|
|
571
|
+
"description": "Dashboard description",
|
|
572
|
+
"type": "string"
|
|
573
|
+
},
|
|
574
|
+
"pinned": {
|
|
575
|
+
"description": "Whether to pin the dashboard",
|
|
576
|
+
"type": "boolean"
|
|
577
|
+
},
|
|
578
|
+
"tags": {
|
|
579
|
+
"description": "Tags to attach",
|
|
580
|
+
"type": "array",
|
|
581
|
+
"items": {
|
|
582
|
+
"type": "string"
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
"required": [
|
|
587
|
+
"name"
|
|
588
|
+
],
|
|
589
|
+
"additionalProperties": false
|
|
590
|
+
},
|
|
591
|
+
"output_schema": {
|
|
592
|
+
"type": "object",
|
|
593
|
+
"properties": {
|
|
594
|
+
"dashboard": {
|
|
595
|
+
"type": "object",
|
|
596
|
+
"properties": {
|
|
597
|
+
"id": {
|
|
598
|
+
"type": "number",
|
|
599
|
+
"description": "Dashboard ID"
|
|
600
|
+
},
|
|
601
|
+
"name": {
|
|
602
|
+
"type": "string",
|
|
603
|
+
"description": "Dashboard name"
|
|
604
|
+
},
|
|
605
|
+
"description": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"description": "Dashboard description"
|
|
608
|
+
},
|
|
609
|
+
"pinned": {
|
|
610
|
+
"type": "boolean",
|
|
611
|
+
"description": "Whether the dashboard is pinned"
|
|
612
|
+
},
|
|
613
|
+
"created_at": {
|
|
614
|
+
"type": "string",
|
|
615
|
+
"description": "ISO 8601 creation timestamp"
|
|
616
|
+
},
|
|
617
|
+
"created_by": {
|
|
618
|
+
"anyOf": [
|
|
619
|
+
{
|
|
620
|
+
"type": "object",
|
|
621
|
+
"properties": {
|
|
622
|
+
"id": {
|
|
623
|
+
"type": "number",
|
|
624
|
+
"description": "Creator user ID"
|
|
625
|
+
},
|
|
626
|
+
"first_name": {
|
|
627
|
+
"type": "string",
|
|
628
|
+
"description": "Creator first name"
|
|
629
|
+
},
|
|
630
|
+
"email": {
|
|
631
|
+
"type": "string",
|
|
632
|
+
"description": "Creator email"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"required": [
|
|
636
|
+
"id",
|
|
637
|
+
"first_name",
|
|
638
|
+
"email"
|
|
639
|
+
],
|
|
640
|
+
"additionalProperties": false
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"type": "null"
|
|
644
|
+
}
|
|
645
|
+
],
|
|
646
|
+
"description": "User who created the dashboard"
|
|
647
|
+
},
|
|
648
|
+
"is_shared": {
|
|
649
|
+
"type": "boolean",
|
|
650
|
+
"description": "Whether the dashboard is shared externally"
|
|
651
|
+
},
|
|
652
|
+
"tags": {
|
|
653
|
+
"type": "array",
|
|
654
|
+
"items": {
|
|
655
|
+
"type": "string"
|
|
656
|
+
},
|
|
657
|
+
"description": "Tags attached to the dashboard"
|
|
658
|
+
},
|
|
659
|
+
"tiles_count": {
|
|
660
|
+
"type": "number",
|
|
661
|
+
"description": "Number of tiles on the dashboard"
|
|
662
|
+
},
|
|
663
|
+
"deleted": {
|
|
664
|
+
"type": "boolean",
|
|
665
|
+
"description": "Whether the dashboard is deleted"
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
"required": [
|
|
669
|
+
"id",
|
|
670
|
+
"name",
|
|
671
|
+
"description",
|
|
672
|
+
"pinned",
|
|
673
|
+
"created_at",
|
|
674
|
+
"created_by",
|
|
675
|
+
"is_shared",
|
|
676
|
+
"tags",
|
|
677
|
+
"tiles_count",
|
|
678
|
+
"deleted"
|
|
679
|
+
],
|
|
680
|
+
"additionalProperties": false,
|
|
681
|
+
"description": "The created dashboard"
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
"required": [
|
|
685
|
+
"dashboard"
|
|
686
|
+
],
|
|
687
|
+
"additionalProperties": false
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"name": "update_dashboard",
|
|
692
|
+
"displayName": "Update Dashboard",
|
|
693
|
+
"description": "Update an existing dashboard. Only specified fields are changed; omitted fields remain unchanged.",
|
|
694
|
+
"summary": "Update a dashboard",
|
|
695
|
+
"icon": "pencil",
|
|
696
|
+
"group": "Dashboards",
|
|
697
|
+
"input_schema": {
|
|
698
|
+
"type": "object",
|
|
699
|
+
"properties": {
|
|
700
|
+
"dashboard_id": {
|
|
701
|
+
"type": "integer",
|
|
702
|
+
"minimum": -9007199254740991,
|
|
703
|
+
"maximum": 9007199254740991,
|
|
704
|
+
"description": "Dashboard ID"
|
|
705
|
+
},
|
|
706
|
+
"name": {
|
|
707
|
+
"description": "New name",
|
|
708
|
+
"type": "string"
|
|
709
|
+
},
|
|
710
|
+
"description": {
|
|
711
|
+
"description": "New description",
|
|
712
|
+
"type": "string"
|
|
713
|
+
},
|
|
714
|
+
"pinned": {
|
|
715
|
+
"description": "Whether to pin",
|
|
716
|
+
"type": "boolean"
|
|
717
|
+
},
|
|
718
|
+
"tags": {
|
|
719
|
+
"description": "New tags",
|
|
720
|
+
"type": "array",
|
|
721
|
+
"items": {
|
|
722
|
+
"type": "string"
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
"required": [
|
|
727
|
+
"dashboard_id"
|
|
728
|
+
],
|
|
729
|
+
"additionalProperties": false
|
|
730
|
+
},
|
|
731
|
+
"output_schema": {
|
|
732
|
+
"type": "object",
|
|
733
|
+
"properties": {
|
|
734
|
+
"dashboard": {
|
|
735
|
+
"type": "object",
|
|
736
|
+
"properties": {
|
|
737
|
+
"id": {
|
|
738
|
+
"type": "number",
|
|
739
|
+
"description": "Dashboard ID"
|
|
740
|
+
},
|
|
741
|
+
"name": {
|
|
742
|
+
"type": "string",
|
|
743
|
+
"description": "Dashboard name"
|
|
744
|
+
},
|
|
745
|
+
"description": {
|
|
746
|
+
"type": "string",
|
|
747
|
+
"description": "Dashboard description"
|
|
748
|
+
},
|
|
749
|
+
"pinned": {
|
|
750
|
+
"type": "boolean",
|
|
751
|
+
"description": "Whether the dashboard is pinned"
|
|
752
|
+
},
|
|
753
|
+
"created_at": {
|
|
754
|
+
"type": "string",
|
|
755
|
+
"description": "ISO 8601 creation timestamp"
|
|
756
|
+
},
|
|
757
|
+
"created_by": {
|
|
758
|
+
"anyOf": [
|
|
759
|
+
{
|
|
760
|
+
"type": "object",
|
|
761
|
+
"properties": {
|
|
762
|
+
"id": {
|
|
763
|
+
"type": "number",
|
|
764
|
+
"description": "Creator user ID"
|
|
765
|
+
},
|
|
766
|
+
"first_name": {
|
|
767
|
+
"type": "string",
|
|
768
|
+
"description": "Creator first name"
|
|
769
|
+
},
|
|
770
|
+
"email": {
|
|
771
|
+
"type": "string",
|
|
772
|
+
"description": "Creator email"
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
"required": [
|
|
776
|
+
"id",
|
|
777
|
+
"first_name",
|
|
778
|
+
"email"
|
|
779
|
+
],
|
|
780
|
+
"additionalProperties": false
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"type": "null"
|
|
784
|
+
}
|
|
785
|
+
],
|
|
786
|
+
"description": "User who created the dashboard"
|
|
787
|
+
},
|
|
788
|
+
"is_shared": {
|
|
789
|
+
"type": "boolean",
|
|
790
|
+
"description": "Whether the dashboard is shared externally"
|
|
791
|
+
},
|
|
792
|
+
"tags": {
|
|
793
|
+
"type": "array",
|
|
794
|
+
"items": {
|
|
795
|
+
"type": "string"
|
|
796
|
+
},
|
|
797
|
+
"description": "Tags attached to the dashboard"
|
|
798
|
+
},
|
|
799
|
+
"tiles_count": {
|
|
800
|
+
"type": "number",
|
|
801
|
+
"description": "Number of tiles on the dashboard"
|
|
802
|
+
},
|
|
803
|
+
"deleted": {
|
|
804
|
+
"type": "boolean",
|
|
805
|
+
"description": "Whether the dashboard is deleted"
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"required": [
|
|
809
|
+
"id",
|
|
810
|
+
"name",
|
|
811
|
+
"description",
|
|
812
|
+
"pinned",
|
|
813
|
+
"created_at",
|
|
814
|
+
"created_by",
|
|
815
|
+
"is_shared",
|
|
816
|
+
"tags",
|
|
817
|
+
"tiles_count",
|
|
818
|
+
"deleted"
|
|
819
|
+
],
|
|
820
|
+
"additionalProperties": false,
|
|
821
|
+
"description": "The updated dashboard"
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
"required": [
|
|
825
|
+
"dashboard"
|
|
826
|
+
],
|
|
827
|
+
"additionalProperties": false
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "delete_dashboard",
|
|
832
|
+
"displayName": "Delete Dashboard",
|
|
833
|
+
"description": "Delete a dashboard by marking it as deleted (soft delete). The dashboard can potentially be recovered.",
|
|
834
|
+
"summary": "Delete a dashboard",
|
|
835
|
+
"icon": "trash-2",
|
|
836
|
+
"group": "Dashboards",
|
|
837
|
+
"input_schema": {
|
|
838
|
+
"type": "object",
|
|
839
|
+
"properties": {
|
|
840
|
+
"dashboard_id": {
|
|
841
|
+
"type": "integer",
|
|
842
|
+
"minimum": -9007199254740991,
|
|
843
|
+
"maximum": 9007199254740991,
|
|
844
|
+
"description": "Dashboard ID to delete"
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"required": [
|
|
848
|
+
"dashboard_id"
|
|
849
|
+
],
|
|
850
|
+
"additionalProperties": false
|
|
851
|
+
},
|
|
852
|
+
"output_schema": {
|
|
853
|
+
"type": "object",
|
|
854
|
+
"properties": {
|
|
855
|
+
"success": {
|
|
856
|
+
"type": "boolean",
|
|
857
|
+
"description": "Whether the deletion succeeded"
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
"required": [
|
|
861
|
+
"success"
|
|
862
|
+
],
|
|
863
|
+
"additionalProperties": false
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"name": "list_insights",
|
|
868
|
+
"displayName": "List Insights",
|
|
869
|
+
"description": "List insights (trends, funnels, retention, paths, etc.) in the current PostHog project. Insights are the core analytics visualizations.",
|
|
870
|
+
"summary": "List insights in the project",
|
|
871
|
+
"icon": "bar-chart-3",
|
|
872
|
+
"group": "Insights",
|
|
873
|
+
"input_schema": {
|
|
874
|
+
"type": "object",
|
|
875
|
+
"properties": {
|
|
876
|
+
"limit": {
|
|
877
|
+
"description": "Results per page (default 100, max 100)",
|
|
878
|
+
"type": "integer",
|
|
879
|
+
"minimum": 1,
|
|
880
|
+
"maximum": 100
|
|
881
|
+
},
|
|
882
|
+
"offset": {
|
|
883
|
+
"description": "Pagination offset (default 0)",
|
|
884
|
+
"type": "integer",
|
|
885
|
+
"minimum": 0,
|
|
886
|
+
"maximum": 9007199254740991
|
|
887
|
+
},
|
|
888
|
+
"short_id": {
|
|
889
|
+
"description": "Filter by short ID",
|
|
890
|
+
"type": "string"
|
|
891
|
+
},
|
|
892
|
+
"saved": {
|
|
893
|
+
"description": "Filter by saved status",
|
|
894
|
+
"type": "boolean"
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
"additionalProperties": false
|
|
898
|
+
},
|
|
899
|
+
"output_schema": {
|
|
900
|
+
"type": "object",
|
|
901
|
+
"properties": {
|
|
902
|
+
"insights": {
|
|
903
|
+
"type": "array",
|
|
904
|
+
"items": {
|
|
905
|
+
"type": "object",
|
|
906
|
+
"properties": {
|
|
907
|
+
"id": {
|
|
908
|
+
"type": "number",
|
|
909
|
+
"description": "Insight ID"
|
|
910
|
+
},
|
|
911
|
+
"short_id": {
|
|
912
|
+
"type": "string",
|
|
913
|
+
"description": "Short ID for URL sharing"
|
|
914
|
+
},
|
|
915
|
+
"name": {
|
|
916
|
+
"type": "string",
|
|
917
|
+
"description": "Insight name"
|
|
918
|
+
},
|
|
919
|
+
"derived_name": {
|
|
920
|
+
"anyOf": [
|
|
921
|
+
{
|
|
922
|
+
"type": "string"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"type": "null"
|
|
926
|
+
}
|
|
927
|
+
],
|
|
928
|
+
"description": "Auto-generated name if no explicit name set"
|
|
929
|
+
},
|
|
930
|
+
"description": {
|
|
931
|
+
"type": "string",
|
|
932
|
+
"description": "Insight description"
|
|
933
|
+
},
|
|
934
|
+
"favorited": {
|
|
935
|
+
"type": "boolean",
|
|
936
|
+
"description": "Whether the current user has favorited this insight"
|
|
937
|
+
},
|
|
938
|
+
"tags": {
|
|
939
|
+
"type": "array",
|
|
940
|
+
"items": {
|
|
941
|
+
"type": "string"
|
|
942
|
+
},
|
|
943
|
+
"description": "Tags attached to the insight"
|
|
944
|
+
},
|
|
945
|
+
"dashboards": {
|
|
946
|
+
"type": "array",
|
|
947
|
+
"items": {
|
|
948
|
+
"type": "number"
|
|
949
|
+
},
|
|
950
|
+
"description": "IDs of dashboards this insight appears on"
|
|
951
|
+
},
|
|
952
|
+
"query_kind": {
|
|
953
|
+
"type": "string",
|
|
954
|
+
"description": "Top-level query kind (e.g., \"InsightVizNode\")"
|
|
955
|
+
},
|
|
956
|
+
"source_kind": {
|
|
957
|
+
"type": "string",
|
|
958
|
+
"description": "Source query kind (e.g., \"TrendsQuery\", \"FunnelsQuery\")"
|
|
959
|
+
},
|
|
960
|
+
"created_at": {
|
|
961
|
+
"type": "string",
|
|
962
|
+
"description": "ISO 8601 creation timestamp"
|
|
963
|
+
},
|
|
964
|
+
"created_by": {
|
|
965
|
+
"anyOf": [
|
|
966
|
+
{
|
|
967
|
+
"type": "object",
|
|
968
|
+
"properties": {
|
|
969
|
+
"id": {
|
|
970
|
+
"type": "number",
|
|
971
|
+
"description": "Creator user ID"
|
|
972
|
+
},
|
|
973
|
+
"first_name": {
|
|
974
|
+
"type": "string",
|
|
975
|
+
"description": "Creator first name"
|
|
976
|
+
},
|
|
977
|
+
"email": {
|
|
978
|
+
"type": "string",
|
|
979
|
+
"description": "Creator email"
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
"required": [
|
|
983
|
+
"id",
|
|
984
|
+
"first_name",
|
|
985
|
+
"email"
|
|
986
|
+
],
|
|
987
|
+
"additionalProperties": false
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"type": "null"
|
|
991
|
+
}
|
|
992
|
+
],
|
|
993
|
+
"description": "User who created the insight"
|
|
994
|
+
},
|
|
995
|
+
"last_modified_at": {
|
|
996
|
+
"type": "string",
|
|
997
|
+
"description": "ISO 8601 last modification timestamp"
|
|
998
|
+
},
|
|
999
|
+
"deleted": {
|
|
1000
|
+
"type": "boolean",
|
|
1001
|
+
"description": "Whether the insight is deleted"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"required": [
|
|
1005
|
+
"id",
|
|
1006
|
+
"short_id",
|
|
1007
|
+
"name",
|
|
1008
|
+
"derived_name",
|
|
1009
|
+
"description",
|
|
1010
|
+
"favorited",
|
|
1011
|
+
"tags",
|
|
1012
|
+
"dashboards",
|
|
1013
|
+
"query_kind",
|
|
1014
|
+
"source_kind",
|
|
1015
|
+
"created_at",
|
|
1016
|
+
"created_by",
|
|
1017
|
+
"last_modified_at",
|
|
1018
|
+
"deleted"
|
|
1019
|
+
],
|
|
1020
|
+
"additionalProperties": false
|
|
1021
|
+
},
|
|
1022
|
+
"description": "List of insights"
|
|
1023
|
+
},
|
|
1024
|
+
"count": {
|
|
1025
|
+
"type": "number",
|
|
1026
|
+
"description": "Total number of results"
|
|
1027
|
+
},
|
|
1028
|
+
"has_next": {
|
|
1029
|
+
"type": "boolean",
|
|
1030
|
+
"description": "Whether more results are available"
|
|
1031
|
+
}
|
|
1032
|
+
},
|
|
1033
|
+
"required": [
|
|
1034
|
+
"insights",
|
|
1035
|
+
"count",
|
|
1036
|
+
"has_next"
|
|
1037
|
+
],
|
|
1038
|
+
"additionalProperties": false
|
|
1039
|
+
}
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"name": "get_insight",
|
|
1043
|
+
"displayName": "Get Insight",
|
|
1044
|
+
"description": "Get detailed information about a specific insight including its query configuration and dashboard associations.",
|
|
1045
|
+
"summary": "Get insight details",
|
|
1046
|
+
"icon": "bar-chart-3",
|
|
1047
|
+
"group": "Insights",
|
|
1048
|
+
"input_schema": {
|
|
1049
|
+
"type": "object",
|
|
1050
|
+
"properties": {
|
|
1051
|
+
"insight_id": {
|
|
1052
|
+
"type": "integer",
|
|
1053
|
+
"minimum": -9007199254740991,
|
|
1054
|
+
"maximum": 9007199254740991,
|
|
1055
|
+
"description": "Insight ID"
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
"required": [
|
|
1059
|
+
"insight_id"
|
|
1060
|
+
],
|
|
1061
|
+
"additionalProperties": false
|
|
1062
|
+
},
|
|
1063
|
+
"output_schema": {
|
|
1064
|
+
"type": "object",
|
|
1065
|
+
"properties": {
|
|
1066
|
+
"insight": {
|
|
1067
|
+
"type": "object",
|
|
1068
|
+
"properties": {
|
|
1069
|
+
"id": {
|
|
1070
|
+
"type": "number",
|
|
1071
|
+
"description": "Insight ID"
|
|
1072
|
+
},
|
|
1073
|
+
"short_id": {
|
|
1074
|
+
"type": "string",
|
|
1075
|
+
"description": "Short ID for URL sharing"
|
|
1076
|
+
},
|
|
1077
|
+
"name": {
|
|
1078
|
+
"type": "string",
|
|
1079
|
+
"description": "Insight name"
|
|
1080
|
+
},
|
|
1081
|
+
"derived_name": {
|
|
1082
|
+
"anyOf": [
|
|
1083
|
+
{
|
|
1084
|
+
"type": "string"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"type": "null"
|
|
1088
|
+
}
|
|
1089
|
+
],
|
|
1090
|
+
"description": "Auto-generated name if no explicit name set"
|
|
1091
|
+
},
|
|
1092
|
+
"description": {
|
|
1093
|
+
"type": "string",
|
|
1094
|
+
"description": "Insight description"
|
|
1095
|
+
},
|
|
1096
|
+
"favorited": {
|
|
1097
|
+
"type": "boolean",
|
|
1098
|
+
"description": "Whether the current user has favorited this insight"
|
|
1099
|
+
},
|
|
1100
|
+
"tags": {
|
|
1101
|
+
"type": "array",
|
|
1102
|
+
"items": {
|
|
1103
|
+
"type": "string"
|
|
1104
|
+
},
|
|
1105
|
+
"description": "Tags attached to the insight"
|
|
1106
|
+
},
|
|
1107
|
+
"dashboards": {
|
|
1108
|
+
"type": "array",
|
|
1109
|
+
"items": {
|
|
1110
|
+
"type": "number"
|
|
1111
|
+
},
|
|
1112
|
+
"description": "IDs of dashboards this insight appears on"
|
|
1113
|
+
},
|
|
1114
|
+
"query_kind": {
|
|
1115
|
+
"type": "string",
|
|
1116
|
+
"description": "Top-level query kind (e.g., \"InsightVizNode\")"
|
|
1117
|
+
},
|
|
1118
|
+
"source_kind": {
|
|
1119
|
+
"type": "string",
|
|
1120
|
+
"description": "Source query kind (e.g., \"TrendsQuery\", \"FunnelsQuery\")"
|
|
1121
|
+
},
|
|
1122
|
+
"created_at": {
|
|
1123
|
+
"type": "string",
|
|
1124
|
+
"description": "ISO 8601 creation timestamp"
|
|
1125
|
+
},
|
|
1126
|
+
"created_by": {
|
|
1127
|
+
"anyOf": [
|
|
1128
|
+
{
|
|
1129
|
+
"type": "object",
|
|
1130
|
+
"properties": {
|
|
1131
|
+
"id": {
|
|
1132
|
+
"type": "number",
|
|
1133
|
+
"description": "Creator user ID"
|
|
1134
|
+
},
|
|
1135
|
+
"first_name": {
|
|
1136
|
+
"type": "string",
|
|
1137
|
+
"description": "Creator first name"
|
|
1138
|
+
},
|
|
1139
|
+
"email": {
|
|
1140
|
+
"type": "string",
|
|
1141
|
+
"description": "Creator email"
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
"required": [
|
|
1145
|
+
"id",
|
|
1146
|
+
"first_name",
|
|
1147
|
+
"email"
|
|
1148
|
+
],
|
|
1149
|
+
"additionalProperties": false
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"type": "null"
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
"description": "User who created the insight"
|
|
1156
|
+
},
|
|
1157
|
+
"last_modified_at": {
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"description": "ISO 8601 last modification timestamp"
|
|
1160
|
+
},
|
|
1161
|
+
"deleted": {
|
|
1162
|
+
"type": "boolean",
|
|
1163
|
+
"description": "Whether the insight is deleted"
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
"required": [
|
|
1167
|
+
"id",
|
|
1168
|
+
"short_id",
|
|
1169
|
+
"name",
|
|
1170
|
+
"derived_name",
|
|
1171
|
+
"description",
|
|
1172
|
+
"favorited",
|
|
1173
|
+
"tags",
|
|
1174
|
+
"dashboards",
|
|
1175
|
+
"query_kind",
|
|
1176
|
+
"source_kind",
|
|
1177
|
+
"created_at",
|
|
1178
|
+
"created_by",
|
|
1179
|
+
"last_modified_at",
|
|
1180
|
+
"deleted"
|
|
1181
|
+
],
|
|
1182
|
+
"additionalProperties": false,
|
|
1183
|
+
"description": "The insight details"
|
|
1184
|
+
}
|
|
1185
|
+
},
|
|
1186
|
+
"required": [
|
|
1187
|
+
"insight"
|
|
1188
|
+
],
|
|
1189
|
+
"additionalProperties": false
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"name": "update_insight",
|
|
1194
|
+
"displayName": "Update Insight",
|
|
1195
|
+
"description": "Update an existing insight. Only specified fields are changed; omitted fields remain unchanged.",
|
|
1196
|
+
"summary": "Update an insight",
|
|
1197
|
+
"icon": "pencil",
|
|
1198
|
+
"group": "Insights",
|
|
1199
|
+
"input_schema": {
|
|
1200
|
+
"type": "object",
|
|
1201
|
+
"properties": {
|
|
1202
|
+
"insight_id": {
|
|
1203
|
+
"type": "integer",
|
|
1204
|
+
"minimum": -9007199254740991,
|
|
1205
|
+
"maximum": 9007199254740991,
|
|
1206
|
+
"description": "Insight ID"
|
|
1207
|
+
},
|
|
1208
|
+
"name": {
|
|
1209
|
+
"description": "New name",
|
|
1210
|
+
"type": "string"
|
|
1211
|
+
},
|
|
1212
|
+
"description": {
|
|
1213
|
+
"description": "New description",
|
|
1214
|
+
"type": "string"
|
|
1215
|
+
},
|
|
1216
|
+
"favorited": {
|
|
1217
|
+
"description": "Favorite status",
|
|
1218
|
+
"type": "boolean"
|
|
1219
|
+
},
|
|
1220
|
+
"tags": {
|
|
1221
|
+
"description": "New tags",
|
|
1222
|
+
"type": "array",
|
|
1223
|
+
"items": {
|
|
1224
|
+
"type": "string"
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
"required": [
|
|
1229
|
+
"insight_id"
|
|
1230
|
+
],
|
|
1231
|
+
"additionalProperties": false
|
|
1232
|
+
},
|
|
1233
|
+
"output_schema": {
|
|
1234
|
+
"type": "object",
|
|
1235
|
+
"properties": {
|
|
1236
|
+
"insight": {
|
|
1237
|
+
"type": "object",
|
|
1238
|
+
"properties": {
|
|
1239
|
+
"id": {
|
|
1240
|
+
"type": "number",
|
|
1241
|
+
"description": "Insight ID"
|
|
1242
|
+
},
|
|
1243
|
+
"short_id": {
|
|
1244
|
+
"type": "string",
|
|
1245
|
+
"description": "Short ID for URL sharing"
|
|
1246
|
+
},
|
|
1247
|
+
"name": {
|
|
1248
|
+
"type": "string",
|
|
1249
|
+
"description": "Insight name"
|
|
1250
|
+
},
|
|
1251
|
+
"derived_name": {
|
|
1252
|
+
"anyOf": [
|
|
1253
|
+
{
|
|
1254
|
+
"type": "string"
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
"type": "null"
|
|
1258
|
+
}
|
|
1259
|
+
],
|
|
1260
|
+
"description": "Auto-generated name if no explicit name set"
|
|
1261
|
+
},
|
|
1262
|
+
"description": {
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"description": "Insight description"
|
|
1265
|
+
},
|
|
1266
|
+
"favorited": {
|
|
1267
|
+
"type": "boolean",
|
|
1268
|
+
"description": "Whether the current user has favorited this insight"
|
|
1269
|
+
},
|
|
1270
|
+
"tags": {
|
|
1271
|
+
"type": "array",
|
|
1272
|
+
"items": {
|
|
1273
|
+
"type": "string"
|
|
1274
|
+
},
|
|
1275
|
+
"description": "Tags attached to the insight"
|
|
1276
|
+
},
|
|
1277
|
+
"dashboards": {
|
|
1278
|
+
"type": "array",
|
|
1279
|
+
"items": {
|
|
1280
|
+
"type": "number"
|
|
1281
|
+
},
|
|
1282
|
+
"description": "IDs of dashboards this insight appears on"
|
|
1283
|
+
},
|
|
1284
|
+
"query_kind": {
|
|
1285
|
+
"type": "string",
|
|
1286
|
+
"description": "Top-level query kind (e.g., \"InsightVizNode\")"
|
|
1287
|
+
},
|
|
1288
|
+
"source_kind": {
|
|
1289
|
+
"type": "string",
|
|
1290
|
+
"description": "Source query kind (e.g., \"TrendsQuery\", \"FunnelsQuery\")"
|
|
1291
|
+
},
|
|
1292
|
+
"created_at": {
|
|
1293
|
+
"type": "string",
|
|
1294
|
+
"description": "ISO 8601 creation timestamp"
|
|
1295
|
+
},
|
|
1296
|
+
"created_by": {
|
|
1297
|
+
"anyOf": [
|
|
1298
|
+
{
|
|
1299
|
+
"type": "object",
|
|
1300
|
+
"properties": {
|
|
1301
|
+
"id": {
|
|
1302
|
+
"type": "number",
|
|
1303
|
+
"description": "Creator user ID"
|
|
1304
|
+
},
|
|
1305
|
+
"first_name": {
|
|
1306
|
+
"type": "string",
|
|
1307
|
+
"description": "Creator first name"
|
|
1308
|
+
},
|
|
1309
|
+
"email": {
|
|
1310
|
+
"type": "string",
|
|
1311
|
+
"description": "Creator email"
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
"required": [
|
|
1315
|
+
"id",
|
|
1316
|
+
"first_name",
|
|
1317
|
+
"email"
|
|
1318
|
+
],
|
|
1319
|
+
"additionalProperties": false
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"type": "null"
|
|
1323
|
+
}
|
|
1324
|
+
],
|
|
1325
|
+
"description": "User who created the insight"
|
|
1326
|
+
},
|
|
1327
|
+
"last_modified_at": {
|
|
1328
|
+
"type": "string",
|
|
1329
|
+
"description": "ISO 8601 last modification timestamp"
|
|
1330
|
+
},
|
|
1331
|
+
"deleted": {
|
|
1332
|
+
"type": "boolean",
|
|
1333
|
+
"description": "Whether the insight is deleted"
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
"required": [
|
|
1337
|
+
"id",
|
|
1338
|
+
"short_id",
|
|
1339
|
+
"name",
|
|
1340
|
+
"derived_name",
|
|
1341
|
+
"description",
|
|
1342
|
+
"favorited",
|
|
1343
|
+
"tags",
|
|
1344
|
+
"dashboards",
|
|
1345
|
+
"query_kind",
|
|
1346
|
+
"source_kind",
|
|
1347
|
+
"created_at",
|
|
1348
|
+
"created_by",
|
|
1349
|
+
"last_modified_at",
|
|
1350
|
+
"deleted"
|
|
1351
|
+
],
|
|
1352
|
+
"additionalProperties": false,
|
|
1353
|
+
"description": "The updated insight"
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
"required": [
|
|
1357
|
+
"insight"
|
|
1358
|
+
],
|
|
1359
|
+
"additionalProperties": false
|
|
1360
|
+
}
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"name": "delete_insight",
|
|
1364
|
+
"displayName": "Delete Insight",
|
|
1365
|
+
"description": "Delete an insight by marking it as deleted (soft delete).",
|
|
1366
|
+
"summary": "Delete an insight",
|
|
1367
|
+
"icon": "trash-2",
|
|
1368
|
+
"group": "Insights",
|
|
1369
|
+
"input_schema": {
|
|
1370
|
+
"type": "object",
|
|
1371
|
+
"properties": {
|
|
1372
|
+
"insight_id": {
|
|
1373
|
+
"type": "integer",
|
|
1374
|
+
"minimum": -9007199254740991,
|
|
1375
|
+
"maximum": 9007199254740991,
|
|
1376
|
+
"description": "Insight ID to delete"
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
"required": [
|
|
1380
|
+
"insight_id"
|
|
1381
|
+
],
|
|
1382
|
+
"additionalProperties": false
|
|
1383
|
+
},
|
|
1384
|
+
"output_schema": {
|
|
1385
|
+
"type": "object",
|
|
1386
|
+
"properties": {
|
|
1387
|
+
"success": {
|
|
1388
|
+
"type": "boolean",
|
|
1389
|
+
"description": "Whether the deletion succeeded"
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
"required": [
|
|
1393
|
+
"success"
|
|
1394
|
+
],
|
|
1395
|
+
"additionalProperties": false
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"name": "list_feature_flags",
|
|
1400
|
+
"displayName": "List Feature Flags",
|
|
1401
|
+
"description": "List feature flags in the current PostHog project. Supports filtering by active status and search query.",
|
|
1402
|
+
"summary": "List feature flags",
|
|
1403
|
+
"icon": "flag",
|
|
1404
|
+
"group": "Feature Flags",
|
|
1405
|
+
"input_schema": {
|
|
1406
|
+
"type": "object",
|
|
1407
|
+
"properties": {
|
|
1408
|
+
"limit": {
|
|
1409
|
+
"description": "Results per page (default 100, max 100)",
|
|
1410
|
+
"type": "integer",
|
|
1411
|
+
"minimum": 1,
|
|
1412
|
+
"maximum": 100
|
|
1413
|
+
},
|
|
1414
|
+
"offset": {
|
|
1415
|
+
"description": "Pagination offset (default 0)",
|
|
1416
|
+
"type": "integer",
|
|
1417
|
+
"minimum": 0,
|
|
1418
|
+
"maximum": 9007199254740991
|
|
1419
|
+
},
|
|
1420
|
+
"active": {
|
|
1421
|
+
"description": "Filter by active status: \"true\", \"false\", or \"STALE\"",
|
|
1422
|
+
"type": "string"
|
|
1423
|
+
},
|
|
1424
|
+
"search": {
|
|
1425
|
+
"description": "Search by flag key or name",
|
|
1426
|
+
"type": "string"
|
|
1427
|
+
}
|
|
1428
|
+
},
|
|
1429
|
+
"additionalProperties": false
|
|
1430
|
+
},
|
|
1431
|
+
"output_schema": {
|
|
1432
|
+
"type": "object",
|
|
1433
|
+
"properties": {
|
|
1434
|
+
"count": {
|
|
1435
|
+
"type": "number",
|
|
1436
|
+
"description": "Total number of results"
|
|
1437
|
+
},
|
|
1438
|
+
"has_next": {
|
|
1439
|
+
"type": "boolean",
|
|
1440
|
+
"description": "Whether more results are available"
|
|
1441
|
+
},
|
|
1442
|
+
"feature_flags": {
|
|
1443
|
+
"type": "array",
|
|
1444
|
+
"items": {
|
|
1445
|
+
"type": "object",
|
|
1446
|
+
"properties": {
|
|
1447
|
+
"id": {
|
|
1448
|
+
"type": "number",
|
|
1449
|
+
"description": "Feature flag ID"
|
|
1450
|
+
},
|
|
1451
|
+
"key": {
|
|
1452
|
+
"type": "string",
|
|
1453
|
+
"description": "Feature flag key used in code"
|
|
1454
|
+
},
|
|
1455
|
+
"name": {
|
|
1456
|
+
"type": "string",
|
|
1457
|
+
"description": "Human-readable feature flag name"
|
|
1458
|
+
},
|
|
1459
|
+
"active": {
|
|
1460
|
+
"type": "boolean",
|
|
1461
|
+
"description": "Whether the flag is currently active"
|
|
1462
|
+
},
|
|
1463
|
+
"deleted": {
|
|
1464
|
+
"type": "boolean",
|
|
1465
|
+
"description": "Whether the flag is deleted"
|
|
1466
|
+
},
|
|
1467
|
+
"ensure_experience_continuity": {
|
|
1468
|
+
"type": "boolean",
|
|
1469
|
+
"description": "Whether to persist flag value per user"
|
|
1470
|
+
},
|
|
1471
|
+
"rollout_percentage": {
|
|
1472
|
+
"anyOf": [
|
|
1473
|
+
{
|
|
1474
|
+
"type": "number"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"type": "null"
|
|
1478
|
+
}
|
|
1479
|
+
],
|
|
1480
|
+
"description": "Rollout percentage (0-100) if set"
|
|
1481
|
+
},
|
|
1482
|
+
"tags": {
|
|
1483
|
+
"type": "array",
|
|
1484
|
+
"items": {
|
|
1485
|
+
"type": "string"
|
|
1486
|
+
},
|
|
1487
|
+
"description": "Tags attached to the flag"
|
|
1488
|
+
},
|
|
1489
|
+
"created_at": {
|
|
1490
|
+
"type": "string",
|
|
1491
|
+
"description": "ISO 8601 creation timestamp"
|
|
1492
|
+
},
|
|
1493
|
+
"created_by": {
|
|
1494
|
+
"anyOf": [
|
|
1495
|
+
{
|
|
1496
|
+
"type": "object",
|
|
1497
|
+
"properties": {
|
|
1498
|
+
"id": {
|
|
1499
|
+
"type": "number",
|
|
1500
|
+
"description": "Creator user ID"
|
|
1501
|
+
},
|
|
1502
|
+
"first_name": {
|
|
1503
|
+
"type": "string",
|
|
1504
|
+
"description": "Creator first name"
|
|
1505
|
+
},
|
|
1506
|
+
"email": {
|
|
1507
|
+
"type": "string",
|
|
1508
|
+
"description": "Creator email"
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
"required": [
|
|
1512
|
+
"id",
|
|
1513
|
+
"first_name",
|
|
1514
|
+
"email"
|
|
1515
|
+
],
|
|
1516
|
+
"additionalProperties": false
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
"type": "null"
|
|
1520
|
+
}
|
|
1521
|
+
],
|
|
1522
|
+
"description": "User who created the flag"
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
"required": [
|
|
1526
|
+
"id",
|
|
1527
|
+
"key",
|
|
1528
|
+
"name",
|
|
1529
|
+
"active",
|
|
1530
|
+
"deleted",
|
|
1531
|
+
"ensure_experience_continuity",
|
|
1532
|
+
"rollout_percentage",
|
|
1533
|
+
"tags",
|
|
1534
|
+
"created_at",
|
|
1535
|
+
"created_by"
|
|
1536
|
+
],
|
|
1537
|
+
"additionalProperties": false
|
|
1538
|
+
},
|
|
1539
|
+
"description": "List of feature flags"
|
|
1540
|
+
}
|
|
1541
|
+
},
|
|
1542
|
+
"required": [
|
|
1543
|
+
"count",
|
|
1544
|
+
"has_next",
|
|
1545
|
+
"feature_flags"
|
|
1546
|
+
],
|
|
1547
|
+
"additionalProperties": false
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"name": "get_feature_flag",
|
|
1552
|
+
"displayName": "Get Feature Flag",
|
|
1553
|
+
"description": "Get detailed information about a specific feature flag including its key, rollout configuration, and tags.",
|
|
1554
|
+
"summary": "Get feature flag details",
|
|
1555
|
+
"icon": "flag",
|
|
1556
|
+
"group": "Feature Flags",
|
|
1557
|
+
"input_schema": {
|
|
1558
|
+
"type": "object",
|
|
1559
|
+
"properties": {
|
|
1560
|
+
"flag_id": {
|
|
1561
|
+
"type": "integer",
|
|
1562
|
+
"minimum": -9007199254740991,
|
|
1563
|
+
"maximum": 9007199254740991,
|
|
1564
|
+
"description": "Feature flag ID"
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
"required": [
|
|
1568
|
+
"flag_id"
|
|
1569
|
+
],
|
|
1570
|
+
"additionalProperties": false
|
|
1571
|
+
},
|
|
1572
|
+
"output_schema": {
|
|
1573
|
+
"type": "object",
|
|
1574
|
+
"properties": {
|
|
1575
|
+
"feature_flag": {
|
|
1576
|
+
"type": "object",
|
|
1577
|
+
"properties": {
|
|
1578
|
+
"id": {
|
|
1579
|
+
"type": "number",
|
|
1580
|
+
"description": "Feature flag ID"
|
|
1581
|
+
},
|
|
1582
|
+
"key": {
|
|
1583
|
+
"type": "string",
|
|
1584
|
+
"description": "Feature flag key used in code"
|
|
1585
|
+
},
|
|
1586
|
+
"name": {
|
|
1587
|
+
"type": "string",
|
|
1588
|
+
"description": "Human-readable feature flag name"
|
|
1589
|
+
},
|
|
1590
|
+
"active": {
|
|
1591
|
+
"type": "boolean",
|
|
1592
|
+
"description": "Whether the flag is currently active"
|
|
1593
|
+
},
|
|
1594
|
+
"deleted": {
|
|
1595
|
+
"type": "boolean",
|
|
1596
|
+
"description": "Whether the flag is deleted"
|
|
1597
|
+
},
|
|
1598
|
+
"ensure_experience_continuity": {
|
|
1599
|
+
"type": "boolean",
|
|
1600
|
+
"description": "Whether to persist flag value per user"
|
|
1601
|
+
},
|
|
1602
|
+
"rollout_percentage": {
|
|
1603
|
+
"anyOf": [
|
|
1604
|
+
{
|
|
1605
|
+
"type": "number"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
"type": "null"
|
|
1609
|
+
}
|
|
1610
|
+
],
|
|
1611
|
+
"description": "Rollout percentage (0-100) if set"
|
|
1612
|
+
},
|
|
1613
|
+
"tags": {
|
|
1614
|
+
"type": "array",
|
|
1615
|
+
"items": {
|
|
1616
|
+
"type": "string"
|
|
1617
|
+
},
|
|
1618
|
+
"description": "Tags attached to the flag"
|
|
1619
|
+
},
|
|
1620
|
+
"created_at": {
|
|
1621
|
+
"type": "string",
|
|
1622
|
+
"description": "ISO 8601 creation timestamp"
|
|
1623
|
+
},
|
|
1624
|
+
"created_by": {
|
|
1625
|
+
"anyOf": [
|
|
1626
|
+
{
|
|
1627
|
+
"type": "object",
|
|
1628
|
+
"properties": {
|
|
1629
|
+
"id": {
|
|
1630
|
+
"type": "number",
|
|
1631
|
+
"description": "Creator user ID"
|
|
1632
|
+
},
|
|
1633
|
+
"first_name": {
|
|
1634
|
+
"type": "string",
|
|
1635
|
+
"description": "Creator first name"
|
|
1636
|
+
},
|
|
1637
|
+
"email": {
|
|
1638
|
+
"type": "string",
|
|
1639
|
+
"description": "Creator email"
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
"required": [
|
|
1643
|
+
"id",
|
|
1644
|
+
"first_name",
|
|
1645
|
+
"email"
|
|
1646
|
+
],
|
|
1647
|
+
"additionalProperties": false
|
|
1648
|
+
},
|
|
1649
|
+
{
|
|
1650
|
+
"type": "null"
|
|
1651
|
+
}
|
|
1652
|
+
],
|
|
1653
|
+
"description": "User who created the flag"
|
|
1654
|
+
}
|
|
1655
|
+
},
|
|
1656
|
+
"required": [
|
|
1657
|
+
"id",
|
|
1658
|
+
"key",
|
|
1659
|
+
"name",
|
|
1660
|
+
"active",
|
|
1661
|
+
"deleted",
|
|
1662
|
+
"ensure_experience_continuity",
|
|
1663
|
+
"rollout_percentage",
|
|
1664
|
+
"tags",
|
|
1665
|
+
"created_at",
|
|
1666
|
+
"created_by"
|
|
1667
|
+
],
|
|
1668
|
+
"additionalProperties": false,
|
|
1669
|
+
"description": "The feature flag details"
|
|
1670
|
+
}
|
|
1671
|
+
},
|
|
1672
|
+
"required": [
|
|
1673
|
+
"feature_flag"
|
|
1674
|
+
],
|
|
1675
|
+
"additionalProperties": false
|
|
1676
|
+
}
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
"name": "create_feature_flag",
|
|
1680
|
+
"displayName": "Create Feature Flag",
|
|
1681
|
+
"description": "Create a new boolean feature flag. The key must be unique within the project and is used in code to check the flag.",
|
|
1682
|
+
"summary": "Create a new feature flag",
|
|
1683
|
+
"icon": "plus",
|
|
1684
|
+
"group": "Feature Flags",
|
|
1685
|
+
"input_schema": {
|
|
1686
|
+
"type": "object",
|
|
1687
|
+
"properties": {
|
|
1688
|
+
"key": {
|
|
1689
|
+
"type": "string",
|
|
1690
|
+
"description": "Unique flag key (used in code)"
|
|
1691
|
+
},
|
|
1692
|
+
"name": {
|
|
1693
|
+
"description": "Human-readable name",
|
|
1694
|
+
"type": "string"
|
|
1695
|
+
},
|
|
1696
|
+
"active": {
|
|
1697
|
+
"description": "Whether to activate immediately (default false)",
|
|
1698
|
+
"type": "boolean"
|
|
1699
|
+
},
|
|
1700
|
+
"rollout_percentage": {
|
|
1701
|
+
"description": "Percentage of users to roll out to (0-100)",
|
|
1702
|
+
"type": "integer",
|
|
1703
|
+
"minimum": 0,
|
|
1704
|
+
"maximum": 100
|
|
1705
|
+
},
|
|
1706
|
+
"ensure_experience_continuity": {
|
|
1707
|
+
"description": "Persist flag value per user",
|
|
1708
|
+
"type": "boolean"
|
|
1709
|
+
}
|
|
1710
|
+
},
|
|
1711
|
+
"required": [
|
|
1712
|
+
"key"
|
|
1713
|
+
],
|
|
1714
|
+
"additionalProperties": false
|
|
1715
|
+
},
|
|
1716
|
+
"output_schema": {
|
|
1717
|
+
"type": "object",
|
|
1718
|
+
"properties": {
|
|
1719
|
+
"feature_flag": {
|
|
1720
|
+
"type": "object",
|
|
1721
|
+
"properties": {
|
|
1722
|
+
"id": {
|
|
1723
|
+
"type": "number",
|
|
1724
|
+
"description": "Feature flag ID"
|
|
1725
|
+
},
|
|
1726
|
+
"key": {
|
|
1727
|
+
"type": "string",
|
|
1728
|
+
"description": "Feature flag key used in code"
|
|
1729
|
+
},
|
|
1730
|
+
"name": {
|
|
1731
|
+
"type": "string",
|
|
1732
|
+
"description": "Human-readable feature flag name"
|
|
1733
|
+
},
|
|
1734
|
+
"active": {
|
|
1735
|
+
"type": "boolean",
|
|
1736
|
+
"description": "Whether the flag is currently active"
|
|
1737
|
+
},
|
|
1738
|
+
"deleted": {
|
|
1739
|
+
"type": "boolean",
|
|
1740
|
+
"description": "Whether the flag is deleted"
|
|
1741
|
+
},
|
|
1742
|
+
"ensure_experience_continuity": {
|
|
1743
|
+
"type": "boolean",
|
|
1744
|
+
"description": "Whether to persist flag value per user"
|
|
1745
|
+
},
|
|
1746
|
+
"rollout_percentage": {
|
|
1747
|
+
"anyOf": [
|
|
1748
|
+
{
|
|
1749
|
+
"type": "number"
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
"type": "null"
|
|
1753
|
+
}
|
|
1754
|
+
],
|
|
1755
|
+
"description": "Rollout percentage (0-100) if set"
|
|
1756
|
+
},
|
|
1757
|
+
"tags": {
|
|
1758
|
+
"type": "array",
|
|
1759
|
+
"items": {
|
|
1760
|
+
"type": "string"
|
|
1761
|
+
},
|
|
1762
|
+
"description": "Tags attached to the flag"
|
|
1763
|
+
},
|
|
1764
|
+
"created_at": {
|
|
1765
|
+
"type": "string",
|
|
1766
|
+
"description": "ISO 8601 creation timestamp"
|
|
1767
|
+
},
|
|
1768
|
+
"created_by": {
|
|
1769
|
+
"anyOf": [
|
|
1770
|
+
{
|
|
1771
|
+
"type": "object",
|
|
1772
|
+
"properties": {
|
|
1773
|
+
"id": {
|
|
1774
|
+
"type": "number",
|
|
1775
|
+
"description": "Creator user ID"
|
|
1776
|
+
},
|
|
1777
|
+
"first_name": {
|
|
1778
|
+
"type": "string",
|
|
1779
|
+
"description": "Creator first name"
|
|
1780
|
+
},
|
|
1781
|
+
"email": {
|
|
1782
|
+
"type": "string",
|
|
1783
|
+
"description": "Creator email"
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
"required": [
|
|
1787
|
+
"id",
|
|
1788
|
+
"first_name",
|
|
1789
|
+
"email"
|
|
1790
|
+
],
|
|
1791
|
+
"additionalProperties": false
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
"type": "null"
|
|
1795
|
+
}
|
|
1796
|
+
],
|
|
1797
|
+
"description": "User who created the flag"
|
|
1798
|
+
}
|
|
1799
|
+
},
|
|
1800
|
+
"required": [
|
|
1801
|
+
"id",
|
|
1802
|
+
"key",
|
|
1803
|
+
"name",
|
|
1804
|
+
"active",
|
|
1805
|
+
"deleted",
|
|
1806
|
+
"ensure_experience_continuity",
|
|
1807
|
+
"rollout_percentage",
|
|
1808
|
+
"tags",
|
|
1809
|
+
"created_at",
|
|
1810
|
+
"created_by"
|
|
1811
|
+
],
|
|
1812
|
+
"additionalProperties": false,
|
|
1813
|
+
"description": "The newly created feature flag"
|
|
1814
|
+
}
|
|
1815
|
+
},
|
|
1816
|
+
"required": [
|
|
1817
|
+
"feature_flag"
|
|
1818
|
+
],
|
|
1819
|
+
"additionalProperties": false
|
|
1820
|
+
}
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
"name": "update_feature_flag",
|
|
1824
|
+
"displayName": "Update Feature Flag",
|
|
1825
|
+
"description": "Update an existing feature flag. Only specified fields are changed; omitted fields remain unchanged.",
|
|
1826
|
+
"summary": "Update a feature flag",
|
|
1827
|
+
"icon": "pencil",
|
|
1828
|
+
"group": "Feature Flags",
|
|
1829
|
+
"input_schema": {
|
|
1830
|
+
"type": "object",
|
|
1831
|
+
"properties": {
|
|
1832
|
+
"flag_id": {
|
|
1833
|
+
"type": "integer",
|
|
1834
|
+
"minimum": -9007199254740991,
|
|
1835
|
+
"maximum": 9007199254740991,
|
|
1836
|
+
"description": "Feature flag ID"
|
|
1837
|
+
},
|
|
1838
|
+
"name": {
|
|
1839
|
+
"description": "New name",
|
|
1840
|
+
"type": "string"
|
|
1841
|
+
},
|
|
1842
|
+
"active": {
|
|
1843
|
+
"description": "Active status",
|
|
1844
|
+
"type": "boolean"
|
|
1845
|
+
},
|
|
1846
|
+
"rollout_percentage": {
|
|
1847
|
+
"description": "Rollout percentage",
|
|
1848
|
+
"type": "integer",
|
|
1849
|
+
"minimum": 0,
|
|
1850
|
+
"maximum": 100
|
|
1851
|
+
},
|
|
1852
|
+
"ensure_experience_continuity": {
|
|
1853
|
+
"description": "Persist flag value per user",
|
|
1854
|
+
"type": "boolean"
|
|
1855
|
+
}
|
|
1856
|
+
},
|
|
1857
|
+
"required": [
|
|
1858
|
+
"flag_id"
|
|
1859
|
+
],
|
|
1860
|
+
"additionalProperties": false
|
|
1861
|
+
},
|
|
1862
|
+
"output_schema": {
|
|
1863
|
+
"type": "object",
|
|
1864
|
+
"properties": {
|
|
1865
|
+
"feature_flag": {
|
|
1866
|
+
"type": "object",
|
|
1867
|
+
"properties": {
|
|
1868
|
+
"id": {
|
|
1869
|
+
"type": "number",
|
|
1870
|
+
"description": "Feature flag ID"
|
|
1871
|
+
},
|
|
1872
|
+
"key": {
|
|
1873
|
+
"type": "string",
|
|
1874
|
+
"description": "Feature flag key used in code"
|
|
1875
|
+
},
|
|
1876
|
+
"name": {
|
|
1877
|
+
"type": "string",
|
|
1878
|
+
"description": "Human-readable feature flag name"
|
|
1879
|
+
},
|
|
1880
|
+
"active": {
|
|
1881
|
+
"type": "boolean",
|
|
1882
|
+
"description": "Whether the flag is currently active"
|
|
1883
|
+
},
|
|
1884
|
+
"deleted": {
|
|
1885
|
+
"type": "boolean",
|
|
1886
|
+
"description": "Whether the flag is deleted"
|
|
1887
|
+
},
|
|
1888
|
+
"ensure_experience_continuity": {
|
|
1889
|
+
"type": "boolean",
|
|
1890
|
+
"description": "Whether to persist flag value per user"
|
|
1891
|
+
},
|
|
1892
|
+
"rollout_percentage": {
|
|
1893
|
+
"anyOf": [
|
|
1894
|
+
{
|
|
1895
|
+
"type": "number"
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
"type": "null"
|
|
1899
|
+
}
|
|
1900
|
+
],
|
|
1901
|
+
"description": "Rollout percentage (0-100) if set"
|
|
1902
|
+
},
|
|
1903
|
+
"tags": {
|
|
1904
|
+
"type": "array",
|
|
1905
|
+
"items": {
|
|
1906
|
+
"type": "string"
|
|
1907
|
+
},
|
|
1908
|
+
"description": "Tags attached to the flag"
|
|
1909
|
+
},
|
|
1910
|
+
"created_at": {
|
|
1911
|
+
"type": "string",
|
|
1912
|
+
"description": "ISO 8601 creation timestamp"
|
|
1913
|
+
},
|
|
1914
|
+
"created_by": {
|
|
1915
|
+
"anyOf": [
|
|
1916
|
+
{
|
|
1917
|
+
"type": "object",
|
|
1918
|
+
"properties": {
|
|
1919
|
+
"id": {
|
|
1920
|
+
"type": "number",
|
|
1921
|
+
"description": "Creator user ID"
|
|
1922
|
+
},
|
|
1923
|
+
"first_name": {
|
|
1924
|
+
"type": "string",
|
|
1925
|
+
"description": "Creator first name"
|
|
1926
|
+
},
|
|
1927
|
+
"email": {
|
|
1928
|
+
"type": "string",
|
|
1929
|
+
"description": "Creator email"
|
|
1930
|
+
}
|
|
1931
|
+
},
|
|
1932
|
+
"required": [
|
|
1933
|
+
"id",
|
|
1934
|
+
"first_name",
|
|
1935
|
+
"email"
|
|
1936
|
+
],
|
|
1937
|
+
"additionalProperties": false
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
"type": "null"
|
|
1941
|
+
}
|
|
1942
|
+
],
|
|
1943
|
+
"description": "User who created the flag"
|
|
1944
|
+
}
|
|
1945
|
+
},
|
|
1946
|
+
"required": [
|
|
1947
|
+
"id",
|
|
1948
|
+
"key",
|
|
1949
|
+
"name",
|
|
1950
|
+
"active",
|
|
1951
|
+
"deleted",
|
|
1952
|
+
"ensure_experience_continuity",
|
|
1953
|
+
"rollout_percentage",
|
|
1954
|
+
"tags",
|
|
1955
|
+
"created_at",
|
|
1956
|
+
"created_by"
|
|
1957
|
+
],
|
|
1958
|
+
"additionalProperties": false,
|
|
1959
|
+
"description": "The updated feature flag"
|
|
1960
|
+
}
|
|
1961
|
+
},
|
|
1962
|
+
"required": [
|
|
1963
|
+
"feature_flag"
|
|
1964
|
+
],
|
|
1965
|
+
"additionalProperties": false
|
|
1966
|
+
}
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
"name": "delete_feature_flag",
|
|
1970
|
+
"displayName": "Delete Feature Flag",
|
|
1971
|
+
"description": "Delete a feature flag by marking it as deleted (soft delete).",
|
|
1972
|
+
"summary": "Delete a feature flag",
|
|
1973
|
+
"icon": "trash-2",
|
|
1974
|
+
"group": "Feature Flags",
|
|
1975
|
+
"input_schema": {
|
|
1976
|
+
"type": "object",
|
|
1977
|
+
"properties": {
|
|
1978
|
+
"flag_id": {
|
|
1979
|
+
"type": "integer",
|
|
1980
|
+
"minimum": -9007199254740991,
|
|
1981
|
+
"maximum": 9007199254740991,
|
|
1982
|
+
"description": "Feature flag ID to delete"
|
|
1983
|
+
}
|
|
1984
|
+
},
|
|
1985
|
+
"required": [
|
|
1986
|
+
"flag_id"
|
|
1987
|
+
],
|
|
1988
|
+
"additionalProperties": false
|
|
1989
|
+
},
|
|
1990
|
+
"output_schema": {
|
|
1991
|
+
"type": "object",
|
|
1992
|
+
"properties": {
|
|
1993
|
+
"success": {
|
|
1994
|
+
"type": "boolean",
|
|
1995
|
+
"description": "Whether the deletion succeeded"
|
|
1996
|
+
}
|
|
1997
|
+
},
|
|
1998
|
+
"required": [
|
|
1999
|
+
"success"
|
|
2000
|
+
],
|
|
2001
|
+
"additionalProperties": false
|
|
2002
|
+
}
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
"name": "list_experiments",
|
|
2006
|
+
"displayName": "List Experiments",
|
|
2007
|
+
"description": "List A/B test experiments in the current PostHog project.",
|
|
2008
|
+
"summary": "List experiments",
|
|
2009
|
+
"icon": "flask-conical",
|
|
2010
|
+
"group": "Experiments",
|
|
2011
|
+
"input_schema": {
|
|
2012
|
+
"type": "object",
|
|
2013
|
+
"properties": {
|
|
2014
|
+
"limit": {
|
|
2015
|
+
"description": "Results per page (default 100, max 100)",
|
|
2016
|
+
"type": "integer",
|
|
2017
|
+
"minimum": 1,
|
|
2018
|
+
"maximum": 100
|
|
2019
|
+
},
|
|
2020
|
+
"offset": {
|
|
2021
|
+
"description": "Pagination offset (default 0)",
|
|
2022
|
+
"type": "integer",
|
|
2023
|
+
"minimum": 0,
|
|
2024
|
+
"maximum": 9007199254740991
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
"additionalProperties": false
|
|
2028
|
+
},
|
|
2029
|
+
"output_schema": {
|
|
2030
|
+
"type": "object",
|
|
2031
|
+
"properties": {
|
|
2032
|
+
"experiments": {
|
|
2033
|
+
"type": "array",
|
|
2034
|
+
"items": {
|
|
2035
|
+
"type": "object",
|
|
2036
|
+
"properties": {
|
|
2037
|
+
"id": {
|
|
2038
|
+
"type": "number",
|
|
2039
|
+
"description": "Experiment ID"
|
|
2040
|
+
},
|
|
2041
|
+
"name": {
|
|
2042
|
+
"type": "string",
|
|
2043
|
+
"description": "Experiment name"
|
|
2044
|
+
},
|
|
2045
|
+
"description": {
|
|
2046
|
+
"type": "string",
|
|
2047
|
+
"description": "Experiment description"
|
|
2048
|
+
},
|
|
2049
|
+
"start_date": {
|
|
2050
|
+
"anyOf": [
|
|
2051
|
+
{
|
|
2052
|
+
"type": "string"
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
"type": "null"
|
|
2056
|
+
}
|
|
2057
|
+
],
|
|
2058
|
+
"description": "ISO 8601 start timestamp"
|
|
2059
|
+
},
|
|
2060
|
+
"end_date": {
|
|
2061
|
+
"anyOf": [
|
|
2062
|
+
{
|
|
2063
|
+
"type": "string"
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
"type": "null"
|
|
2067
|
+
}
|
|
2068
|
+
],
|
|
2069
|
+
"description": "ISO 8601 end timestamp"
|
|
2070
|
+
},
|
|
2071
|
+
"feature_flag_key": {
|
|
2072
|
+
"type": "string",
|
|
2073
|
+
"description": "Key of the associated feature flag"
|
|
2074
|
+
},
|
|
2075
|
+
"created_at": {
|
|
2076
|
+
"type": "string",
|
|
2077
|
+
"description": "ISO 8601 creation timestamp"
|
|
2078
|
+
},
|
|
2079
|
+
"created_by": {
|
|
2080
|
+
"anyOf": [
|
|
2081
|
+
{
|
|
2082
|
+
"type": "object",
|
|
2083
|
+
"properties": {
|
|
2084
|
+
"id": {
|
|
2085
|
+
"type": "number",
|
|
2086
|
+
"description": "Creator user ID"
|
|
2087
|
+
},
|
|
2088
|
+
"first_name": {
|
|
2089
|
+
"type": "string",
|
|
2090
|
+
"description": "Creator first name"
|
|
2091
|
+
},
|
|
2092
|
+
"email": {
|
|
2093
|
+
"type": "string",
|
|
2094
|
+
"description": "Creator email"
|
|
2095
|
+
}
|
|
2096
|
+
},
|
|
2097
|
+
"required": [
|
|
2098
|
+
"id",
|
|
2099
|
+
"first_name",
|
|
2100
|
+
"email"
|
|
2101
|
+
],
|
|
2102
|
+
"additionalProperties": false
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
"type": "null"
|
|
2106
|
+
}
|
|
2107
|
+
],
|
|
2108
|
+
"description": "User who created the experiment"
|
|
2109
|
+
},
|
|
2110
|
+
"type": {
|
|
2111
|
+
"type": "string",
|
|
2112
|
+
"description": "Experiment type (e.g., \"product\", \"web\")"
|
|
2113
|
+
}
|
|
2114
|
+
},
|
|
2115
|
+
"required": [
|
|
2116
|
+
"id",
|
|
2117
|
+
"name",
|
|
2118
|
+
"description",
|
|
2119
|
+
"start_date",
|
|
2120
|
+
"end_date",
|
|
2121
|
+
"feature_flag_key",
|
|
2122
|
+
"created_at",
|
|
2123
|
+
"created_by",
|
|
2124
|
+
"type"
|
|
2125
|
+
],
|
|
2126
|
+
"additionalProperties": false
|
|
2127
|
+
},
|
|
2128
|
+
"description": "List of experiments"
|
|
2129
|
+
},
|
|
2130
|
+
"count": {
|
|
2131
|
+
"type": "number",
|
|
2132
|
+
"description": "Total number of results"
|
|
2133
|
+
},
|
|
2134
|
+
"has_next": {
|
|
2135
|
+
"type": "boolean",
|
|
2136
|
+
"description": "Whether more results are available"
|
|
2137
|
+
}
|
|
2138
|
+
},
|
|
2139
|
+
"required": [
|
|
2140
|
+
"experiments",
|
|
2141
|
+
"count",
|
|
2142
|
+
"has_next"
|
|
2143
|
+
],
|
|
2144
|
+
"additionalProperties": false
|
|
2145
|
+
}
|
|
2146
|
+
},
|
|
2147
|
+
{
|
|
2148
|
+
"name": "get_experiment",
|
|
2149
|
+
"displayName": "Get Experiment",
|
|
2150
|
+
"description": "Get detailed information about a specific experiment including its dates and feature flag key.",
|
|
2151
|
+
"summary": "Get experiment details",
|
|
2152
|
+
"icon": "flask-conical",
|
|
2153
|
+
"group": "Experiments",
|
|
2154
|
+
"input_schema": {
|
|
2155
|
+
"type": "object",
|
|
2156
|
+
"properties": {
|
|
2157
|
+
"experiment_id": {
|
|
2158
|
+
"type": "integer",
|
|
2159
|
+
"minimum": -9007199254740991,
|
|
2160
|
+
"maximum": 9007199254740991,
|
|
2161
|
+
"description": "Experiment ID"
|
|
2162
|
+
}
|
|
2163
|
+
},
|
|
2164
|
+
"required": [
|
|
2165
|
+
"experiment_id"
|
|
2166
|
+
],
|
|
2167
|
+
"additionalProperties": false
|
|
2168
|
+
},
|
|
2169
|
+
"output_schema": {
|
|
2170
|
+
"type": "object",
|
|
2171
|
+
"properties": {
|
|
2172
|
+
"experiment": {
|
|
2173
|
+
"type": "object",
|
|
2174
|
+
"properties": {
|
|
2175
|
+
"id": {
|
|
2176
|
+
"type": "number",
|
|
2177
|
+
"description": "Experiment ID"
|
|
2178
|
+
},
|
|
2179
|
+
"name": {
|
|
2180
|
+
"type": "string",
|
|
2181
|
+
"description": "Experiment name"
|
|
2182
|
+
},
|
|
2183
|
+
"description": {
|
|
2184
|
+
"type": "string",
|
|
2185
|
+
"description": "Experiment description"
|
|
2186
|
+
},
|
|
2187
|
+
"start_date": {
|
|
2188
|
+
"anyOf": [
|
|
2189
|
+
{
|
|
2190
|
+
"type": "string"
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
"type": "null"
|
|
2194
|
+
}
|
|
2195
|
+
],
|
|
2196
|
+
"description": "ISO 8601 start timestamp"
|
|
2197
|
+
},
|
|
2198
|
+
"end_date": {
|
|
2199
|
+
"anyOf": [
|
|
2200
|
+
{
|
|
2201
|
+
"type": "string"
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"type": "null"
|
|
2205
|
+
}
|
|
2206
|
+
],
|
|
2207
|
+
"description": "ISO 8601 end timestamp"
|
|
2208
|
+
},
|
|
2209
|
+
"feature_flag_key": {
|
|
2210
|
+
"type": "string",
|
|
2211
|
+
"description": "Key of the associated feature flag"
|
|
2212
|
+
},
|
|
2213
|
+
"created_at": {
|
|
2214
|
+
"type": "string",
|
|
2215
|
+
"description": "ISO 8601 creation timestamp"
|
|
2216
|
+
},
|
|
2217
|
+
"created_by": {
|
|
2218
|
+
"anyOf": [
|
|
2219
|
+
{
|
|
2220
|
+
"type": "object",
|
|
2221
|
+
"properties": {
|
|
2222
|
+
"id": {
|
|
2223
|
+
"type": "number",
|
|
2224
|
+
"description": "Creator user ID"
|
|
2225
|
+
},
|
|
2226
|
+
"first_name": {
|
|
2227
|
+
"type": "string",
|
|
2228
|
+
"description": "Creator first name"
|
|
2229
|
+
},
|
|
2230
|
+
"email": {
|
|
2231
|
+
"type": "string",
|
|
2232
|
+
"description": "Creator email"
|
|
2233
|
+
}
|
|
2234
|
+
},
|
|
2235
|
+
"required": [
|
|
2236
|
+
"id",
|
|
2237
|
+
"first_name",
|
|
2238
|
+
"email"
|
|
2239
|
+
],
|
|
2240
|
+
"additionalProperties": false
|
|
2241
|
+
},
|
|
2242
|
+
{
|
|
2243
|
+
"type": "null"
|
|
2244
|
+
}
|
|
2245
|
+
],
|
|
2246
|
+
"description": "User who created the experiment"
|
|
2247
|
+
},
|
|
2248
|
+
"type": {
|
|
2249
|
+
"type": "string",
|
|
2250
|
+
"description": "Experiment type (e.g., \"product\", \"web\")"
|
|
2251
|
+
}
|
|
2252
|
+
},
|
|
2253
|
+
"required": [
|
|
2254
|
+
"id",
|
|
2255
|
+
"name",
|
|
2256
|
+
"description",
|
|
2257
|
+
"start_date",
|
|
2258
|
+
"end_date",
|
|
2259
|
+
"feature_flag_key",
|
|
2260
|
+
"created_at",
|
|
2261
|
+
"created_by",
|
|
2262
|
+
"type"
|
|
2263
|
+
],
|
|
2264
|
+
"additionalProperties": false,
|
|
2265
|
+
"description": "The experiment details"
|
|
2266
|
+
}
|
|
2267
|
+
},
|
|
2268
|
+
"required": [
|
|
2269
|
+
"experiment"
|
|
2270
|
+
],
|
|
2271
|
+
"additionalProperties": false
|
|
2272
|
+
}
|
|
2273
|
+
},
|
|
2274
|
+
{
|
|
2275
|
+
"name": "create_experiment",
|
|
2276
|
+
"displayName": "Create Experiment",
|
|
2277
|
+
"description": "Create a new A/B test experiment. Requires a name and feature flag key.",
|
|
2278
|
+
"summary": "Create a new experiment",
|
|
2279
|
+
"icon": "plus",
|
|
2280
|
+
"group": "Experiments",
|
|
2281
|
+
"input_schema": {
|
|
2282
|
+
"type": "object",
|
|
2283
|
+
"properties": {
|
|
2284
|
+
"name": {
|
|
2285
|
+
"type": "string",
|
|
2286
|
+
"description": "Experiment name"
|
|
2287
|
+
},
|
|
2288
|
+
"description": {
|
|
2289
|
+
"description": "Description",
|
|
2290
|
+
"type": "string"
|
|
2291
|
+
},
|
|
2292
|
+
"feature_flag_key": {
|
|
2293
|
+
"type": "string",
|
|
2294
|
+
"description": "Key for the associated feature flag"
|
|
2295
|
+
}
|
|
2296
|
+
},
|
|
2297
|
+
"required": [
|
|
2298
|
+
"name",
|
|
2299
|
+
"feature_flag_key"
|
|
2300
|
+
],
|
|
2301
|
+
"additionalProperties": false
|
|
2302
|
+
},
|
|
2303
|
+
"output_schema": {
|
|
2304
|
+
"type": "object",
|
|
2305
|
+
"properties": {
|
|
2306
|
+
"experiment": {
|
|
2307
|
+
"type": "object",
|
|
2308
|
+
"properties": {
|
|
2309
|
+
"id": {
|
|
2310
|
+
"type": "number",
|
|
2311
|
+
"description": "Experiment ID"
|
|
2312
|
+
},
|
|
2313
|
+
"name": {
|
|
2314
|
+
"type": "string",
|
|
2315
|
+
"description": "Experiment name"
|
|
2316
|
+
},
|
|
2317
|
+
"description": {
|
|
2318
|
+
"type": "string",
|
|
2319
|
+
"description": "Experiment description"
|
|
2320
|
+
},
|
|
2321
|
+
"start_date": {
|
|
2322
|
+
"anyOf": [
|
|
2323
|
+
{
|
|
2324
|
+
"type": "string"
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
"type": "null"
|
|
2328
|
+
}
|
|
2329
|
+
],
|
|
2330
|
+
"description": "ISO 8601 start timestamp"
|
|
2331
|
+
},
|
|
2332
|
+
"end_date": {
|
|
2333
|
+
"anyOf": [
|
|
2334
|
+
{
|
|
2335
|
+
"type": "string"
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
"type": "null"
|
|
2339
|
+
}
|
|
2340
|
+
],
|
|
2341
|
+
"description": "ISO 8601 end timestamp"
|
|
2342
|
+
},
|
|
2343
|
+
"feature_flag_key": {
|
|
2344
|
+
"type": "string",
|
|
2345
|
+
"description": "Key of the associated feature flag"
|
|
2346
|
+
},
|
|
2347
|
+
"created_at": {
|
|
2348
|
+
"type": "string",
|
|
2349
|
+
"description": "ISO 8601 creation timestamp"
|
|
2350
|
+
},
|
|
2351
|
+
"created_by": {
|
|
2352
|
+
"anyOf": [
|
|
2353
|
+
{
|
|
2354
|
+
"type": "object",
|
|
2355
|
+
"properties": {
|
|
2356
|
+
"id": {
|
|
2357
|
+
"type": "number",
|
|
2358
|
+
"description": "Creator user ID"
|
|
2359
|
+
},
|
|
2360
|
+
"first_name": {
|
|
2361
|
+
"type": "string",
|
|
2362
|
+
"description": "Creator first name"
|
|
2363
|
+
},
|
|
2364
|
+
"email": {
|
|
2365
|
+
"type": "string",
|
|
2366
|
+
"description": "Creator email"
|
|
2367
|
+
}
|
|
2368
|
+
},
|
|
2369
|
+
"required": [
|
|
2370
|
+
"id",
|
|
2371
|
+
"first_name",
|
|
2372
|
+
"email"
|
|
2373
|
+
],
|
|
2374
|
+
"additionalProperties": false
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
"type": "null"
|
|
2378
|
+
}
|
|
2379
|
+
],
|
|
2380
|
+
"description": "User who created the experiment"
|
|
2381
|
+
},
|
|
2382
|
+
"type": {
|
|
2383
|
+
"type": "string",
|
|
2384
|
+
"description": "Experiment type (e.g., \"product\", \"web\")"
|
|
2385
|
+
}
|
|
2386
|
+
},
|
|
2387
|
+
"required": [
|
|
2388
|
+
"id",
|
|
2389
|
+
"name",
|
|
2390
|
+
"description",
|
|
2391
|
+
"start_date",
|
|
2392
|
+
"end_date",
|
|
2393
|
+
"feature_flag_key",
|
|
2394
|
+
"created_at",
|
|
2395
|
+
"created_by",
|
|
2396
|
+
"type"
|
|
2397
|
+
],
|
|
2398
|
+
"additionalProperties": false,
|
|
2399
|
+
"description": "The newly created experiment"
|
|
2400
|
+
}
|
|
2401
|
+
},
|
|
2402
|
+
"required": [
|
|
2403
|
+
"experiment"
|
|
2404
|
+
],
|
|
2405
|
+
"additionalProperties": false
|
|
2406
|
+
}
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"name": "list_annotations",
|
|
2410
|
+
"displayName": "List Annotations",
|
|
2411
|
+
"description": "List annotations in the current PostHog project. Annotations mark important events on charts.",
|
|
2412
|
+
"summary": "List annotations",
|
|
2413
|
+
"icon": "message-square-text",
|
|
2414
|
+
"group": "Annotations",
|
|
2415
|
+
"input_schema": {
|
|
2416
|
+
"type": "object",
|
|
2417
|
+
"properties": {
|
|
2418
|
+
"limit": {
|
|
2419
|
+
"description": "Results per page (default 100, max 100)",
|
|
2420
|
+
"type": "integer",
|
|
2421
|
+
"minimum": 1,
|
|
2422
|
+
"maximum": 100
|
|
2423
|
+
},
|
|
2424
|
+
"offset": {
|
|
2425
|
+
"description": "Pagination offset (default 0)",
|
|
2426
|
+
"type": "integer",
|
|
2427
|
+
"minimum": 0,
|
|
2428
|
+
"maximum": 9007199254740991
|
|
2429
|
+
},
|
|
2430
|
+
"search": {
|
|
2431
|
+
"description": "Search annotations by content",
|
|
2432
|
+
"type": "string"
|
|
2433
|
+
}
|
|
2434
|
+
},
|
|
2435
|
+
"additionalProperties": false
|
|
2436
|
+
},
|
|
2437
|
+
"output_schema": {
|
|
2438
|
+
"type": "object",
|
|
2439
|
+
"properties": {
|
|
2440
|
+
"count": {
|
|
2441
|
+
"type": "number",
|
|
2442
|
+
"description": "Total number of results"
|
|
2443
|
+
},
|
|
2444
|
+
"has_next": {
|
|
2445
|
+
"type": "boolean",
|
|
2446
|
+
"description": "Whether more results are available"
|
|
2447
|
+
},
|
|
2448
|
+
"annotations": {
|
|
2449
|
+
"type": "array",
|
|
2450
|
+
"items": {
|
|
2451
|
+
"type": "object",
|
|
2452
|
+
"properties": {
|
|
2453
|
+
"id": {
|
|
2454
|
+
"type": "number",
|
|
2455
|
+
"description": "Annotation ID"
|
|
2456
|
+
},
|
|
2457
|
+
"content": {
|
|
2458
|
+
"type": "string",
|
|
2459
|
+
"description": "Annotation text content"
|
|
2460
|
+
},
|
|
2461
|
+
"date_marker": {
|
|
2462
|
+
"type": "string",
|
|
2463
|
+
"description": "ISO 8601 timestamp the annotation marks"
|
|
2464
|
+
},
|
|
2465
|
+
"scope": {
|
|
2466
|
+
"type": "string",
|
|
2467
|
+
"description": "Annotation scope (project, organization, or dashboard_item)"
|
|
2468
|
+
},
|
|
2469
|
+
"created_at": {
|
|
2470
|
+
"type": "string",
|
|
2471
|
+
"description": "ISO 8601 creation timestamp"
|
|
2472
|
+
},
|
|
2473
|
+
"created_by": {
|
|
2474
|
+
"anyOf": [
|
|
2475
|
+
{
|
|
2476
|
+
"type": "object",
|
|
2477
|
+
"properties": {
|
|
2478
|
+
"id": {
|
|
2479
|
+
"type": "number",
|
|
2480
|
+
"description": "Creator user ID"
|
|
2481
|
+
},
|
|
2482
|
+
"first_name": {
|
|
2483
|
+
"type": "string",
|
|
2484
|
+
"description": "Creator first name"
|
|
2485
|
+
},
|
|
2486
|
+
"email": {
|
|
2487
|
+
"type": "string",
|
|
2488
|
+
"description": "Creator email"
|
|
2489
|
+
}
|
|
2490
|
+
},
|
|
2491
|
+
"required": [
|
|
2492
|
+
"id",
|
|
2493
|
+
"first_name",
|
|
2494
|
+
"email"
|
|
2495
|
+
],
|
|
2496
|
+
"additionalProperties": false
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
"type": "null"
|
|
2500
|
+
}
|
|
2501
|
+
],
|
|
2502
|
+
"description": "User who created the annotation"
|
|
2503
|
+
}
|
|
2504
|
+
},
|
|
2505
|
+
"required": [
|
|
2506
|
+
"id",
|
|
2507
|
+
"content",
|
|
2508
|
+
"date_marker",
|
|
2509
|
+
"scope",
|
|
2510
|
+
"created_at",
|
|
2511
|
+
"created_by"
|
|
2512
|
+
],
|
|
2513
|
+
"additionalProperties": false
|
|
2514
|
+
},
|
|
2515
|
+
"description": "List of annotations"
|
|
2516
|
+
}
|
|
2517
|
+
},
|
|
2518
|
+
"required": [
|
|
2519
|
+
"count",
|
|
2520
|
+
"has_next",
|
|
2521
|
+
"annotations"
|
|
2522
|
+
],
|
|
2523
|
+
"additionalProperties": false
|
|
2524
|
+
}
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
"name": "create_annotation",
|
|
2528
|
+
"displayName": "Create Annotation",
|
|
2529
|
+
"description": "Create a new annotation to mark an important event on PostHog charts.",
|
|
2530
|
+
"summary": "Create a new annotation",
|
|
2531
|
+
"icon": "plus",
|
|
2532
|
+
"group": "Annotations",
|
|
2533
|
+
"input_schema": {
|
|
2534
|
+
"type": "object",
|
|
2535
|
+
"properties": {
|
|
2536
|
+
"content": {
|
|
2537
|
+
"type": "string",
|
|
2538
|
+
"description": "Annotation text content"
|
|
2539
|
+
},
|
|
2540
|
+
"date_marker": {
|
|
2541
|
+
"type": "string",
|
|
2542
|
+
"description": "ISO 8601 timestamp the annotation marks"
|
|
2543
|
+
},
|
|
2544
|
+
"scope": {
|
|
2545
|
+
"description": "Annotation scope: \"project\" (default), \"organization\", or \"dashboard_item\"",
|
|
2546
|
+
"type": "string"
|
|
2547
|
+
}
|
|
2548
|
+
},
|
|
2549
|
+
"required": [
|
|
2550
|
+
"content",
|
|
2551
|
+
"date_marker"
|
|
2552
|
+
],
|
|
2553
|
+
"additionalProperties": false
|
|
2554
|
+
},
|
|
2555
|
+
"output_schema": {
|
|
2556
|
+
"type": "object",
|
|
2557
|
+
"properties": {
|
|
2558
|
+
"annotation": {
|
|
2559
|
+
"type": "object",
|
|
2560
|
+
"properties": {
|
|
2561
|
+
"id": {
|
|
2562
|
+
"type": "number",
|
|
2563
|
+
"description": "Annotation ID"
|
|
2564
|
+
},
|
|
2565
|
+
"content": {
|
|
2566
|
+
"type": "string",
|
|
2567
|
+
"description": "Annotation text content"
|
|
2568
|
+
},
|
|
2569
|
+
"date_marker": {
|
|
2570
|
+
"type": "string",
|
|
2571
|
+
"description": "ISO 8601 timestamp the annotation marks"
|
|
2572
|
+
},
|
|
2573
|
+
"scope": {
|
|
2574
|
+
"type": "string",
|
|
2575
|
+
"description": "Annotation scope (project, organization, or dashboard_item)"
|
|
2576
|
+
},
|
|
2577
|
+
"created_at": {
|
|
2578
|
+
"type": "string",
|
|
2579
|
+
"description": "ISO 8601 creation timestamp"
|
|
2580
|
+
},
|
|
2581
|
+
"created_by": {
|
|
2582
|
+
"anyOf": [
|
|
2583
|
+
{
|
|
2584
|
+
"type": "object",
|
|
2585
|
+
"properties": {
|
|
2586
|
+
"id": {
|
|
2587
|
+
"type": "number",
|
|
2588
|
+
"description": "Creator user ID"
|
|
2589
|
+
},
|
|
2590
|
+
"first_name": {
|
|
2591
|
+
"type": "string",
|
|
2592
|
+
"description": "Creator first name"
|
|
2593
|
+
},
|
|
2594
|
+
"email": {
|
|
2595
|
+
"type": "string",
|
|
2596
|
+
"description": "Creator email"
|
|
2597
|
+
}
|
|
2598
|
+
},
|
|
2599
|
+
"required": [
|
|
2600
|
+
"id",
|
|
2601
|
+
"first_name",
|
|
2602
|
+
"email"
|
|
2603
|
+
],
|
|
2604
|
+
"additionalProperties": false
|
|
2605
|
+
},
|
|
2606
|
+
{
|
|
2607
|
+
"type": "null"
|
|
2608
|
+
}
|
|
2609
|
+
],
|
|
2610
|
+
"description": "User who created the annotation"
|
|
2611
|
+
}
|
|
2612
|
+
},
|
|
2613
|
+
"required": [
|
|
2614
|
+
"id",
|
|
2615
|
+
"content",
|
|
2616
|
+
"date_marker",
|
|
2617
|
+
"scope",
|
|
2618
|
+
"created_at",
|
|
2619
|
+
"created_by"
|
|
2620
|
+
],
|
|
2621
|
+
"additionalProperties": false,
|
|
2622
|
+
"description": "The newly created annotation"
|
|
2623
|
+
}
|
|
2624
|
+
},
|
|
2625
|
+
"required": [
|
|
2626
|
+
"annotation"
|
|
2627
|
+
],
|
|
2628
|
+
"additionalProperties": false
|
|
2629
|
+
}
|
|
2630
|
+
},
|
|
2631
|
+
{
|
|
2632
|
+
"name": "delete_annotation",
|
|
2633
|
+
"displayName": "Delete Annotation",
|
|
2634
|
+
"description": "Delete an annotation by marking it as deleted (soft delete).",
|
|
2635
|
+
"summary": "Delete an annotation",
|
|
2636
|
+
"icon": "trash-2",
|
|
2637
|
+
"group": "Annotations",
|
|
2638
|
+
"input_schema": {
|
|
2639
|
+
"type": "object",
|
|
2640
|
+
"properties": {
|
|
2641
|
+
"annotation_id": {
|
|
2642
|
+
"type": "integer",
|
|
2643
|
+
"minimum": -9007199254740991,
|
|
2644
|
+
"maximum": 9007199254740991,
|
|
2645
|
+
"description": "Annotation ID to delete"
|
|
2646
|
+
}
|
|
2647
|
+
},
|
|
2648
|
+
"required": [
|
|
2649
|
+
"annotation_id"
|
|
2650
|
+
],
|
|
2651
|
+
"additionalProperties": false
|
|
2652
|
+
},
|
|
2653
|
+
"output_schema": {
|
|
2654
|
+
"type": "object",
|
|
2655
|
+
"properties": {
|
|
2656
|
+
"success": {
|
|
2657
|
+
"type": "boolean",
|
|
2658
|
+
"description": "Whether the deletion succeeded"
|
|
2659
|
+
}
|
|
2660
|
+
},
|
|
2661
|
+
"required": [
|
|
2662
|
+
"success"
|
|
2663
|
+
],
|
|
2664
|
+
"additionalProperties": false
|
|
2665
|
+
}
|
|
2666
|
+
},
|
|
2667
|
+
{
|
|
2668
|
+
"name": "list_persons",
|
|
2669
|
+
"displayName": "List Persons",
|
|
2670
|
+
"description": "List persons (users) tracked in the current PostHog project. Supports search by name, email, or distinct ID.",
|
|
2671
|
+
"summary": "List tracked persons",
|
|
2672
|
+
"icon": "users",
|
|
2673
|
+
"group": "Persons",
|
|
2674
|
+
"input_schema": {
|
|
2675
|
+
"type": "object",
|
|
2676
|
+
"properties": {
|
|
2677
|
+
"limit": {
|
|
2678
|
+
"description": "Results per page (default 100, max 100)",
|
|
2679
|
+
"type": "integer",
|
|
2680
|
+
"minimum": 1,
|
|
2681
|
+
"maximum": 100
|
|
2682
|
+
},
|
|
2683
|
+
"offset": {
|
|
2684
|
+
"description": "Pagination offset (default 0)",
|
|
2685
|
+
"type": "integer",
|
|
2686
|
+
"minimum": 0,
|
|
2687
|
+
"maximum": 9007199254740991
|
|
2688
|
+
},
|
|
2689
|
+
"search": {
|
|
2690
|
+
"description": "Search by name, email, or distinct ID",
|
|
2691
|
+
"type": "string"
|
|
2692
|
+
},
|
|
2693
|
+
"distinct_id": {
|
|
2694
|
+
"description": "Filter by exact distinct ID",
|
|
2695
|
+
"type": "string"
|
|
2696
|
+
}
|
|
2697
|
+
},
|
|
2698
|
+
"additionalProperties": false
|
|
2699
|
+
},
|
|
2700
|
+
"output_schema": {
|
|
2701
|
+
"type": "object",
|
|
2702
|
+
"properties": {
|
|
2703
|
+
"count": {
|
|
2704
|
+
"type": "number",
|
|
2705
|
+
"description": "Total number of results"
|
|
2706
|
+
},
|
|
2707
|
+
"has_next": {
|
|
2708
|
+
"type": "boolean",
|
|
2709
|
+
"description": "Whether more results are available"
|
|
2710
|
+
},
|
|
2711
|
+
"persons": {
|
|
2712
|
+
"type": "array",
|
|
2713
|
+
"items": {
|
|
2714
|
+
"type": "object",
|
|
2715
|
+
"properties": {
|
|
2716
|
+
"id": {
|
|
2717
|
+
"type": "number",
|
|
2718
|
+
"description": "Person internal ID"
|
|
2719
|
+
},
|
|
2720
|
+
"uuid": {
|
|
2721
|
+
"type": "string",
|
|
2722
|
+
"description": "Person UUID"
|
|
2723
|
+
},
|
|
2724
|
+
"name": {
|
|
2725
|
+
"type": "string",
|
|
2726
|
+
"description": "Person display name (derived from properties)"
|
|
2727
|
+
},
|
|
2728
|
+
"distinct_ids": {
|
|
2729
|
+
"type": "array",
|
|
2730
|
+
"items": {
|
|
2731
|
+
"type": "string"
|
|
2732
|
+
},
|
|
2733
|
+
"description": "Distinct IDs associated with this person"
|
|
2734
|
+
},
|
|
2735
|
+
"properties": {
|
|
2736
|
+
"type": "object",
|
|
2737
|
+
"propertyNames": {
|
|
2738
|
+
"type": "string"
|
|
2739
|
+
},
|
|
2740
|
+
"additionalProperties": {},
|
|
2741
|
+
"description": "Person properties as key-value pairs"
|
|
2742
|
+
},
|
|
2743
|
+
"created_at": {
|
|
2744
|
+
"type": "string",
|
|
2745
|
+
"description": "ISO 8601 creation timestamp"
|
|
2746
|
+
}
|
|
2747
|
+
},
|
|
2748
|
+
"required": [
|
|
2749
|
+
"id",
|
|
2750
|
+
"uuid",
|
|
2751
|
+
"name",
|
|
2752
|
+
"distinct_ids",
|
|
2753
|
+
"properties",
|
|
2754
|
+
"created_at"
|
|
2755
|
+
],
|
|
2756
|
+
"additionalProperties": false
|
|
2757
|
+
},
|
|
2758
|
+
"description": "List of persons"
|
|
2759
|
+
}
|
|
2760
|
+
},
|
|
2761
|
+
"required": [
|
|
2762
|
+
"count",
|
|
2763
|
+
"has_next",
|
|
2764
|
+
"persons"
|
|
2765
|
+
],
|
|
2766
|
+
"additionalProperties": false
|
|
2767
|
+
}
|
|
2768
|
+
},
|
|
2769
|
+
{
|
|
2770
|
+
"name": "get_person",
|
|
2771
|
+
"displayName": "Get Person",
|
|
2772
|
+
"description": "Get detailed information about a specific person including their properties and distinct IDs.",
|
|
2773
|
+
"summary": "Get person details",
|
|
2774
|
+
"icon": "user",
|
|
2775
|
+
"group": "Persons",
|
|
2776
|
+
"input_schema": {
|
|
2777
|
+
"type": "object",
|
|
2778
|
+
"properties": {
|
|
2779
|
+
"person_id": {
|
|
2780
|
+
"type": "integer",
|
|
2781
|
+
"minimum": -9007199254740991,
|
|
2782
|
+
"maximum": 9007199254740991,
|
|
2783
|
+
"description": "Person internal ID"
|
|
2784
|
+
}
|
|
2785
|
+
},
|
|
2786
|
+
"required": [
|
|
2787
|
+
"person_id"
|
|
2788
|
+
],
|
|
2789
|
+
"additionalProperties": false
|
|
2790
|
+
},
|
|
2791
|
+
"output_schema": {
|
|
2792
|
+
"type": "object",
|
|
2793
|
+
"properties": {
|
|
2794
|
+
"person": {
|
|
2795
|
+
"type": "object",
|
|
2796
|
+
"properties": {
|
|
2797
|
+
"id": {
|
|
2798
|
+
"type": "number",
|
|
2799
|
+
"description": "Person internal ID"
|
|
2800
|
+
},
|
|
2801
|
+
"uuid": {
|
|
2802
|
+
"type": "string",
|
|
2803
|
+
"description": "Person UUID"
|
|
2804
|
+
},
|
|
2805
|
+
"name": {
|
|
2806
|
+
"type": "string",
|
|
2807
|
+
"description": "Person display name (derived from properties)"
|
|
2808
|
+
},
|
|
2809
|
+
"distinct_ids": {
|
|
2810
|
+
"type": "array",
|
|
2811
|
+
"items": {
|
|
2812
|
+
"type": "string"
|
|
2813
|
+
},
|
|
2814
|
+
"description": "Distinct IDs associated with this person"
|
|
2815
|
+
},
|
|
2816
|
+
"properties": {
|
|
2817
|
+
"type": "object",
|
|
2818
|
+
"propertyNames": {
|
|
2819
|
+
"type": "string"
|
|
2820
|
+
},
|
|
2821
|
+
"additionalProperties": {},
|
|
2822
|
+
"description": "Person properties as key-value pairs"
|
|
2823
|
+
},
|
|
2824
|
+
"created_at": {
|
|
2825
|
+
"type": "string",
|
|
2826
|
+
"description": "ISO 8601 creation timestamp"
|
|
2827
|
+
}
|
|
2828
|
+
},
|
|
2829
|
+
"required": [
|
|
2830
|
+
"id",
|
|
2831
|
+
"uuid",
|
|
2832
|
+
"name",
|
|
2833
|
+
"distinct_ids",
|
|
2834
|
+
"properties",
|
|
2835
|
+
"created_at"
|
|
2836
|
+
],
|
|
2837
|
+
"additionalProperties": false,
|
|
2838
|
+
"description": "The person details"
|
|
2839
|
+
}
|
|
2840
|
+
},
|
|
2841
|
+
"required": [
|
|
2842
|
+
"person"
|
|
2843
|
+
],
|
|
2844
|
+
"additionalProperties": false
|
|
2845
|
+
}
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
"name": "list_cohorts",
|
|
2849
|
+
"displayName": "List Cohorts",
|
|
2850
|
+
"description": "List cohorts in the current PostHog project. Cohorts are groups of persons defined by shared properties or behaviors.",
|
|
2851
|
+
"summary": "List cohorts",
|
|
2852
|
+
"icon": "users-round",
|
|
2853
|
+
"group": "Cohorts",
|
|
2854
|
+
"input_schema": {
|
|
2855
|
+
"type": "object",
|
|
2856
|
+
"properties": {
|
|
2857
|
+
"limit": {
|
|
2858
|
+
"description": "Results per page (default 100, max 100)",
|
|
2859
|
+
"type": "integer",
|
|
2860
|
+
"minimum": 1,
|
|
2861
|
+
"maximum": 100
|
|
2862
|
+
},
|
|
2863
|
+
"offset": {
|
|
2864
|
+
"description": "Pagination offset (default 0)",
|
|
2865
|
+
"type": "integer",
|
|
2866
|
+
"minimum": 0,
|
|
2867
|
+
"maximum": 9007199254740991
|
|
2868
|
+
}
|
|
2869
|
+
},
|
|
2870
|
+
"additionalProperties": false
|
|
2871
|
+
},
|
|
2872
|
+
"output_schema": {
|
|
2873
|
+
"type": "object",
|
|
2874
|
+
"properties": {
|
|
2875
|
+
"cohorts": {
|
|
2876
|
+
"type": "array",
|
|
2877
|
+
"items": {
|
|
2878
|
+
"type": "object",
|
|
2879
|
+
"properties": {
|
|
2880
|
+
"id": {
|
|
2881
|
+
"type": "number",
|
|
2882
|
+
"description": "Cohort ID"
|
|
2883
|
+
},
|
|
2884
|
+
"name": {
|
|
2885
|
+
"type": "string",
|
|
2886
|
+
"description": "Cohort name"
|
|
2887
|
+
},
|
|
2888
|
+
"description": {
|
|
2889
|
+
"type": "string",
|
|
2890
|
+
"description": "Cohort description"
|
|
2891
|
+
},
|
|
2892
|
+
"count": {
|
|
2893
|
+
"anyOf": [
|
|
2894
|
+
{
|
|
2895
|
+
"type": "number"
|
|
2896
|
+
},
|
|
2897
|
+
{
|
|
2898
|
+
"type": "null"
|
|
2899
|
+
}
|
|
2900
|
+
],
|
|
2901
|
+
"description": "Number of persons in the cohort"
|
|
2902
|
+
},
|
|
2903
|
+
"is_static": {
|
|
2904
|
+
"type": "boolean",
|
|
2905
|
+
"description": "Whether this is a static cohort (vs dynamic)"
|
|
2906
|
+
},
|
|
2907
|
+
"is_calculating": {
|
|
2908
|
+
"type": "boolean",
|
|
2909
|
+
"description": "Whether the cohort is currently being recalculated"
|
|
2910
|
+
},
|
|
2911
|
+
"created_at": {
|
|
2912
|
+
"type": "string",
|
|
2913
|
+
"description": "ISO 8601 creation timestamp"
|
|
2914
|
+
},
|
|
2915
|
+
"created_by": {
|
|
2916
|
+
"anyOf": [
|
|
2917
|
+
{
|
|
2918
|
+
"type": "object",
|
|
2919
|
+
"properties": {
|
|
2920
|
+
"id": {
|
|
2921
|
+
"type": "number",
|
|
2922
|
+
"description": "Creator user ID"
|
|
2923
|
+
},
|
|
2924
|
+
"first_name": {
|
|
2925
|
+
"type": "string",
|
|
2926
|
+
"description": "Creator first name"
|
|
2927
|
+
},
|
|
2928
|
+
"email": {
|
|
2929
|
+
"type": "string",
|
|
2930
|
+
"description": "Creator email"
|
|
2931
|
+
}
|
|
2932
|
+
},
|
|
2933
|
+
"required": [
|
|
2934
|
+
"id",
|
|
2935
|
+
"first_name",
|
|
2936
|
+
"email"
|
|
2937
|
+
],
|
|
2938
|
+
"additionalProperties": false
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
"type": "null"
|
|
2942
|
+
}
|
|
2943
|
+
],
|
|
2944
|
+
"description": "User who created the cohort"
|
|
2945
|
+
}
|
|
2946
|
+
},
|
|
2947
|
+
"required": [
|
|
2948
|
+
"id",
|
|
2949
|
+
"name",
|
|
2950
|
+
"description",
|
|
2951
|
+
"count",
|
|
2952
|
+
"is_static",
|
|
2953
|
+
"is_calculating",
|
|
2954
|
+
"created_at",
|
|
2955
|
+
"created_by"
|
|
2956
|
+
],
|
|
2957
|
+
"additionalProperties": false
|
|
2958
|
+
},
|
|
2959
|
+
"description": "List of cohorts"
|
|
2960
|
+
},
|
|
2961
|
+
"count": {
|
|
2962
|
+
"type": "number",
|
|
2963
|
+
"description": "Total number of results"
|
|
2964
|
+
},
|
|
2965
|
+
"has_next": {
|
|
2966
|
+
"type": "boolean",
|
|
2967
|
+
"description": "Whether more results are available"
|
|
2968
|
+
}
|
|
2969
|
+
},
|
|
2970
|
+
"required": [
|
|
2971
|
+
"cohorts",
|
|
2972
|
+
"count",
|
|
2973
|
+
"has_next"
|
|
2974
|
+
],
|
|
2975
|
+
"additionalProperties": false
|
|
2976
|
+
}
|
|
2977
|
+
},
|
|
2978
|
+
{
|
|
2979
|
+
"name": "get_cohort",
|
|
2980
|
+
"displayName": "Get Cohort",
|
|
2981
|
+
"description": "Get detailed information about a specific cohort including its person count and calculation status.",
|
|
2982
|
+
"summary": "Get cohort details",
|
|
2983
|
+
"icon": "users-round",
|
|
2984
|
+
"group": "Cohorts",
|
|
2985
|
+
"input_schema": {
|
|
2986
|
+
"type": "object",
|
|
2987
|
+
"properties": {
|
|
2988
|
+
"cohort_id": {
|
|
2989
|
+
"type": "integer",
|
|
2990
|
+
"minimum": -9007199254740991,
|
|
2991
|
+
"maximum": 9007199254740991,
|
|
2992
|
+
"description": "Cohort ID"
|
|
2993
|
+
}
|
|
2994
|
+
},
|
|
2995
|
+
"required": [
|
|
2996
|
+
"cohort_id"
|
|
2997
|
+
],
|
|
2998
|
+
"additionalProperties": false
|
|
2999
|
+
},
|
|
3000
|
+
"output_schema": {
|
|
3001
|
+
"type": "object",
|
|
3002
|
+
"properties": {
|
|
3003
|
+
"cohort": {
|
|
3004
|
+
"type": "object",
|
|
3005
|
+
"properties": {
|
|
3006
|
+
"id": {
|
|
3007
|
+
"type": "number",
|
|
3008
|
+
"description": "Cohort ID"
|
|
3009
|
+
},
|
|
3010
|
+
"name": {
|
|
3011
|
+
"type": "string",
|
|
3012
|
+
"description": "Cohort name"
|
|
3013
|
+
},
|
|
3014
|
+
"description": {
|
|
3015
|
+
"type": "string",
|
|
3016
|
+
"description": "Cohort description"
|
|
3017
|
+
},
|
|
3018
|
+
"count": {
|
|
3019
|
+
"anyOf": [
|
|
3020
|
+
{
|
|
3021
|
+
"type": "number"
|
|
3022
|
+
},
|
|
3023
|
+
{
|
|
3024
|
+
"type": "null"
|
|
3025
|
+
}
|
|
3026
|
+
],
|
|
3027
|
+
"description": "Number of persons in the cohort"
|
|
3028
|
+
},
|
|
3029
|
+
"is_static": {
|
|
3030
|
+
"type": "boolean",
|
|
3031
|
+
"description": "Whether this is a static cohort (vs dynamic)"
|
|
3032
|
+
},
|
|
3033
|
+
"is_calculating": {
|
|
3034
|
+
"type": "boolean",
|
|
3035
|
+
"description": "Whether the cohort is currently being recalculated"
|
|
3036
|
+
},
|
|
3037
|
+
"created_at": {
|
|
3038
|
+
"type": "string",
|
|
3039
|
+
"description": "ISO 8601 creation timestamp"
|
|
3040
|
+
},
|
|
3041
|
+
"created_by": {
|
|
3042
|
+
"anyOf": [
|
|
3043
|
+
{
|
|
3044
|
+
"type": "object",
|
|
3045
|
+
"properties": {
|
|
3046
|
+
"id": {
|
|
3047
|
+
"type": "number",
|
|
3048
|
+
"description": "Creator user ID"
|
|
3049
|
+
},
|
|
3050
|
+
"first_name": {
|
|
3051
|
+
"type": "string",
|
|
3052
|
+
"description": "Creator first name"
|
|
3053
|
+
},
|
|
3054
|
+
"email": {
|
|
3055
|
+
"type": "string",
|
|
3056
|
+
"description": "Creator email"
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
3059
|
+
"required": [
|
|
3060
|
+
"id",
|
|
3061
|
+
"first_name",
|
|
3062
|
+
"email"
|
|
3063
|
+
],
|
|
3064
|
+
"additionalProperties": false
|
|
3065
|
+
},
|
|
3066
|
+
{
|
|
3067
|
+
"type": "null"
|
|
3068
|
+
}
|
|
3069
|
+
],
|
|
3070
|
+
"description": "User who created the cohort"
|
|
3071
|
+
}
|
|
3072
|
+
},
|
|
3073
|
+
"required": [
|
|
3074
|
+
"id",
|
|
3075
|
+
"name",
|
|
3076
|
+
"description",
|
|
3077
|
+
"count",
|
|
3078
|
+
"is_static",
|
|
3079
|
+
"is_calculating",
|
|
3080
|
+
"created_at",
|
|
3081
|
+
"created_by"
|
|
3082
|
+
],
|
|
3083
|
+
"additionalProperties": false,
|
|
3084
|
+
"description": "The cohort details"
|
|
3085
|
+
}
|
|
3086
|
+
},
|
|
3087
|
+
"required": [
|
|
3088
|
+
"cohort"
|
|
3089
|
+
],
|
|
3090
|
+
"additionalProperties": false
|
|
3091
|
+
}
|
|
3092
|
+
},
|
|
3093
|
+
{
|
|
3094
|
+
"name": "list_surveys",
|
|
3095
|
+
"displayName": "List Surveys",
|
|
3096
|
+
"description": "List surveys in the current PostHog project. Surveys collect user feedback via popover, button, email, or API.",
|
|
3097
|
+
"summary": "List surveys",
|
|
3098
|
+
"icon": "clipboard-list",
|
|
3099
|
+
"group": "Surveys",
|
|
3100
|
+
"input_schema": {
|
|
3101
|
+
"type": "object",
|
|
3102
|
+
"properties": {
|
|
3103
|
+
"limit": {
|
|
3104
|
+
"description": "Results per page (default 100, max 100)",
|
|
3105
|
+
"type": "integer",
|
|
3106
|
+
"minimum": 1,
|
|
3107
|
+
"maximum": 100
|
|
3108
|
+
},
|
|
3109
|
+
"offset": {
|
|
3110
|
+
"description": "Pagination offset (default 0)",
|
|
3111
|
+
"type": "integer",
|
|
3112
|
+
"minimum": 0,
|
|
3113
|
+
"maximum": 9007199254740991
|
|
3114
|
+
},
|
|
3115
|
+
"archived": {
|
|
3116
|
+
"description": "Filter by archived status",
|
|
3117
|
+
"type": "boolean"
|
|
3118
|
+
}
|
|
3119
|
+
},
|
|
3120
|
+
"additionalProperties": false
|
|
3121
|
+
},
|
|
3122
|
+
"output_schema": {
|
|
3123
|
+
"type": "object",
|
|
3124
|
+
"properties": {
|
|
3125
|
+
"count": {
|
|
3126
|
+
"type": "number",
|
|
3127
|
+
"description": "Total number of results"
|
|
3128
|
+
},
|
|
3129
|
+
"has_next": {
|
|
3130
|
+
"type": "boolean",
|
|
3131
|
+
"description": "Whether more results are available"
|
|
3132
|
+
},
|
|
3133
|
+
"surveys": {
|
|
3134
|
+
"type": "array",
|
|
3135
|
+
"items": {
|
|
3136
|
+
"type": "object",
|
|
3137
|
+
"properties": {
|
|
3138
|
+
"id": {
|
|
3139
|
+
"type": "string",
|
|
3140
|
+
"description": "Survey UUID"
|
|
3141
|
+
},
|
|
3142
|
+
"name": {
|
|
3143
|
+
"type": "string",
|
|
3144
|
+
"description": "Survey name"
|
|
3145
|
+
},
|
|
3146
|
+
"description": {
|
|
3147
|
+
"type": "string",
|
|
3148
|
+
"description": "Survey description"
|
|
3149
|
+
},
|
|
3150
|
+
"type": {
|
|
3151
|
+
"type": "string",
|
|
3152
|
+
"description": "Survey type (popover, button, full_screen, email, api)"
|
|
3153
|
+
},
|
|
3154
|
+
"start_date": {
|
|
3155
|
+
"anyOf": [
|
|
3156
|
+
{
|
|
3157
|
+
"type": "string"
|
|
3158
|
+
},
|
|
3159
|
+
{
|
|
3160
|
+
"type": "null"
|
|
3161
|
+
}
|
|
3162
|
+
],
|
|
3163
|
+
"description": "ISO 8601 start timestamp"
|
|
3164
|
+
},
|
|
3165
|
+
"end_date": {
|
|
3166
|
+
"anyOf": [
|
|
3167
|
+
{
|
|
3168
|
+
"type": "string"
|
|
3169
|
+
},
|
|
3170
|
+
{
|
|
3171
|
+
"type": "null"
|
|
3172
|
+
}
|
|
3173
|
+
],
|
|
3174
|
+
"description": "ISO 8601 end timestamp"
|
|
3175
|
+
},
|
|
3176
|
+
"archived": {
|
|
3177
|
+
"type": "boolean",
|
|
3178
|
+
"description": "Whether the survey is archived"
|
|
3179
|
+
},
|
|
3180
|
+
"created_at": {
|
|
3181
|
+
"type": "string",
|
|
3182
|
+
"description": "ISO 8601 creation timestamp"
|
|
3183
|
+
}
|
|
3184
|
+
},
|
|
3185
|
+
"required": [
|
|
3186
|
+
"id",
|
|
3187
|
+
"name",
|
|
3188
|
+
"description",
|
|
3189
|
+
"type",
|
|
3190
|
+
"start_date",
|
|
3191
|
+
"end_date",
|
|
3192
|
+
"archived",
|
|
3193
|
+
"created_at"
|
|
3194
|
+
],
|
|
3195
|
+
"additionalProperties": false
|
|
3196
|
+
},
|
|
3197
|
+
"description": "List of surveys"
|
|
3198
|
+
}
|
|
3199
|
+
},
|
|
3200
|
+
"required": [
|
|
3201
|
+
"count",
|
|
3202
|
+
"has_next",
|
|
3203
|
+
"surveys"
|
|
3204
|
+
],
|
|
3205
|
+
"additionalProperties": false
|
|
3206
|
+
}
|
|
3207
|
+
},
|
|
3208
|
+
{
|
|
3209
|
+
"name": "get_survey",
|
|
3210
|
+
"displayName": "Get Survey",
|
|
3211
|
+
"description": "Get detailed information about a specific survey including its type, dates, and archive status.",
|
|
3212
|
+
"summary": "Get survey details",
|
|
3213
|
+
"icon": "clipboard-list",
|
|
3214
|
+
"group": "Surveys",
|
|
3215
|
+
"input_schema": {
|
|
3216
|
+
"type": "object",
|
|
3217
|
+
"properties": {
|
|
3218
|
+
"survey_id": {
|
|
3219
|
+
"type": "string",
|
|
3220
|
+
"description": "Survey UUID"
|
|
3221
|
+
}
|
|
3222
|
+
},
|
|
3223
|
+
"required": [
|
|
3224
|
+
"survey_id"
|
|
3225
|
+
],
|
|
3226
|
+
"additionalProperties": false
|
|
3227
|
+
},
|
|
3228
|
+
"output_schema": {
|
|
3229
|
+
"type": "object",
|
|
3230
|
+
"properties": {
|
|
3231
|
+
"survey": {
|
|
3232
|
+
"type": "object",
|
|
3233
|
+
"properties": {
|
|
3234
|
+
"id": {
|
|
3235
|
+
"type": "string",
|
|
3236
|
+
"description": "Survey UUID"
|
|
3237
|
+
},
|
|
3238
|
+
"name": {
|
|
3239
|
+
"type": "string",
|
|
3240
|
+
"description": "Survey name"
|
|
3241
|
+
},
|
|
3242
|
+
"description": {
|
|
3243
|
+
"type": "string",
|
|
3244
|
+
"description": "Survey description"
|
|
3245
|
+
},
|
|
3246
|
+
"type": {
|
|
3247
|
+
"type": "string",
|
|
3248
|
+
"description": "Survey type (popover, button, full_screen, email, api)"
|
|
3249
|
+
},
|
|
3250
|
+
"start_date": {
|
|
3251
|
+
"anyOf": [
|
|
3252
|
+
{
|
|
3253
|
+
"type": "string"
|
|
3254
|
+
},
|
|
3255
|
+
{
|
|
3256
|
+
"type": "null"
|
|
3257
|
+
}
|
|
3258
|
+
],
|
|
3259
|
+
"description": "ISO 8601 start timestamp"
|
|
3260
|
+
},
|
|
3261
|
+
"end_date": {
|
|
3262
|
+
"anyOf": [
|
|
3263
|
+
{
|
|
3264
|
+
"type": "string"
|
|
3265
|
+
},
|
|
3266
|
+
{
|
|
3267
|
+
"type": "null"
|
|
3268
|
+
}
|
|
3269
|
+
],
|
|
3270
|
+
"description": "ISO 8601 end timestamp"
|
|
3271
|
+
},
|
|
3272
|
+
"archived": {
|
|
3273
|
+
"type": "boolean",
|
|
3274
|
+
"description": "Whether the survey is archived"
|
|
3275
|
+
},
|
|
3276
|
+
"created_at": {
|
|
3277
|
+
"type": "string",
|
|
3278
|
+
"description": "ISO 8601 creation timestamp"
|
|
3279
|
+
}
|
|
3280
|
+
},
|
|
3281
|
+
"required": [
|
|
3282
|
+
"id",
|
|
3283
|
+
"name",
|
|
3284
|
+
"description",
|
|
3285
|
+
"type",
|
|
3286
|
+
"start_date",
|
|
3287
|
+
"end_date",
|
|
3288
|
+
"archived",
|
|
3289
|
+
"created_at"
|
|
3290
|
+
],
|
|
3291
|
+
"additionalProperties": false,
|
|
3292
|
+
"description": "The survey details"
|
|
3293
|
+
}
|
|
3294
|
+
},
|
|
3295
|
+
"required": [
|
|
3296
|
+
"survey"
|
|
3297
|
+
],
|
|
3298
|
+
"additionalProperties": false
|
|
3299
|
+
}
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
"name": "list_actions",
|
|
3303
|
+
"displayName": "List Actions",
|
|
3304
|
+
"description": "List actions in the current PostHog project. Actions are groups of events defined by matching rules.",
|
|
3305
|
+
"summary": "List actions",
|
|
3306
|
+
"icon": "zap",
|
|
3307
|
+
"group": "Actions",
|
|
3308
|
+
"input_schema": {
|
|
3309
|
+
"type": "object",
|
|
3310
|
+
"properties": {
|
|
3311
|
+
"limit": {
|
|
3312
|
+
"description": "Results per page (default 100, max 100)",
|
|
3313
|
+
"type": "integer",
|
|
3314
|
+
"minimum": 1,
|
|
3315
|
+
"maximum": 100
|
|
3316
|
+
},
|
|
3317
|
+
"offset": {
|
|
3318
|
+
"description": "Pagination offset (default 0)",
|
|
3319
|
+
"type": "integer",
|
|
3320
|
+
"minimum": 0,
|
|
3321
|
+
"maximum": 9007199254740991
|
|
3322
|
+
}
|
|
3323
|
+
},
|
|
3324
|
+
"additionalProperties": false
|
|
3325
|
+
},
|
|
3326
|
+
"output_schema": {
|
|
3327
|
+
"type": "object",
|
|
3328
|
+
"properties": {
|
|
3329
|
+
"actions": {
|
|
3330
|
+
"type": "array",
|
|
3331
|
+
"items": {
|
|
3332
|
+
"type": "object",
|
|
3333
|
+
"properties": {
|
|
3334
|
+
"id": {
|
|
3335
|
+
"type": "number",
|
|
3336
|
+
"description": "Action ID"
|
|
3337
|
+
},
|
|
3338
|
+
"name": {
|
|
3339
|
+
"type": "string",
|
|
3340
|
+
"description": "Action name"
|
|
3341
|
+
},
|
|
3342
|
+
"description": {
|
|
3343
|
+
"type": "string",
|
|
3344
|
+
"description": "Action description"
|
|
3345
|
+
},
|
|
3346
|
+
"tags": {
|
|
3347
|
+
"type": "array",
|
|
3348
|
+
"items": {
|
|
3349
|
+
"type": "string"
|
|
3350
|
+
},
|
|
3351
|
+
"description": "Tags attached to the action"
|
|
3352
|
+
},
|
|
3353
|
+
"created_at": {
|
|
3354
|
+
"type": "string",
|
|
3355
|
+
"description": "ISO 8601 creation timestamp"
|
|
3356
|
+
},
|
|
3357
|
+
"created_by": {
|
|
3358
|
+
"anyOf": [
|
|
3359
|
+
{
|
|
3360
|
+
"type": "object",
|
|
3361
|
+
"properties": {
|
|
3362
|
+
"id": {
|
|
3363
|
+
"type": "number",
|
|
3364
|
+
"description": "Creator user ID"
|
|
3365
|
+
},
|
|
3366
|
+
"first_name": {
|
|
3367
|
+
"type": "string",
|
|
3368
|
+
"description": "Creator first name"
|
|
3369
|
+
},
|
|
3370
|
+
"email": {
|
|
3371
|
+
"type": "string",
|
|
3372
|
+
"description": "Creator email"
|
|
3373
|
+
}
|
|
3374
|
+
},
|
|
3375
|
+
"required": [
|
|
3376
|
+
"id",
|
|
3377
|
+
"first_name",
|
|
3378
|
+
"email"
|
|
3379
|
+
],
|
|
3380
|
+
"additionalProperties": false
|
|
3381
|
+
},
|
|
3382
|
+
{
|
|
3383
|
+
"type": "null"
|
|
3384
|
+
}
|
|
3385
|
+
],
|
|
3386
|
+
"description": "User who created the action"
|
|
3387
|
+
},
|
|
3388
|
+
"is_calculating": {
|
|
3389
|
+
"type": "boolean",
|
|
3390
|
+
"description": "Whether the action is currently being calculated"
|
|
3391
|
+
}
|
|
3392
|
+
},
|
|
3393
|
+
"required": [
|
|
3394
|
+
"id",
|
|
3395
|
+
"name",
|
|
3396
|
+
"description",
|
|
3397
|
+
"tags",
|
|
3398
|
+
"created_at",
|
|
3399
|
+
"created_by",
|
|
3400
|
+
"is_calculating"
|
|
3401
|
+
],
|
|
3402
|
+
"additionalProperties": false
|
|
3403
|
+
},
|
|
3404
|
+
"description": "List of actions"
|
|
3405
|
+
},
|
|
3406
|
+
"count": {
|
|
3407
|
+
"type": "number",
|
|
3408
|
+
"description": "Total number of results"
|
|
3409
|
+
},
|
|
3410
|
+
"has_next": {
|
|
3411
|
+
"type": "boolean",
|
|
3412
|
+
"description": "Whether more results are available"
|
|
3413
|
+
}
|
|
3414
|
+
},
|
|
3415
|
+
"required": [
|
|
3416
|
+
"actions",
|
|
3417
|
+
"count",
|
|
3418
|
+
"has_next"
|
|
3419
|
+
],
|
|
3420
|
+
"additionalProperties": false
|
|
3421
|
+
}
|
|
3422
|
+
},
|
|
3423
|
+
{
|
|
3424
|
+
"name": "get_action",
|
|
3425
|
+
"displayName": "Get Action",
|
|
3426
|
+
"description": "Get detailed information about a specific action including its tags and calculation status.",
|
|
3427
|
+
"summary": "Get action details",
|
|
3428
|
+
"icon": "zap",
|
|
3429
|
+
"group": "Actions",
|
|
3430
|
+
"input_schema": {
|
|
3431
|
+
"type": "object",
|
|
3432
|
+
"properties": {
|
|
3433
|
+
"action_id": {
|
|
3434
|
+
"type": "integer",
|
|
3435
|
+
"minimum": -9007199254740991,
|
|
3436
|
+
"maximum": 9007199254740991,
|
|
3437
|
+
"description": "Action ID"
|
|
3438
|
+
}
|
|
3439
|
+
},
|
|
3440
|
+
"required": [
|
|
3441
|
+
"action_id"
|
|
3442
|
+
],
|
|
3443
|
+
"additionalProperties": false
|
|
3444
|
+
},
|
|
3445
|
+
"output_schema": {
|
|
3446
|
+
"type": "object",
|
|
3447
|
+
"properties": {
|
|
3448
|
+
"action": {
|
|
3449
|
+
"type": "object",
|
|
3450
|
+
"properties": {
|
|
3451
|
+
"id": {
|
|
3452
|
+
"type": "number",
|
|
3453
|
+
"description": "Action ID"
|
|
3454
|
+
},
|
|
3455
|
+
"name": {
|
|
3456
|
+
"type": "string",
|
|
3457
|
+
"description": "Action name"
|
|
3458
|
+
},
|
|
3459
|
+
"description": {
|
|
3460
|
+
"type": "string",
|
|
3461
|
+
"description": "Action description"
|
|
3462
|
+
},
|
|
3463
|
+
"tags": {
|
|
3464
|
+
"type": "array",
|
|
3465
|
+
"items": {
|
|
3466
|
+
"type": "string"
|
|
3467
|
+
},
|
|
3468
|
+
"description": "Tags attached to the action"
|
|
3469
|
+
},
|
|
3470
|
+
"created_at": {
|
|
3471
|
+
"type": "string",
|
|
3472
|
+
"description": "ISO 8601 creation timestamp"
|
|
3473
|
+
},
|
|
3474
|
+
"created_by": {
|
|
3475
|
+
"anyOf": [
|
|
3476
|
+
{
|
|
3477
|
+
"type": "object",
|
|
3478
|
+
"properties": {
|
|
3479
|
+
"id": {
|
|
3480
|
+
"type": "number",
|
|
3481
|
+
"description": "Creator user ID"
|
|
3482
|
+
},
|
|
3483
|
+
"first_name": {
|
|
3484
|
+
"type": "string",
|
|
3485
|
+
"description": "Creator first name"
|
|
3486
|
+
},
|
|
3487
|
+
"email": {
|
|
3488
|
+
"type": "string",
|
|
3489
|
+
"description": "Creator email"
|
|
3490
|
+
}
|
|
3491
|
+
},
|
|
3492
|
+
"required": [
|
|
3493
|
+
"id",
|
|
3494
|
+
"first_name",
|
|
3495
|
+
"email"
|
|
3496
|
+
],
|
|
3497
|
+
"additionalProperties": false
|
|
3498
|
+
},
|
|
3499
|
+
{
|
|
3500
|
+
"type": "null"
|
|
3501
|
+
}
|
|
3502
|
+
],
|
|
3503
|
+
"description": "User who created the action"
|
|
3504
|
+
},
|
|
3505
|
+
"is_calculating": {
|
|
3506
|
+
"type": "boolean",
|
|
3507
|
+
"description": "Whether the action is currently being calculated"
|
|
3508
|
+
}
|
|
3509
|
+
},
|
|
3510
|
+
"required": [
|
|
3511
|
+
"id",
|
|
3512
|
+
"name",
|
|
3513
|
+
"description",
|
|
3514
|
+
"tags",
|
|
3515
|
+
"created_at",
|
|
3516
|
+
"created_by",
|
|
3517
|
+
"is_calculating"
|
|
3518
|
+
],
|
|
3519
|
+
"additionalProperties": false,
|
|
3520
|
+
"description": "The action details"
|
|
3521
|
+
}
|
|
3522
|
+
},
|
|
3523
|
+
"required": [
|
|
3524
|
+
"action"
|
|
3525
|
+
],
|
|
3526
|
+
"additionalProperties": false
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
]
|
|
3530
|
+
}
|