execute_query
Execute a saved analytics query (insight, funnel, retention, or heatmap) and return its results. Supports overriding the time range and (except for heatmaps) breakdowns; the result is rendered as a chart for the user automatically. Load the run-analytics-query skill (load_skill("run-analytics-query")) first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Optional time range override. Replaces the saved query's time when provided. | |
| queryId | Yes | The id of the saved query to execute. | |
| projectId | Yes | The project (application) id to scope this call to. Use list_projects to discover valid ids. | |
| breakdowns | No | Optional breakdown dimensions override. Replaces the saved query's breakdowns when provided. | |
| environment | Yes | The environment name to scope this call to (e.g. 'production'). Use list_projects to discover the names available to this token. |