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 at least an email or phone. If the campaign is already launched with autoSend on (and sends both email and SMS), adding recipients here immediately triggers a real send to the new rows — not just a data insert. 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".
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.