get_analytics
Get analytics snapshots for a post, an account, or a run. scope must be post, account, or run; id is the matching identifier.
Calling it
Invoke this tool with a JSON-RPC 2.0 tools/call request against the hosted MCP endpoint at POST https://getsocialclaw.com/mcp. Send your workspace API key as Authorization: Bearer sc_live_your_key. In an MCP client (Claude, Cursor, Claude Code) the client makes this call for you — just ask it to use get_analytics.
Arguments
| Parameter | Type | Description | |
|---|---|---|---|
scope |
enum: post | account | run |
required | |
id |
string |
required | |
window |
string |
optional | Optional analytics window, e.g. 7d. |
Example request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_analytics",
"arguments": {
"scope": "post",
"id": "post_123"
}
}
}
Response
The server replies with a JSON-RPC result whose content array carries the tool output as a JSON-encoded text block. isError is true when the call failed.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "{ /* JSON-encoded tool result */ }"
}
],
"isError": false
}
}