get_post_stats
Analyze social media post performance metrics across X (Twitter), Instagram, and Threads to track engagement and measure content effectiveness.
Instructions
Get statistics about your posts
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:305-316 (handler)The primary handler function for the 'get_post_stats' tool. It makes an API request to '/posts/stats', extracts the stats, and returns a formatted text response with total, published, failed, and scheduled post 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:121-128 (registration)Registration of the 'get_post_stats' tool in the ListTools response, including name, description, and input schema (no required parameters).{ name: 'get_post_stats', description: 'Get statistics about your posts', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:150-151 (handler)Dispatch logic in the CallToolRequestSchema handler that routes calls to 'get_post_stats' to the getPostStats method.case 'get_post_stats': return await this.getPostStats();