get_starter_prompt
Retrieve a copy-paste starter prompt for any sales tool to use immediately with your AI agent. Simply provide the tool's slug to get started.
Instructions
Get the copy-paste starter prompt for a tool so you can immediately use it with your AI agent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The tool's slug (e.g., 'hubspot', 'apollo', 'lusha') |
Implementation Reference
- index.js:204-236 (handler)The main handler function for the 'get_starter_prompt' tool. Fetches tool details by slug from the Salestools API, formats a starter prompt with AI capabilities and docs links.
async function handleGetStarterPrompt(args) { const { slug } = args; try { const tool = await fetchJSON(`${BASE_URL}/api/tools/${encodeURIComponent(slug)}`); if (tool.error) { return { content: [{ type: "text", text: `Tool "${slug}" not found.` }] }; } let text = `# ${tool.name} — Starter Prompt\n\n`; if (tool.starterPrompt) { text += `Copy this into Claude Code or any AI agent:\n\n`; text += `\`\`\`\n${tool.starterPrompt}\n\`\`\`\n\n`; } else { text += `No starter prompt available for ${tool.name} yet.\n\n`; } if (tool.aiCapabilities?.length > 0) { text += `## What you can ask your AI to do:\n`; text += tool.aiCapabilities.map(c => `- ${c}`).join('\n') + '\n\n'; } if (tool.docsUrl) text += `API Docs: ${tool.docsUrl}\n`; if (tool.integrations?.length > 0) { const mcp = tool.integrations.find(i => i.platform === 'MCP'); if (mcp) text += `MCP Server: ${mcp.url}\n`; } return { content: [{ type: "text", text: text.trim() }] }; } catch (error) { return { content: [{ type: "text", text: `Failed to fetch tool "${slug}": ${error.message}` }] }; } } - index.js:290-300 (schema)Input schema registration for 'get_starter_prompt' tool. Defines the 'slug' parameter (required string) and the tool description.
{ name: "get_starter_prompt", description: "Get the copy-paste starter prompt for a tool so you can immediately use it with your AI agent.", inputSchema: { type: "object", properties: { slug: { type: "string", description: "The tool's slug (e.g., 'hubspot', 'apollo', 'lusha')" }, }, required: ["slug"], }, }, - index.js:312-312 (registration)Registration of 'get_starter_prompt' in the CallToolRequestSchema switch/case handler, routing to handleGetStarterPrompt.
case "get_starter_prompt": return handleGetStarterPrompt(args); - index.js:41-45 (helper)Helper utility fetchJSON used by handleGetStarterPrompt to call the Salestools API with a 10-second timeout.
async function fetchJSON(url) { const response = await fetch(url, { signal: AbortSignal.timeout(10000) }); if (!response.ok) throw new Error(`API error: ${response.status} ${response.statusText}`); return response.json(); }