run_retention_query
Build and execute an ad-hoc retention analytics query: of the players who did a start event, how many came back and did a return event N days/weeks/months later. Returns retention 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 both events; put a condition that applies to both in the global filters once (not also per event), and segment players by behavior with a cohort filter or breakdown. Load the retention-queries skill (load_skill("retention-queries")) first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| title | Yes | A short, lean chart title describing the retention measured (e.g. 'Day-1 retention'). Do NOT include the time range. | |
| 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. |