Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {}, }, },
  • 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();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fav-devs/sociona-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server