get_funnel
Retrieve prospect conversion funnel data for an agent across outreach stages from discovery to conversion on platforms like LinkedIn, Email, X, and Instagram.
Instructions
Get the prospect funnel for an agent showing conversion at each stage (discovered -> contacted -> engaged -> replied -> converted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | The agent ID | |
| platform | Yes | The agent platform |
Implementation Reference
- src/api-client.ts:62-68 (handler)The implementation of the getFunnel method in the API client, which performs the actual network request.
async getFunnel(id: string, platform: string) { const routes: Record<string, string> = { x: `/api/agents/x/funnel/${id}`, instagram: `/api/agents/instagram/funnel/${id}`, }; return this.request('GET', routes[platform] || `/api/agents/${id}/funnel`); } - src/tools/analytics.ts:6-29 (registration)The MCP tool definition and handler wrapper for 'get_funnel'.
{ name: 'get_funnel', description: 'Get the prospect funnel for an agent showing conversion at each stage (discovered -> contacted -> engaged -> replied -> converted)', inputSchema: { type: 'object' as const, properties: { agentId: { type: 'string', description: 'The agent ID' }, platform: { type: 'string', enum: ['linkedin', 'email', 'x', 'instagram'], description: 'The agent platform', }, }, required: ['agentId', 'platform'], }, handler: async (args: Record<string, unknown>) => { const funnel = await client.getFunnel( args.agentId as string, args.platform as string, ); return JSON.stringify(funnel, null, 2); }, },