Skip to main content
Glama

social_thread_builder

Create structured Twitter/X threads from topics by organizing content into sequential posts with configurable length.

Instructions

Build a Twitter/X thread structure from a topic

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicYesMain topic
pointsNoNumber of thread tweets (3-10)

Implementation Reference

  • The tool 'social_thread_builder' is implemented here as an MCP tool definition within the 'registerSocialTools' function. It takes a topic and point count to generate a thread structure.
    server.tool("social_thread_builder", "Build a Twitter/X thread structure from a topic", {
      topic: z.string().describe("Main topic"),
      points: z.number().default(5).describe("Number of thread tweets (3-10)")
    }, async ({ topic, points }) => {
      const count = Math.min(Math.max(points, 3), 10);
      const structure = Array.from({ length: count }, (_, i) => {
        if (i === 0) return `1/ ${topic}\n\nMost people have no idea what's happening\n\nHere's a breakdown`;
        if (i === count - 1) return `${i + 1}/ Summary:\n\n- [key takeaway 1]\n- [key takeaway 2]\n- [key takeaway 3]\n\nFollow for more analysis like this`;
        return `${i + 1}/ [Point ${i}: specific data or insight about ${topic}]`;
      });
      return { content: [{ type: "text", text: `**Thread Structure (${count} tweets)**\n\n${structure.join("\n\n---\n\n")}` }] };
    });

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/ElromEvedElElyon/claw-mcp-toolkit'

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