Update campaign

Change the name, subject or sender of a draft campaign.

MCP tool mailjet_write → update_campaign

write

Sets the campaign name, the subject line and the From name and address of a draft. A scheduled or sent campaign cannot be edited and returns an error. The sender address must be one you may use in Mailjet. The design is not touched. The change reaches no one and is undone by calling the tool again, so it does not wait for your OK.

Parameters

Parameters: update_campaign
NameTypeDescription
campaign_id integer required integer Campaign ID from list_campaigns.
name string string Campaign name. Only you see it.
subject string string Subject line, up to 100 characters.
sender_name string string From name.
sender_email string string From address you own or manage in Mailjet.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "mailjet_write",
    "arguments": {
      "operation": "update_campaign",
      "arguments": {
        "campaign_id": 1
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "campaign_id": 7182934615,
    "name": "Autumn offer, last chance",
    "subject": "Last chance: Autumn offer",
    "sender": "Northside Bakery <hello@northside.example>",
    "status": "draft"
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.