Refresh analytics
refresh_analyticsFetch fresh analytics for a published post from the provider and store a new snapshot, then return it. Supported providers: Instagram, TikTok, YouTube, Reddit, X, Pinterest, Snapchat (others return an unsupported snapshot). Call this before get_analytics when you need current numbers rather than the last stored snapshot.
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": {
"postId": "<postId>"
},
"name": "refresh_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | The published post id to refresh. | |
| window | No | Optional analytics window, e.g. 7d (default lifetime). |