Get analytics
get_analyticsHow the user's connected accounts and the posts published with Sendhour did over the last 7, 30 or 90 days: totals and per-account views, engagement (likes, comments, shares, saves, reposts), followers and posts published, with the previous period for comparison (null when there is no earlier data), plus the top posts by engagement with their lifetime stats. Use it to learn what performed best before planning new posts. Reads stored numbers only (refreshed about hourly); null means the network does not report that number or there is no data yet. needs_reconnect means the account must be reconnected in Sendhour for analytics.
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_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Period ending today. Default 30. | |
| limit | No | Top posts to return. Default 10. | |
| account_ids | No | Only these accounts (from list_accounts). Default: every account. |