MCPFerramentas MCP/Convites de avaliação/add_campaign_recipients

add_campaign_recipients

Writereview-invite:write

Add recipients to a review-invite campaign. Each recipient needs a name of at least 2 characters and the address the campaign sends to: an email address for an email campaign, a phone number for a text-message campaign, either for one that does both. A list with a recipient that doesn't qualify is refused whole, with which rows and why. Phone numbers for a campaign that sends text messages are only accepted with smsConsent: true, which records that these people agreed to get texts — set it only when the person you're helping has told you the consent script was read to them and they agreed; never assume it. If the campaign is already launched with autoSend on, adding recipients here immediately triggers a real send to the new rows — not just a data insert. Requires ReviewGen in the agency's plan. Returns the number of recipients added. Identify the campaign by its id (from list_review_campaigns or create_review_campaign).

Parâmetros
campaignIdstringobrigatório
The id of the campaign to add recipients to (required).
recipientsobject[]obrigatório
One or more recipients to add.
namestringopcional
Recipient's name.
emailstringopcional
Recipient's email address.
phonestringopcional
Recipient's phone number.
sourcestringopcional
Where this recipient came from, e.g. "manual", "csv", "pos".
contactTypestringopcional
Contact type, if tracked (e.g. "customer").
channelstringopcional
Preferred send channel for this recipient, e.g. "email" | "sms".
smsConsentbooleanopcional
True only when the person confirmed these people agreed to receive text messages (the consent script was read to them). Recorded against that person; required for phone numbers on a campaign that sends texts.
Exemplo de solicitação
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_campaign_recipients",
    "arguments": {
      "campaignId": "string",
      "recipients": [
        {}
      ]
    }
  }
}
Exemplo de resposta
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

O formato da resposta é ilustrativo — o conteúdo real depende da ferramenta e dos seus dados.