Get account analytics
get_account_analyticsGet analytics metrics for a connected social account. Empty/available=false is not an error (see reason: NOT_SUPPORTED for networks without analytics such as WordPress and LinkedIn; e.g. NOT_AVAILABLE or PROVIDER_ERROR when a YouTube channel has not granted the Analytics API or YouTube rejected the call); the window must end today (or yesterday), max 90 days, and is served as the trailing 7/30/90 days (the response range shows the window actually used); for a BLUESKY account the response carries impressions and reach as {available:false, reason: NOT_PROVIDED_BY_NETWORK} because Bluesky does not expose them (never treat that as zero or as an error); a GBP account is a location and its analytics are per location: a location the connection can no longer access returns available=false with a reason (NOT_AVAILABLE or PROVIDER_ERROR), never an error; 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": {
"accountId": "<accountId>"
},
"name": "get_account_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Range end, ISO date YYYY-MM-DD. | |
| from | No | Range start, ISO date YYYY-MM-DD. | |
| channel | No | Channel of the account, e.g. INSTAGRAM (UPPERCASE canonical, lowercase accepted). | |
| accountId | Yes | Connected social account id (uuid). |