Skip to main content
Glama
getCopywritingFrameworkTool.ts1.21 kB
import { z } from "zod"; import type { CopywritingService } from "../services/copywritingService.js"; export const getCopywritingFrameworkToolDefinition = { title: "Get Specific Copywriting Framework", description: "Get detailed information about a specific copywriting framework for a network", inputSchema: { network: z .string() .describe( "Social media network (twitter, instagram, linkedin, tiktok, youtube, facebook)", ), framework: z .string() .describe( "Framework name (aida, pas, bab, 4cs, uuuu, pppp, slap, app, storybrand)", ), }, }; export const getCopywritingFrameworkHandler = (copywritingService: CopywritingService) => async ({ network, framework }: { network: string; framework: string }) => { try { const responseText = copywritingService.formatFramework( network, framework, ); return { content: [ { type: "text" as const, text: responseText, }, ], }; } catch (error) { return { content: [ { type: "text" as const, text: `Error reading copywriting framework: ${error instanceof Error ? error.message : "Unknown error"}`, }, ], isError: true, }; } };

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/synthetic-ci/vibe-marketing'

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