Count term mentions in comments
count_comment_termsExact counts of how many comments (and how many different people) mention each of up to 10 words, product names or phrases, over ALL comments of the range, not a sample. For "how often does X come up", "how many people talk about X", "X or Y, which is mentioned more", "how many complain about the smell", and mention trends by day, week or month. match "word" (default) counts the term as a whole word, case-insensitive ("Creme" matches "creme" and "CREME", not "Eincremen" or "Cremes"); "wordStart" also counts words that begin with it ("Kalk" → "Kalkentferner"); "contains" counts it anywhere in the text. Per term: comments, people, share of all comments in the range, sentiment, platforms and an optional series; plus the comments mentioning any of the terms. Comments by the brand itself are excluded. analyze_comments with search = the term returns what people say about it; list_comments with search lists every matching comment.
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>",
"terms": "<terms>"
},
"name": "count_comment_terms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| adId | No | ||
| from | No | ||
| isAd | No | ||
| tags | No | Only comments carrying any of these tag slugs. | |
| brand | Yes | ||
| match | No | word (default): whole word only. wordStart: words beginning with the term. contains: anywhere. | word |
| terms | Yes | Words, names or short phrases to count, each on its own, e.g. ["Creme", "Watte"]. | |
| postId | No | Only comments on this post. | |
| adSetId | No | ||
| interval | No | Series per term: auto (day ≤45 days, week ≤190, else month), day, week (from Monday), month or none. | none |
| timeZone | No | ||
| platforms | No | ||
| adCampaign | No | ||
| sentiments | No | Only comments with these sentiments, e.g. ["negative"] for complaints. | |
| adCampaignId | No | ||
| includeReplies | No | Include replies to other comments. |