Get top posts by engagement
get_top_postsRank the organization's posts by an engagement metric over a period. Defaults to overall engagement (sum of all metrics). Returns at most the 10 best posts: there is no limit or page parameter, so narrow days or change metric to see others. Each post may carry media — a reference to its first media item in the library ({id, mimeType, hasThumbnail}), not a URL; null when the post has no media.
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": "get_top_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Period in days (7, 30, 90; default 30) | |
| metric | No | Metric to rank by (default: engagement) | |
| organizationId | No | Organization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| posts | No | ||
| metric | No | The metric the ranking used |