Get comment analytics
get_comment_analyticsThe comment analytics dashboard in one call, for one brand or several brands added together (byBrand then splits volume, sentiment and channels per brand): counts, shares, trends, rankings and response times. sections selects the parts: overview (comment volume and moderation rate vs. the previous period of equal length), sentiment (positive, neutral, negative and without-sentiment counts), tags (comments per tag), response_times (average time from a comment to its first reply, like, hide or delete, by a person or an automation), channels (comments per platform, ad vs. organic), time_saved (estimated work saved: 40 s per automated reply, 30 s per manual reply, 20 s per hide or like), user_engagement (unique and returning commenters, top commenters), top_posts (posts with the most comments in the range, with sentiment), moderation_and_team (replied/liked/hidden/deleted: what happened to the comments received in the range, the actions performed in the range, and per person and automation). Comments written by the brand itself are excluded everywhere. Every filter applies to every section; tags matches any of the slugs. Most sections carry a time series (interval). groupBy splits the comments by adCampaign, adSet, ad or post into ranked, paged groups (ids and names, comments vs. the previous period, sentiment counts and shares, moderated share, top tags, first/last comment; groups.total counts them), for rankings and comparisons of campaigns, ad sets, ads or posts. dataQuality says when a 0 means nothing was recorded (no connected channel, no tagged comments) and when a figure rests on fewer than 20 items. get_account lists the brands and the usage guide.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"brand": "<brand>"
},
"name": "get_comment_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| adId | No | ||
| from | No | ||
| isAd | No | ||
| sort | No | Order of the groups: comments (count), negativeShare, positiveShare or withoutSentiment (share of all the group's comments, as sentiment.negativePct etc.). Ties by id. | comments |
| tags | No | Only comments carrying any of these tag slugs (list_tags), e.g. ["pricing"] with groupBy adSet for "which ad sets get the most price questions". | |
| brand | Yes | ||
| limit | No | Groups per page (1-100). | |
| order | No | Group order: desc (default, largest first) or asc. | desc |
| brands | No | More brands (slugs or ids) to add to the totals. Every brand needs analytics access. | |
| cursor | No | groups.nextCursor of the previous page, with the same input otherwise. | |
| adSetId | No | ||
| groupBy | No | Split the comments into groups and return them in `groups`, one page at a time: adCampaign, adSet, ad (by the ad ids of the post) or post. Comments on posts without that id (organic posts, ads without campaign data, comments without a post) are in no group; groups.ungroupedComments counts them. | |
| postIds | No | Only comments on these posts (post ids as returned in topPosts). | |
| interval | No | auto | |
| sections | No | Which parts to compute. Defaults to overview, sentiment, tags and response_times; with groupBy to overview only. | |
| timeZone | No | ||
| allBrands | No | Add every brand this credential can see analytics for. Brands whose plan is inactive are skipped and listed. | |
| platforms | No | ||
| postTypes | No | Only comments on these kinds of posts: ad, organic, mention, liveVideo, partnership. | |
| adCampaign | No | ||
| minComments | No | Only groups with at least this many comments in the range. Default 1 for sort=comments and 10 for the share sorts, so a group with one negative comment does not top a share ranking. | |
| adCampaignId | No | ||
| includeCharts | No | ||
| topPostsLimit | No | Posts in top_posts (1-25). |