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
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Main topic | |
| points | No | Number of thread tweets (3-10) |
Implementation Reference
- src/modules/social.ts:21-32 (handler)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")}` }] }; });