Update an existing insight by ID. Can update name, description, filters, and other properties. You should get the insight before update it to see it's current query structure, and only modify the...
Get comprehensive experiment results including all metrics data (primary and secondary) and exposure data. This tool fetches the experiment details and executes the necessary queries to get complete...
Creates a new survey in the project. Surveys can be popover or API-based and support various question types including open-ended, multiple choice, rating, and link questions. Once created, you should...
List all tracked events in your PostHog project. Use this to discover what analytics events exist before running queries. Returns event names, descriptions, and volume data. Essential first step for...
Use this tool to search the PostHog documentation for information that can help the user with their request. Use it as a fallback when you cannot answer the user's request using other tools in this...
Create insight from query
Create an insight from a query that you have previously tested with 'query-run'. You should check the query runs, before creating an insight. Do not create an insight before running the query, unless...
List available properties for events or persons. Event properties include custom attributes sent with analytics events (e.g., page URL, referrer, device type). Person properties are user attributes...
Creates a new feature flag in the project. Once you have created a feature flag, you should: Ask the user if they want to add it to their codebase, Use the "search-docs" tool to find documentation on...
Get the organizations the user has access to.
Get a specific dashboard by ID. The response will include insights / tiles that are on the dashboard.
Get feature flag definition
Get the definition of a feature flag. You can provide either the flagId or the flagKey. If you provide both, the flagId will be used.
Create a new dashboard in the project. Requires name and optional description, tags, and other properties.
Get all experiments in the project.
Get all survey response stats
Get aggregated response statistics across all surveys in the project. Includes event counts (shown, dismissed, sent), unique respondents, conversion rates, and timing data. Supports optional date...
Get survey response stats
Get response statistics for a specific survey. Includes detailed event counts (shown, dismissed, sent), unique respondents, conversion rates, and timing data. Supports optional date filtering.
Delete a survey by ID (soft delete - marks as archived).
Delete an experiment by ID.
Fetches the total LLM daily costs for each model for a project over a given number of days. If no number of days is provided, it defaults to 7. The results are sorted by model name. The total cost is...
Add an existing insight to a dashboard. Requires insight ID and dashboard ID. Optionally supports layout and color customization.
Update an existing survey by ID. Can update name, description, questions, scheduling, and other survey properties.
Get all feature flags in the project.
Run analytics queries to analyze events, pageviews, sessions, and user behavior. Use this to answer questions about event volume, metrics, conversion rates, trends over time, and funnels. Supports...
Update an existing dashboard by ID. Can update name, description, pinned status or tags.
Switch active organization
Change the active organization from the default organization. You should only use this tool if the user asks you to change the organization - otherwise, the default organization will be used.
Delete a feature flag in the project.
Create a comprehensive A/B test experiment. PROCESS: 1) Understand experiment goal and hypothesis 2) Search existing feature flags with 'feature-flags-get-all' tool first and suggest reuse or new key...
Update a new feature flag in the project. To enable a feature flag, you should make sure it is active and the rollout percentage is set to 100 for the group you want to target. To disable a feature...
Get all dashboards in the project with optional filtering. Can filter by pinned status, search term, or pagination.
Get all surveys in the project with optional filtering. Can filter by search term or use pagination.
Get all saved analytics insights (charts, reports, dashboards tiles) in the project. Insights are saved queries showing trends, funnels, retention, paths, and other visualizations. Filter by...
Use this tool to get the details of an error in the project.
Generate HogQL (SQL) from natural language questions about your analytics data. Use when you need complex event analytics, custom aggregations, or queries that can't be expressed as simple...
Update an existing experiment by ID. Can update name, description, lifecycle state, variants, metrics, and other properties. RESTART WORKFLOW: To restart a concluded experiment, set end_date=null,...
Change the active project from the default project. You should only use this tool if the user asks you to change the project - otherwise, the default project will be used.
Fetches projects that the user has access to in the current organization.
Get a specific insight by ID.
Get the details of the active organization.
Use this tool to list errors in the project.
Execute a query on an existing insight to get its results/data. Provide the insight ID to retrieve the current query results.
Delete a dashboard by ID (soft delete - marks as deleted).
Get a specific survey by ID. Returns the survey configuration including questions, targeting, and scheduling details.
Get details of a specific experiment by ID.
Delete an insight by ID (soft delete - marks as deleted).