social_hashtag_research
Research trending hashtags for any topic using public data to identify relevant social media tags for content optimization and audience engagement.
Instructions
Research trending hashtags for a topic (uses public data)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Topic to research hashtags for |
Implementation Reference
- src/modules/social.ts:48-59 (handler)The handler for the social_hashtag_research tool, which processes the input topic and returns suggested hashtags.
server.tool("social_hashtag_research", "Research trending hashtags for a topic (uses public data)", { topic: z.string().describe("Topic to research hashtags for") }, async ({ topic }) => { const words = topic.toLowerCase().split(/\s+/); const primary = words.map(w => `#${w}`); const related = [ `#${words.join("")}`, `#${words[0]}community`, "#buildinpublic", "#ai", "#tech", "#startup", "#crypto", "#web3", "#defi", "#machinelearning" ]; return { content: [{ type: "text", text: `**Hashtag Research: "${topic}"**\n\n**Primary**: ${primary.join(" ")}\n**Related**: ${related.slice(0, 6).join(" ")}\n\n*Pro tip: Use 0-2 hashtags on Twitter/X for best engagement. LinkedIn: 3-5. Instagram: 15-25.*\n\n**WARNING**: The 0xCVYH style uses ZERO hashtags. Only use if explicitly targeting discovery.` }] }; });