Skip to main content
Glama

generate_hooks

Create viral Twitter thread hooks from any topic to boost engagement and reach on social media platforms.

Instructions

Generate viral hooks for X (Twitter) threads based on a topic.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicYesThe topic to generate hooks for

Implementation Reference

  • Handler function that executes the generate_hooks tool. It takes a topic and returns a list of predefined viral hook templates filled with the topic.
    if (name === "generate_hooks") { const topic = String(args?.topic || ""); const templates = [ `Stop doing ${topic} the hard way. Here is the easy way... 🧵`, `I spent 100 hours learning ${topic} so you don't have to. Here is what I found... 👇`, `Most people get ${topic} wrong. Here is how to do it right...`, `The secret to ${topic} is not what you think. A thread 🧵`, `If you want to master ${topic}, read this thread...`, `10 tools for ${topic} that feel illegal to know 🤯`, `How to crush ${topic} in 2024 (Step-by-step guide)`, ]; return { content: [{ type: "text", text: JSON.stringify(templates, null, 2) }], }; }
  • Input schema definition for the generate_hooks tool, specifying the required 'topic' parameter.
    inputSchema: { type: "object", properties: { topic: { type: "string", description: "The topic to generate hooks for" }, }, required: ["topic"], },
  • src/index.ts:23-33 (registration)
    Registration of the generate_hooks tool in the TOOLS array, which is returned by the list tools handler.
    { name: "generate_hooks", description: "Generate viral hooks for X (Twitter) threads based on a topic.", inputSchema: { type: "object", properties: { topic: { type: "string", description: "The topic to generate hooks for" }, }, required: ["topic"], }, },

Other Tools

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/samusilv/growth-hacker-mcp'

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