Get campaign leads
get_campaign_leadsReturns the leads of any campaign by campaignId, with the same fields as fetch_leads, including score and scoreExplanation. It covers campaigns not started in this session, which fetch_leads cannot reach because fetch_leads requires a jobId from a find_leads call in the same session. Passing leadIds resolves the reply buckets from get_campaign_stats back into named people. A lead carries signal only when the search asked for a need signal.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many leads to return (default 50) | |
| leadIds | No | Optional; when set, only these leads are returned, e.g. positiveLeadIds from get_campaign_stats | |
| campaignId | Yes | Campaign id, as returned by list_campaigns or fetch_leads |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leads | Yes | ||
| total | Yes | ||
| returned | Yes | ||
| campaignId | Yes | ||
| campaignUrl | Yes |