@opentabs-dev/opentabs-plugin-posthog 0.0.82 → 0.0.83

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