get_form_stats
Read submission statistics for a form in the current team over the last N days: KPI overview (total / today / last 7 / last 30, unique examinees, anonymous, report status counts, average score, latest submission), daily submission trend, channels (by utm_source), UTM combos, login types (anonymous vs registered), device breakdown, and per-question answer distributions. Use this to gauge how a quiz is performing and to suggest improvements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in days, default 30, max 180 | |
| formId | Yes | The form UUID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window actually used | |
| trend | No | One entry per day in the window, zero-filled | |
| formId | No | The form these stats belong to | |
| devices | No | Submissions by device type | |
| channels | No | Submissions by utm_source | |
| overview | No | KPI block: { totalSubmissions, todaySubmissions, yesterdaySubmissions, last7daysSubmissions, last30daysSubmissions, uniqueExaminees, anonymousSubmissions, reportCompleted, reportFailed, reportPending, avgScore, latestSubmittedAt } | |
| utmCombos | No | Submissions by UTM combo | |
| loginTypes | No | Anonymous vs registered submissions | |
| answerDistributions | No | Per-question answer distribution (choice-style questions only) |