get_agent_stats
Retrieve performance statistics for a specific agent, including connections, emails sent, and open rates, to monitor outreach effectiveness.
Instructions
Get performance statistics for a specific agent (connections, emails sent, open rates, etc.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | The agent ID |
Implementation Reference
- src/tools/agents.ts:26-31 (handler)The handler for 'get_agent_stats' tool which calls the API client.
handler: async (args: Record<string, unknown>) => { const stats = await client.getAgentStats( args.agentId as string, ); return JSON.stringify(stats, null, 2); }, - src/tools/agents.ts:19-25 (schema)Input schema for the 'get_agent_stats' tool.
inputSchema: { type: 'object' as const, properties: { agentId: { type: 'string', description: 'The agent ID' }, }, required: ['agentId'], }, - src/tools/agents.ts:16-32 (registration)Registration of 'get_agent_stats' tool within getAgentTools.
name: 'get_agent_stats', description: 'Get performance statistics for a specific agent (connections, emails sent, open rates, etc.)', inputSchema: { type: 'object' as const, properties: { agentId: { type: 'string', description: 'The agent ID' }, }, required: ['agentId'], }, handler: async (args: Record<string, unknown>) => { const stats = await client.getAgentStats( args.agentId as string, ); return JSON.stringify(stats, null, 2); }, }, - src/api-client.ts:56-58 (helper)API client method that performs the actual network request for agent stats.
async getAgentStats(id: string) { return this.request('GET', `/api/stats/unified?agentId=${id}&period=7d`); }