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

Update newsletter content

update_campaign_content

Replaces the complete contentJson of a draft newsletter in the authenticated inviomail tenant. Use only native inviomail blocks; do not include full HTML email layouts, custom layout wrappers, responsive variants, footer, signature, unsubscribe text, or inviomail credit. First call get_campaign_content, edit that complete document, and use its contentRevision as expectedContentRevision and draftRevision as expectedDraftRevision. Add or change visibility rules only when the returned capability.enabled is true; when false, existing rules may be preserved while editing other content or removed, but not changed or added. Call validate_campaign_content first and pass the returned normalizedContent when valid. Existing image sources may be preserved, moved, duplicated, or removed; new or changed image sources must use tenant-owned URLs returned by list_media_images, upload_media_image_file, or import_media_image_from_url. This tool never schedules or sends a campaign. Button blocks support bold (default true) and optional fontSize (integer 10–30 px) for desktop; omit fontSize to inherit tenant body typography. Optional mobileFontSize (integer 16–24 px) controls mobile text separately, with tenant bodyMobilePx as the readability floor; omit it to retain the mobile standard. Long button labels wrap automatically. Own contact fields are supported only in heading.text and text.html, including two-column children: {{custom.key}} or {{custom.key | default: "replacement text"}}. Read list_contact_fields first and use its permanent keys; offer active fields for new insertion. Existing archived references still resolve. Missing/blank values use the fallback or empty text. Escape fallback JSON and HTML correctly; do not split a token with inline markup. Tenant validation reports invalid syntax, unsupported locations and unknown keys. Custom field placeholders are not supported in subjects, preheaders, buttons, URLs, footers, signatures or DOI emails.

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>",
      "expectedContentRevision": "<expectedContentRevision>",
      "expectedDraftRevision": "<expectedDraftRevision>",
      "contentJson": "<contentJson>"
    },
    "name": "update_campaign_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignIdYesNewsletter campaign ID
contentJsonYesComplete replacement newsletter contentJson document, not a partial patch. For type button (also in two-column children), bold defaults to true and optional fontSize is an integer 10–30 px for desktop; omit fontSize for tenant body typography. Optional mobileFontSize (integer 16–24 px) controls mobile text separately, with tenant bodyMobilePx as the readability floor; omit it to retain the mobile standard. Long button labels wrap automatically.
expectedDraftRevisionYesExact draftRevision returned by get_campaign_content before editing
expectedContentRevisionYesExact contentRevision returned by get_campaign_content before editing

Output Schema

NameRequiredDescriptionDefault
campaignYes
requestIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare non-destructive, non-idempotent, non-read-only, so the description carries real weight: it discloses that this is a full replacement rather than a patch, that it never schedules or sends, that capability.enabled gates visibility-rule changes, and that content must be native inviomail blocks rather than HTML layouts. The main undisclosed behavior is what happens on a revision mismatch (optimistic-concurrency failure) and which campaign states are accepted.

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?

The critical statement and the required pre-call workflow are front-loaded, and most sentences encode a real constraint, but the result is a dense single block of roughly fifteen clauses with no grouping. The button fontSize/mobileFontSize sentence duplicates the contentJson schema text verbatim, which is pure redundancy.

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

Completeness4/5

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

For a complex draft-mutation tool with nested free-form content, the definition covers the workflow, validation, visibility capability gating, media rules, and placeholder support/restrictions; an output schema exists so return values need not be described. Remaining gaps are revision-conflict error behavior and any precondition on campaign state, which matter for an optimistic-concurrency tool.

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?

Schema description coverage is 100%, so the baseline is 3, and the description adds substantial semantics on top: contentJson is a complete document not a patch, what block types/structures are forbidden, image-source preservation versus new-URL sourcing, and where contact-field placeholders are legal. It does not explain the failure semantics of expectedContentRevision/expectedDraftRevision, and the button typography sentences merely repeat the schema.

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?

States a specific verb and resource ('Replaces the complete contentJson of a draft newsletter') plus scope ('authenticated inviomail tenant'). It explicitly disclaims scheduling/sending, which separates it from dispatch siblings like commit_campaign_dispatch and send_campaign_test without needing their 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?

Gives an explicit ordered workflow: call get_campaign_content first, edit the complete document, pass its contentRevision/draftRevision, then call validate_campaign_content first and pass normalizedContent. It also gives conditional rules (visibility rules only when capability.enabled is true, with the exact allowed/forbidden permutations when false) and media-source constraints, so an agent knows when and how to use it versus alternatives.

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