run_insight_query
Build and execute an ad-hoc insight analytics query. Returns chart data for rendering plus a compact summary for analysis. A global filter or breakdown on a property or argument needs that column, with the same dataType, on every event metric's event; put a condition that applies to every metric in the global filters once (not also per metric), and segment players by behavior with a cohort filter or breakdown. Load the insight-queries skill (load_skill("insight-queries")) first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| title | Yes | A short, lean chart title describing WHAT is measured (e.g. 'Daily active users'). Do NOT include the time range or dates — the chart shows the time range as a separate subtitle. | |
| projectId | Yes | The project (application) id to scope this call to. Use list_projects to discover valid ids. | |
| environment | Yes | The environment name to scope this call to (e.g. 'production'). Use list_projects to discover the names available to this token. |