Get post metrics
get_post_metricsGet metrics of a published post. Empty/available=false is not an error (see reason, e.g. NOT_PUBLISHED). A WORDPRESS article has views, users and avgEngagementSec only when its site is linked to Google Analytics (nightly snapshot, up to 48 h behind); otherwise reason GA4_NOT_CONNECTED or GA4_NO_ACCESS (never treat as zero). Requires scope ANALYTICS_READ (the key can only be created by the workspace owner).
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": "get_post_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | Post id. | |
| channel | No | Channel of the post target, e.g. INSTAGRAM (UPPERCASE canonical, lowercase accepted). |