MCPOutils MCP/Invitations à laisser un avis/run_campaign_action

run_campaign_action

Writereview-invite:write

Run a lifecycle action on a review-invite campaign. Actions: "publish" launches the campaign — if autoSend is on this starts sending real emails/SMS to recipients immediately, and it is gated per channel: a campaign whose channels include EMAIL requires a verified sending domain for the client, and one whose channels include SMS requires a carrier-verified number for the location (either failure returns an explanatory error); "stop" halts an active campaign; "clone" duplicates it as a new draft (returns the clone); "autoSend" turns automatic sending on/off for new recipients (pass `on`); "archive" archives it (only allowed once stopped — a still-active campaign is silently skipped, check the response); "unarchive" restores an archived campaign. Identify the campaign by its id.

Paramètres
campaignIdstringobligatoire
The id of the campaign to act on (required, from list_review_campaigns).
op"publish" | "stop" | "clone" | "autoSend" | "archive" | "unarchive"obligatoire
The action to run (required).
onbooleanfacultatif
Required when op is "autoSend" — true to enable, false to disable.
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "run_campaign_action",
    "arguments": {
      "campaignId": "string",
      "op": "publish"
    }
  }
}
Exemple de réponse
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.