get_post_stats
Analyze your social media posts' performance by retrieving key statistics including reach, engagement, and other metrics across connected accounts.
Instructions
Get statistics about your posts
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_post_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:305-316 (handler)The getPostStats() method (lines 305-316) is the handler that calls GET /posts/stats on the API and returns a formatted text response with total, published, failed, and scheduled counts.
private async getPostStats() { const { stats } = await this.apiRequest('GET', '/posts/stats'); return { content: [ { type: 'text', text: `Post Statistics:\n- Total: ${stats.total}\n- Published: ${stats.published}\n- Failed: ${stats.failed}\n- Scheduled: ${stats.scheduled}`, }, ], }; } - src/index.ts:122-128 (schema)The inputSchema definition for 'get_post_stats' tool (no required properties, empty schema).
name: 'get_post_stats', description: 'Get statistics about your posts', inputSchema: { type: 'object', properties: {}, }, }, - src/index.ts:150-151 (registration)The switch-case registration routing 'get_post_stats' to the getPostStats() method.
case 'get_post_stats': return await this.getPostStats(); - src/index.ts:121-128 (registration)The tool name 'get_post_stats' registered in the ListToolsRequestHandler (lines 121-128) with its description and inputSchema.
{ name: 'get_post_stats', description: 'Get statistics about your posts', inputSchema: { type: 'object', properties: {}, }, },