Spam-check and fix a lead's draft
fix_lead_draft_spamThe Edit view's Check Spam -> Replace -> Save, for one lead of a SINGLE campaign: spam-checks every email of the lead's draft, applies every suggested fix exactly as the Replace button would, and saves the draft. Returns the score before and after for each email, each replacement made, and the findings that had no one-click fix. Run it after generate_lead_sequence. The lead must be at 'pending_review'. Uses the user's OpenAI key for the check. NOTHING IS SENT.
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": {
"lead_id": "<lead_id>"
},
"name": "fix_lead_draft_spam"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lead_id | Yes | The lead whose draft to fix — the `id` from list_leads. SINGLE campaigns only, and the lead must be at 'pending_review'. | |
| idempotency_key | No | Optional. Send the SAME value when retrying a call you are unsure completed. |