MCPHerramientas MCP/Invitaciones a reseñas/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.

Parámetros
campaignIdstringobligatorio
The id of the campaign to act on (required, from list_review_campaigns).
op"publish" | "stop" | "clone" | "autoSend" | "archive" | "unarchive"obligatorio
The action to run (required).
onbooleanopcional
Required when op is "autoSend" — true to enable, false to disable.
Solicitud de ejemplo
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "run_campaign_action",
    "arguments": {
      "campaignId": "string",
      "op": "publish"
    }
  }
}
Respuesta de ejemplo
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forma de la respuesta se muestra a modo ilustrativo — el contenido real depende de la herramienta y de tus datos.