get_metric_summary
Compute summary metrics for a dataset, including post counts, engagement sums, and distributions by sentiment or platform, with optional filters.
Instructions
Compute metric summaries for a dataset.
Scalar metrics: post_count, engagement_sum, avg_engagement, like_sum, comment_sum, share_sum Distribution metrics: sentiment_distribution, platform_distribution, brand_distribution, category_distribution
When metrics is omitted, returns the default set: post_count, engagement_sum, avg_engagement, sentiment_distribution, platform_distribution.
Args: query_id: Dataset ID from list_data_queries metrics: List of metric names to compute (default: all 5 standard metrics) filters: Optional filters dict. Keys: platform, brand, sentiment, category, date_from (ISO date), date_to (ISO date)
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": {
"query_id": "<query_id>"
},
"name": "get_metric_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_id | Yes | ||
| metrics | No | ||
| filters | No |