Skip to main content
Glama
This connector has been deprecated

Replaced by Inviomail.

Duplicate listing under a wrong namespace; the canonical listing is de.inviomail/mcp

Prepare newsletter dispatch

prepare_campaign_dispatch

Prepares a real newsletter send for immediate or scheduled dispatch without sending or scheduling yet. Omit scheduledAt for immediate sending; provide a future ISO 8601 time with an explicit UTC offset to schedule. Clarify ambiguous dates or timezones with the user. Requires explicitly enabled campaigns.dispatch and campaigns.read. First read get_campaign_details and get_campaign_content. Resolve any unclear newsletter, audience or exclusions with the user; never assume all contacts. Use list_tags and list_campaigns to resolve audience references, then update_campaign_target to edit the complete saved audience of a draft with its current draftRevision. Read the saved draft again. Preserve target.clicks and target.opens unless the user explicitly changes them. clicks.include/exclude select a sent campaignId and optional destinationUrl; opens.include/exclude select a sent campaignId. Each group independently uses includeMatch/excludeMatch any or all. Tag, click and opening criteria all apply together; matching exclusions win. Never interpret mode all with empty tags as everyone while click or opening criteria remain. Opening data is unreliable due to deliberate provider privacy protections and blocked images; explain this briefly before recommending opening-based targeting. A missing recorded open is not proof that a newsletter was unread. target.includeMatch and target.excludeMatch independently accept any (default when omitted) or all. Include any requires at least one selected tag; include all requires every selected tag. Exclude any rejects a contact with at least one selected tag; exclude all rejects only contacts with every selected exclusion tag. Empty includeTags imposes no restriction; empty excludeTags excludes nobody; exclusions win. Read and preserve both tag arrays and match modes when replacing target; omitting a match mode resets it to any. Validate and preview saved content and offer send_campaign_test (ask for a test address when unknown). Pass the current draftRevision. Preparation creates a recipient snapshot; only eligible active, unsuppressed contacts can receive. For scheduled dispatch, this count is a preview: recipients and content snapshots are rebuilt at the scheduled time, matching Admin scheduling. If ready is false, poll this tool using the same preparationId, revision, scheduledAt and idempotencyKey; do not send or ask for final approval yet. When ready is true, show name, subject, sender/reply-to, the complete saved audience including include/exclude tags, newsletter click filters (including specific destination links), newsletter opening filters, and each group’s any/all match mode in plain language, recipient count, exclusions and send mode, including the exact scheduled time in the user timezone when applicable. Explain that scheduled recipient counts may change before sending. Ask for explicit approval of this exact summary before commit_campaign_dispatch. Changes or expired tokens require fresh preparation and renewed approval. This tool only prepares; commit_campaign_dispatch schedules or starts the approved draft. It does not reschedule, resume or cancel an existing send.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "campaignId": "<campaignId>",
      "expectedDraftRevision": "<expectedDraftRevision>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "prepare_campaign_dispatch"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignIdYesDraft newsletter ID selected with the user
scheduledAtNoFuture send time in ISO 8601 with explicit UTC offset (e.g. 2026-12-01T10:00:00+01:00). Omit for immediate send. Resolve the user timezone before choosing the instant; preserve this value when polling.
preparationIdNoPreparation ID from a previous ready:false response; omit to start or reuse preparation
idempotencyKeyYesUnique operation key; generate once for preparation and reuse unchanged for commit and retries. Use a new key after preparing a changed operation.
expectedDraftRevisionYesCurrent draftRevision from get_campaign_details after all edits

Output Schema

