get_campaign_leads_stats
Retrieve per-lead statistics for a campaign using cursor or offset pagination and filter by status to analyze lead outcomes.
Instructions
Get per-lead statistics for a campaign. Supports cursor-based pagination (getLeadsAfter/getLeadsBefore) for simple page-by-page access, OR offset-based pagination (skip/limit) and status filtering — when skip>0 or status is provided, all pages are fetched client-side and then filtered/sliced.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaignId": "<campaignId>"
},
"name": "get_campaign_leads_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Number of leads to skip for offset-based pagination. Triggers full fetch of all pages. | |
| limit | No | Max leads to return (default 25) | |
| status | No | Filter leads by status, e.g. 'replied', 'converted', 'notinterested'. Triggers full fetch of all pages. | |
| campaignId | Yes | The campaign ID | |
| getLeadsAfter | No | Lead ID to get results after (cursor-based forward pagination, single page) | |
| getLeadsBefore | No | Lead ID to get results before (cursor-based backward pagination, single page) |