Get Analytics Data
analytics_get_summarySummarises web automation test results in a date range: total tests, passed, failed, completed without a pass/fail mark, pass rate (passed over all tests, as the Insights page shows it), pass rate over tests marked passed or failed, average duration and distinct builds, grouped by status, browser, os, build, device or day. Computed from the automation test list (up to 5000 tests per call; the total is always exact). Returns at most 100 groups, largest first; groups_total and groups_truncated say when there are more.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analytics_get_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toDate | No | End date, YYYY-MM-DD (UTC), included. Defaults to today. | |
| groupBy | No | Dimension to group by. Defaults to status. | |
| fromDate | No | Start date, YYYY-MM-DD (UTC), no earlier than 59 days before today (older results are not served). Defaults to 30 days before toDate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| other | No | ||
| total | Yes | ||
| builds | Yes | ||
| failed | No | ||
| groups | Yes | ||
| passed | No | ||
| toDate | Yes | ||
| fromDate | Yes | ||
| group_by | Yes | ||
| pass_rate | No | Percent of all tests that passed. | |
| truncated | Yes | True when tests_in_range is larger than tests_scanned. | |
| groups_total | Yes | ||
| tests_scanned | Yes | Tests read and counted (at most 5000). | |
| avg_duration_s | No | ||
| tests_in_range | Yes | Tests the API holds for the range. | |
| groups_truncated | Yes | ||
| completed_unmarked | No | ||
| pass_rate_of_marked | No | Percent of tests marked passed or failed that passed. |