NameRequiredDescriptionDefault
readyYes
summaryYes
expiresAtYes
requestIdYes
preparationIdYes
confirmationTokenYes
preparationStatusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / summary / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "campaignId": {
      -        "format": "uuid",
      -        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -        "type": "string"
      -      },
      -      "contentRevision": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "draftRevision": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "excludedCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "mode": {
      -        "enum": [
      -          "now",
      -          "scheduled"
      -        ],
      -        "type": "string"
      -      },
      -      "name": {
      -        "type": "string"
      -      },
      -      "previewText": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "recipientCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "scheduledAt": {
      -        "anyOf": [
      -          {
      -            "format": "date-time",
      -            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "sender": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "fromEmail": {
      -            "type": "string"
      -          },
      -          "fromName": {
      -            "type": "string"
      -          },
      -          "id": {
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          "replyToEmail": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "id",
      -          "fromName",
      -          "fromEmail",
      -          "replyToEmail"
      -        ],
      -        "type": "object"
      -      },
      -      "subject": {
      -        "type": "string"
      -      },
      -      "suppressedCount": {
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "target": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "excludeMatch": {
      -            "enum": [
      -              "any",
      -              "all"
      -            ],
      -            "type": "string"
      -          },
      -          "excludeTags": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "includeMatch": {
      -            "enum": [
      -              "any",
      -              "all"
      -            ],
      -            "type": "string"
      -          },
      -          "includeTags": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "mode": {
      -            "enum": [
      -              "all",
      -              "tags"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "mode",
      -          "includeTags",
      -          "excludeTags"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "campaignId",
      -      "name",
      -      "subject",
      -      "previewText",
      -      "sender",
      -      "target",
      -      "recipientCount",
      -      "suppressedCount",
      -      "excludedCount",
      -      "contentRevision",
      -      "draftRevision",
      -      "mode"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "campaignId": {
      +        "format": "uuid",
      +        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +        "type": "string"
      +      },
      +      "contentRevision": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "draftRevision": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "excludedCount": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "mode": {
      +        "enum": [
      +          "now",
      +          "scheduled"
      +        ],
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "previewText": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "recipientCount": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "scheduledAt": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "sender": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "fromEmail": {
      +            "type": "string"
      +          },
      +          "fromName": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "replyToEmail": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "fromName",
      +          "fromEmail",
      +          "replyToEmail"
      +        ],
      +        "type": "object"
      +      },
      +      "subject": {
      +        "type": "string"
      +      },
      +      "suppressedCount": {
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "target": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "clicks": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "exclude": {
      +                "default": [],
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "campaignId": {
      +                      "format": "uuid",
      +                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                      "type": "string"
      +                    },
      +                    "destinationUrl": {
      +                      "format": "uri",
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "campaignId"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 200,
      +                "type": "array"
      +              },
      +              "excludeMatch": {
      +                "default": "any",
      +                "enum": [
      +                  "any",
      +                  "all"
      +                ],
      +                "type": "string"
      +              },
      +              "include": {
      +                "default": [],
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "campaignId": {
      +                      "format": "uuid",
      +                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                      "type": "string"
      +                    },
      +                    "destinationUrl": {
      +                      "format": "uri",
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "campaignId"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 200,
      +                "type": "array"
      +              },
      +              "includeMatch": {
      +                "default": "any",
      +                "enum": [
      +                  "any",
      +                  "all"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "include",
      +              "exclude",
      +              "includeMatch",
      +              "excludeMatch"
      +            ],
      +            "type": "object"
      +          },
      +          "excludeMatch": {
      +            "enum": [
      +              "any",
      +              "all"
      +            ],
      +            "type": "string"
      +          },
      +          "excludeTags": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "includeMatch": {
      +            "enum": [
      +              "any",
      +              "all"
      +            ],
      +            "type": "string"
      +          },
      +          "includeTags": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "mode": {
      +            "enum": [
      +              "all",
      +              "tags"
      +            ],
      +            "type": "string"
      +          },
      +          "opens": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "exclude": {
      +                "default": [],
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "campaignId": {
      +                      "format": "uuid",
      +                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "campaignId"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 200,
      +                "type": "array"
      +              },
      +              "excludeMatch": {
      +                "default": "any",
      +                "enum": [
      +                  "any",
      +                  "all"
      +                ],
      +                "type": "string"
      +              },
      +              "include": {
      +                "default": [],
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "campaignId": {
      +                      "format": "uuid",
      +                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "campaignId"
      +                  ],
      +                  "type": "object"
      +                },
      +                "maxItems": 200,
      +                "type": "array"
      +              },
      +              "includeMatch": {
      +                "default": "any",
      +                "enum": [
      +                  "any",
      +                  "all"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "include",
      +              "exclude",
      +              "includeMatch",
      +              "excludeMatch"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "mode",
      +          "includeTags",
      +          "excludeTags"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "campaignId",
      +      "name",
      +      "subject",
      +      "previewText",
      +      "sender",
      +      "target",
      +      "recipientCount",
      +      "suppressedCount",
      +      "excludedCount",
      +      "contentRevision",
      +      "draftRevision",
      +      "mode"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations it discloses substantial behavior: required scopes (campaigns.dispatch, campaigns.read), recipient snapshot creation limited to active and unsuppressed contacts, snapshot rebuild at scheduled send time, token expiry forcing fresh preparation, and the unreliability of opening data. It does not dwell on idempotency semantics beyond key reuse, and the idempotentHint=false annotation sits slightly awkwardly with the retry-with-same-key instruction, which keeps this from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with purpose and sequencing, which is good, but it is a dense wall of text with repeated assertions (exclusion precedence and 'exclusions win' appear more than once, and the tag/click/opening match-mode rules are restated). Much of the content earns its place, but the volume makes it harder to scan than a shorter, structured version would be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a preparation tool feeding an irreversible dispatch flow, the description covers permissions, prerequisites, audience-edit workflow, match-mode semantics, the ready:false polling loop, and the exact items to present for approval. An output schema exists, so the limited discussion of return values (the ready flag) is appropriate rather than a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even though schema coverage is 100%, the description adds real meaning: omit scheduledAt for an immediate send, use a future ISO 8601 value with explicit UTC offset and resolve the user's timezone first, and preserve preparationId, revision, scheduledAt and idempotencyKey while polling. The idempotencyKey rule (generate once, reuse on retries, new key for a changed operation) is guidance the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource plus the crucial scope limit: 'Prepares a real newsletter send for immediate or scheduled dispatch without sending or scheduling yet.' The closing sentence explicitly separates it from commit_campaign_dispatch, so an agent can distinguish prepare from commit without inspecting schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It prescribes the full sequence (read get_campaign_details/get_campaign_content first, resolve audience via list_tags/list_campaigns, edit via update_campaign_target, re-read the draft) and gives explicit branch behavior: poll with the same preparationId when ready is false, present a summary and request approval when ready is true. It also states what the tool does not do (no reschedule, resume or cancel) and warns against assuming all contacts.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources